msg.sender
can repay the interests accrued by calling the function below._poolID
: the pool for which interests are being repaid_amount
: the amount that msg.sender
wishes to repaymsg.sender
can repay the principal by calling the function below. The function also calls the closeLoan()
function in Pool.sol
to close the loan. Note that the principal need to be repaid within the last instalment interval. _poolID
: the pool whose principal is being repaidpoolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool.RETURNS
:numberOfTotalRepayments
: Number of instalments in which loan interest should be repaidgracePenalityRate
: Factor with which interest is multiplied in case of late repayment in grace periodgracePeriodFraction
: Duration of Grace Period as a factor of repaymentInterval multiplied byloanDuration
: Total duration of the loan in secondsrepaymentInterval
: The duration of interval to repay instalments in secondsborrowRate
: Interest rate per annum for the pool multiplied by loanStartTime
: Timestamp at which loan startedrepayAsset
: Address of the borrow token for the poolsavingsAccount
: Address of the savings account for the pool poolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool.RETURNS
:totalRepaidAmount
: Total amount of borrow tokens repaid till nowrepaymentPeriodCovered
: Duration of the repayment period repaid forrepaidAmount
: Amount of borrow tokens repaid for the pool till nowisLoanExtensionActive
: Flag to know if the pool has an extension activeloanDurationCovered
: Duration of the loan for which interest is paid for multiplied by nextDuePeriod
: Period when the next repayment is duenInstalmentsFullyPaid
: Instalments for the pool which are completed paidloanExtensionPeriod
: Instalment period for which extension is grantedpoolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool.RETURNS
: Interest per second to be paid to the pool multiplied by poolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool.RETURNS
: Number of instalments completed multiplied by poolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool.RETURNS
: Interest due for the current period multiplied by poolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool.RETURNS
: Timestamp of the next deadline for repayment to the pool poolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool.RETURNS
: Interval for which repayment has to be done next multiplied by poolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool. RETURNS
: Current Interval of the pool multiplied by poolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool. RETURNS
: Flag that specifies if grace penalty is applicable for the pool as instalment deadline has passedpoolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool. RETURNS
: Flag that specifies if borrower defaulted on the loan due to non payment of interest instalments within specified periodpoolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool. RETURNS
: Interest left to be repaid in the pool multiplied by poolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool. RETURNS
: Interest overdue when repayment deadline is missed without extension multiplied by poolID
: Unique ID for the pool the repayment is made. Currently address of the pool contract is the unique id of that pool. RETURNS
: Total amount repaid to the pool till now