Skip to main content
Instant redeem exits through the vault buffer. It is appropriate when the user’s desired exit is less than or equal to the available instant liquidity.

Quote

const quote = await shlp.quoteRedeemInstantAction({
  shares: sharesRaw,
  account: userAddress,
  receiver: userAddress,
});

Send

const hash = await shlp.sendApiTransaction(quote.tx, userAddress);

Important details

  • Instant redeem is not slippage-protected because ERC-4626 redeem has no min-assets-out parameter.
  • If the buffer is too small, use queued redeem.
  • The API prechecks live vault state before returning calldata.

Common errors

CodeMeaning
BUFFER_SHORTCurrent vault buffer cannot cover the request
INSUFFICIENT_SHARESThe account does not have enough sHLP
INSTANT_REDEEM_NO_SLIPPAGEUse async redeem when a min-assets-out floor is required