Skip to main content
Request a withdrawal from the Zyfai Vault. Withdrawals are asynchronous — after requesting, you must wait for processing and then claim.

Signature

Parameters

Returns

Withdraw request result with a withdrawKey for tracking

Return Type

Example

Partial Withdrawal

Withdrawal Flow

How It Works

  1. Gets max redeemable: If no shares specified, retrieves your maximum redeemable amount
  2. Requests redeem: Calls requestRedeem on the vault contract
  3. Gets withdraw key: Returns a unique key to track and claim this withdrawal
  4. Checks status: Returns whether the withdrawal is immediately claimable or pending

Notes

  • Wallet must be connected via connectAccount() before calling
  • Withdrawals are not instant — there may be a processing period
  • Save the withdrawKey to claim your funds later
  • Use vaultClaim to claim your USDC when the status is claimable