ILoansManager
Functions
issuedLoanIds
function issuedLoanIds(uint256 loanId) external view returns (bool);
Parameters
Name | Type | Description |
---|---|---|
loanId | uint256 | Loan id |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | Whether a loan with the given loanId was issued by this contract |
fixedInterestBulletLoans
function fixedInterestBulletLoans() external view returns (IFixedInterestBulletLoans);
Returns
Name | Type | Description |
---|---|---|
<none> | IFixedInterestBulletLoans | FixedInterestBulletLoans contract |
Events
LoanAdded
Emitted when a loan is added
event LoanAdded(uint256 indexed loanId);
LoanFunded
Emitted when a loan is funded
event LoanFunded(uint256 indexed loanId);
LoanRepaid
Emitted when a loan is repaid
event LoanRepaid(uint256 indexed loanId, uint256 amount);
LoanCanceled
Emitted when a loan is canceled
event LoanCanceled(uint256 indexed loanId);
LoanDefaulted
Emitted when a loan is defaulted
event LoanDefaulted(uint256 indexed loanId);
ActiveLoanRemoved
Emitted when a active loan is removed
event ActiveLoanRemoved(uint256 indexed loanId, FixedInterestBulletLoanStatus indexed status);
Errors
InvalidLoanId
Thrown when loanId is not valid or doesn't exist in the issuedLoanIds mapping
error InvalidLoanId();
InSufficientFund
Thrown when there are insufficient funds in the contract to fund a loan
error InSufficientFund();
InvalidRecipient
Thrown when the recipient address is invalid
error InvalidRecipient();