zest_withdraw
Withdraw assets from Zest Protocol by redeeming zToken shares for underlying tokens and removing collateral atomically. Specify the asset symbol or contract ID and zToken share amount; mainnet only.
Instructions
Withdraw assets from Zest Protocol (v0-4-market).
Removes collateral and redeems for underlying assets in one atomic operation. You can use the asset symbol (e.g., 'sBTC', 'USDC') or full contract ID.
Note: Amount is in zToken shares. Zest Protocol is only available on mainnet.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset symbol (e.g., 'sBTC', 'USDC') or full contract ID | |
| amount | Yes | Amount of zToken shares to withdraw |