Prepare: Withdraw from Earn
gage_prepare_earn_redeemPrepare withdrawing from a partner vault, everything it can pay when shares is omitted. Returns the next unsigned transaction and a review link; never signs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | ||
| shares | No | Shares to redeem, raw (18 decimals); all when omitted, less what a vault of an asset with more than 6 decimals cannot pay after a loss (a millionth of the asset at most) | |
| wallet | Yes | ||
| maxSlippageBps | No | Most the conversion may move against you, in bps; 50 when omitted |