ILoansManager

Git Source

Functions

issuedLoanIds

function issuedLoanIds(uint256 loanId) external view returns (bool);

Parameters

NameTypeDescription
loanIduint256Loan id

Returns

NameTypeDescription
<none>boolWhether a loan with the given loanId was issued by this contract

fixedInterestBulletLoans

function fixedInterestBulletLoans() external view returns (IFixedInterestBulletLoans);

Returns

NameTypeDescription
<none>IFixedInterestBulletLoansFixedInterestBulletLoans 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();