Redeem funds through smart contracts

Other > Guides > Redeem funds through smart contracts

This tutorial will guide you in the process of redeeming funds from Idle directly from the smart contracts in case the website has limited access or is down.

A. Redeem

  1. Visit the vaults' addresses of Best Yield and Yield Tranches and select the one you want to redeem from. For YTs, you need to always use the contract tagged as CDO

  2. Click on the Contract tab, and then on Write as Proxy

  3. Click on Connect to Web3 to connect your wallet

  4. Select the function redeemIdleToken for BY or withdrawAA, withdrawBB for YTs (where AA stands for Senior and BB for Junior)

  5. Input the LP token amount you want to redeem unit converted. You can use this tool to easily convert in multiple formats. Idle LP tokens have always 18 decimals (10^18).

  6. Click on Write and execute your Tx. If successful, you will see an outflow of the LP token selected and an inflow of the principal token.

The same process can be done through a multisig, i.e. a smart contract, by building the Tx using the Transaction Builder app. Safe fetches automatically the proper ABI of the contract.

Need further help? Check our guides list or get in contact on Discord.

Last updated