Smart Yield v1 Withdrawal Guide
This guide provides step-by-step instructions for withdrawing junior and senior positions from Smart Yield v1 using Etherscan
Make sure you have access to the wallet you used to stake in the DAO.
Here's the list of contract addresses you may need for this guide:
In case you have been staking your tokens in the Yield Farming contract, you need to withdraw them to be able to continue the redeeming process.
- Go to the smart contract from Rewards section.
- Use parameter
amount: the user balance in the yield farm (fetch with
Step 2 - Sell junior tokens
SmartYield.sellTokens(tokenAmount, minUnderlying, deadline)
- Use parameters
tokenAmount: the user balance of the bb_cUSDC token
tokenAmount * price / 1e18with
price = SmartYield.price()(
price()is not view so need to staticCall in order to fetch the price first)
deadline: current block.timestamp + 600 seconds or so
Go to your Portfolio on Etherscan or any other portfolio tracker and get
tokenIDvalue of your senior bond NFT.
- Find the pool address you need from the list at the top of the page and open it on Etherscan
- Go to
Write Contracttab and connect your wallet
redeemBondmethod and use
tokenIDas an input parameter from Step 1 (after pasting the
tokenIDmake sure to click on the
+sign next to
(uint256)and select 10^18 so your parameter is properly formatted) and click "Write"