InterestManager
The task of the InterestManager is to invest Dai into an interest-generating protocol. Currently this is implemented as InterestManagerCompound which invests into Compound.
invest: InvestsDaito generate interestuint amount: The amount ofDaito investreturns: The amount ofcDaireceived
redeem: RedeemsDaiaddress recipient: The address to receive the redeemedDaiuint amount: The amount ofDaito redeemreturns: The amount of burnedcDai
redeemInvestmentToken: RedeemsDai, but with theamountparameter being the amount ofcDaito convert instead of the amount ofDaito redeem.accrueInterest: Calls the underlying protocol to update the accrued interest which in this case iscDai.accrueInterest()withdrawComp: TransfersCOMPtokens to thecompRecipient
Last updated
Was this helpful?