Redeem funds through smart contracts
Other > Guides > Redeem funds through smart contracts
Last updated
Other > Guides > Redeem funds through smart contracts
Last updated
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.
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
Click on the Contract tab, and then on Write as Proxy
Click on Connect to Web3 to connect your wallet
Select the function redeemIdleToken
for BY or withdrawAA
, withdrawBB
for YTs (where AA stands for Senior and BB for Junior)
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).
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.