DInterest
, which users interact with to deposit funds to earn fixed-rate interest, withdraw their funds, or purchase yield tokens or YTs.MoneyMarket
contract owned by the DInterest
contract, which are then put to work in the underlying yield protocol. The user receives an ERC-721 NFT that represents the ownership of the deposit, which can be transferred.MoneyMarket
and deposited into the underlying yield protocol. The user will earn the future floating-rate interest generated by the portion of the deposit's principal whose debt is funded by the YT plus the funds used for purchasing the YT. For instance, if a 100 DAI deposit has 10 DAI of debt, then buying yield tokens using 5 DAI will allow you to earn interest on (5 / 10) * 100 + 5 = 55 DAI.DInterest.payInterestToFunders()
.DInterest
pool using Aave to generate interest will use AaveMarket
as its money market contract.DInterest
pool.MPHMinter
contract is in charge of the minting of MPH tokens. 88mph mints MPH tokens to reward users who make deposits or purchase YTs. The governance treasury and the developer funds also receive MPH rewards any time new MPH is minted.DInterest
makes a call to MPHMinter
to mint MPH rewards. The reward could be vested using Vesting
or Vesting02
, or be distributed using FundingMultitoken.distributeDividends()
.