BulletLoans
is an ERC-721 contract. Each of the tokens represents a single loan.BulletLoans
contract enables loan creation, facilitates loan repayment and allows managing the loan's state and parameters.createLoan( IERC20 _underlyingToken, uint256 _principal, uint256 _totalDebt, uint256 _duration, address _recipient )
repay(uint256 instrumentId, uint256 amount)
markLoanAsDefaulted(uint256 instrumentId)
markLoanAsResolved(uint256 instrumentId)
updateLoanParameters( uint256 instrumentId, uint256 newTotalDebt, uint256 newRepaymentDate )
updateLoanParameters( uint256 instrumentId, uint256 newTotalDebt, uint256 newRepaymentDate, bytes memory borrowerSignature )
principal(uint256 instrumentId)
underlyingToken(uint256 instrumentId)
recipient(uint256 instrumentId)
endDate(uint256 instrumentId)
unpaidDebt(uint256 instrumentId)
getStatus(uint256 instrumentId)
Issued
, FullyRepaid
, Defaulted
, Resolved
).