# 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.&#x20;

### A. Redeem

1. Visit the vaults' addresses of [Best Yield](https://docs.idle.finance/developers/best-yield/deployed-contracts) and [Yield Tranches](https://docs.idle.finance/developers/yield-tranches/deployed-contracts) 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`](https://docs.idle.finance/developers/best-yield/methods/redeemidletoken-1) for BY or [`withdrawAA`](https://docs.idle.finance/developers/yield-tranches/methods/withdrawaa), [`withdrawBB`](https://docs.idle.finance/developers/yield-tranches/methods/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](https://etherscan.io/unitconverter) to easily convert in multiple formats. Idle LP tokens have always 18 decimals (10^18).&#x20;
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.

<figure><img src="https://4022236167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lw-v0NTae0RVW1spR9R%2Fuploads%2FeEjLijLJIhnOiKf123io%2FwithdrawAA.png?alt=media&#x26;token=a3d026b8-418f-49f4-a4b4-9196dc2163be" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
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.
{% endhint %}

Need further help? Check our [guides](https://docs.idle.finance/other/guides) list or get in contact on [Discord](https://discord.com/invite/mpySAJp).
