LoanModule.getUnpaidInterest()
added to calcualte all interest on all loans of a borrowerLiquidityModule.withdraw()
now repays all interest on all loans before withdrawing requested amount
FundsModule.pBalanceOf
now only represents PTK locked in proposals. PTK locked in executed loans are now counted asFundsModule.pBalanceOf(FundsModule.address)
. This means, that borrower and supporters will not (at this version) receive distributions to- Borrower now pays gas fee for "moving" locked funds of supporters to the pool, which includes calculations of distributions
- Added
FundsModule.pBalanceOf
to get all user's PTK locked in FundsModule PToken
now implementsDistributionToken
to allow distributions of new PTK to all PTK holders
BondingCurve
parameters are now changable- Pool fee calculation moved from
BondingCurve
toCurveModule
. Use new functionCurveModule.calculateExitInverseWithFee
instead ofBondingCurve.calculateExitInverse
. LoanModule
now calculateslProposals
: how many DAI is going to be withdrawn from pool for loans- Changed
FundsModule.Status
event: addedlProposals
FundsModule
now useslProposals
to calculate exit price- Debt load limit added to
LoanModule