ILoanManagerEvents
Events
Initialized
Emitted when the loan manager is initialized.
event Initialized(address poolAddressesProvider_, address asset_);
Parameters
poolAddressesProvider_
address
The address of the pool addresses provider.
asset_
address
The address of the asset set.
LoanRequested
Emitted when a loan is requested.
event LoanRequested(uint16 indexed loanId_);
Parameters
loanId_
uint16
The id of the loan.
LoanRepaid
Emitted when a loan is repaid.
event LoanRepaid(uint16 indexed loanId_, uint256 principal_, uint256 interest_);
Parameters
loanId_
uint16
The id of the loan.
principal_
uint256
The total principal repaid.
interest_
uint256
The total interest repaid.
FundsWithdrawn
Emitted when the funds of a loan are withdrawn.
event FundsWithdrawn(uint16 indexed loanId_, uint256 amount_);
Parameters
loanId_
uint16
The id of the loan.
amount_
uint256
The amount of principal withdrawn.
UnrealizedLossesUpdated
Emitted when unrealized losses is updated.
event UnrealizedLossesUpdated(uint128 unrealizedLosses_);
Parameters
unrealizedLosses_
uint128
The updated unrealized losses.
PrincipalOutUpdated
Emitted when the principal out is updated.
event PrincipalOutUpdated(uint128 principalOut_);
Parameters
principalOut_
uint128
The updated principal outstanding.
IssuanceParamsUpdated
Emitted when the issuance params are updated.
event IssuanceParamsUpdated(uint48 indexed domainEnd_, uint256 issuanceRate_, uint112 accountedInterest_);
Parameters
domainEnd_
uint48
The updated domain end.
issuanceRate_
uint256
The updated issuance rate.
accountedInterest_
uint112
The updated accounted interest.
PaymentAdded
Emitted when a new payment is added to the payment linked list.
event PaymentAdded(
uint16 indexed loanId_,
uint256 indexed paymentId_,
uint256 protocolFee_,
uint256 adminFee_,
uint256 startDate_,
uint256 dueDate_,
uint256 newRate_
);
Parameters
loanId_
uint16
The new loan id that the payment id is linked to.
paymentId_
uint256
The payment id of the payment.
protocolFee_
uint256
The protocol fee rate of the payment.
adminFee_
uint256
The admin fee rate of the payment.
startDate_
uint256
The start date of the payment.
dueDate_
uint256
The due date of the payment.
newRate_
uint256
The new issuance rate of the payment.
PaymentRemoved
Emitted when a payment is removed from the payment list.
event PaymentRemoved(uint16 indexed loanId_, uint256 indexed paymentId_);
Parameters
loanId_
uint16
The id of the loan that the payment is associated with.
paymentId_
uint256
The payment id of the payment.
FeesPaid
Emitted when fees are paid to the admin and protocol.
event FeesPaid(uint16 indexed loanId_, uint256 adminFee_, uint256 protocolFee_);
Parameters
loanId_
uint16
The id of the loan.
adminFee_
uint256
The amount of admin fee paid.
protocolFee_
uint256
The amount of protocol fee paid.
FundsDistributed
Emitted when the funds are distributed back to the pool, pool admin, and protocol vault.
event FundsDistributed(uint16 indexed loanId_, uint256 principal_, uint256 netInterest_);
Parameters
loanId_
uint16
The id of the loan.
principal_
uint256
The amount of principal distributed.
netInterest_
uint256
The amount of net interest distributed.
LoanImpaired
Emitted when the loan is impaired.
event LoanImpaired(uint16 indexed loanId_, uint256 newDueDate_);
Parameters
loanId_
uint16
The id of the loan.
newDueDate_
uint256
The new due date of the impaired loan.
ImpairmentRemoved
Emitted when the impairment on the loan is removed.
event ImpairmentRemoved(uint16 indexed loanId_, uint256 originalPaymentDueDate_);
Parameters
loanId_
uint16
The id of the loan.
originalPaymentDueDate_
uint256
The original payment due date of the loan.
DefaultTriggered
Emitted when the loan is defaulted.
event DefaultTriggered(uint16 indexed loanId_);
Parameters
loanId_
uint16
The id of the loan.
Last updated