FixedInterestOnlyLoansis an ERC-721 contract. Each minted NFT represents a loan that must be paid back to the NFT owner.
Created. In this state, a borrower can accept a loan by calling
acceptLoan(id)and the loan status is changed to
start(id)on loans whose status is
Accepted. When a loan is started the loan end date is calculated for the loan and the loan status is changed to
Defaultedwhose status is
Startedand the current block time is after a current period
endDate + graceP
gracePeriodat any time by calling
updateInstrument(id). The NFT owner must call
repay(id, amount)to recalculate repaid periods and the current period end date.
canBeRepaidAfterDefaultflag was set to true.