Interface for TinteroLoan contract
totalPayments
is incremented by the length of the payments array.collateralTokenIds
are transferred to this contract.payment
function will return the added payments at their corresponding
indexes starting at totalPayments
.PaymentCreated
event for each payment added.*totalTranches
is incremented by the length of the tranches array.tranche
function will return the added tranches at their corresponding
indexes starting at totalTranches
.TrancheCreated
event for each tranche added.*n
payments from the loan.
Requirements:
currentFundingIndex
is incremented by n
or the remaining payments.fundedAt
field of the funded payments to the current block timestamp.PaymentsFunded
event with the range of funded payments.*PaymentsWithdrawn
with the range of payments withdrawn*repayN(0, collateralReceiver)
.
n
future payments.
Requirements:
currentPaymentIndex
is incremented by n
or the remaining payments.PaymentsRepaid
event with the range of repaid payments.*PaymentsRepossessed
event with the range of repossessed payments.*expectedStates
is a bitmap with the bits enabled for each LoanState enum position
counting from right to left.
expectedState
is bytes32(0)
, any state is expected.*