Developers > Perpetual Yield Tranches > Methods
depositAA: transfers underlying from the user to the contract and mint AA tranche tokens for the user.
depositBB: transfers underlying from the user to the contract and mint BB tranche tokens for the user.
getAPR: returns the current APR for a tranche based on
trancheAPRSplitRatioand the current AA ratio.
strategyToken: returns the interest bearing asset of the lending provider used in this IdleCDO (e.g. idleDAI).
tranchePrice: returns the last tranche price saved on the last smart contract interaction (it may not include interest earned since the last update, for an up to date price check the virtualPrice method).
virtualPrice: calculates the current tranches price considering the interest that is yet to be split (i.e. the interest generated since the last interaction done on depositXX/withdrawXX/harvest).
withdrawAA: allows a user to burn a AA tranche token and get the principal + interest back (if no emergency shutdown is in progress).
withdrawBB: allows a user to burn a BB tranche token and get the principal + interest back (if no emergency shutdown is in progress).