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
: InvestsDai
to generate interestuint amount
: The amount ofDai
to investreturns
: The amount ofcDai
received
redeem
: RedeemsDai
address recipient
: The address to receive the redeemedDai
uint amount
: The amount ofDai
to redeemreturns
: The amount of burnedcDai
redeemInvestmentToken
: RedeemsDai
, but with theamount
parameter being the amount ofcDai
to convert instead of the amount ofDai
to redeem.accrueInterest
: Calls the underlying protocol to update the accrued interest which in this case iscDai.accrueInterest()
withdrawComp
: TransfersCOMP
tokens to thecompRecipient
Last updated