type(uint256).maxto withdraw all funds from the deposit, otherwise set it to some proportion of
getDeposit(depositID).virtualTokenTotalSupplyto do a partial withdrawal. An easy way to determine the value for this field is that after maturation,
virtualTokenAmountequals the amount of underlying tokens that will be withdrawn.
trueif withdrawing before maturation,
falseif withdrawing after maturation.
calculateInterestAmount(100*1e18, 31556952)where 100*1e18 is 100 DAI in wei and 31556952 is the number of seconds in a year.
getInterestFeeAmount()on the feeModel contract.
Vesting02::withdraw(uint256 vestID). You need the index of a vesting NFT,
vestID, in order to withdraw the MPH. You can obtain this value using the
Vesting02::depositIDToVestIDmapping using the pool address and deposit ID.
DInterest::fund()with the ID of the deposit to buy yield tokens from and the amount to pay.