OpenTermLoanManager
\
Functions
HUNDRED_PERCENT
HUNDRED_PERCENT
Returns the value considered as the hundred percent.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
PRECISION
PRECISION
Returns the precision used for the contract.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
accountedInterest
accountedInterest
Gets the amount of accounted interest.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
accruedInterest
accruedInterest
Gets the amount of accrued interest up until this point in time.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of accrued interest up until this point in time. |
\
assetsUnderManagement
assetsUnderManagement
Gets the amount of assets under the management of the contract.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of assets under the management of the contract. |
\
callPrincipal
callPrincipal
Calls a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to be called. |
1 |
|
|
| Amount of principal to call the Loan with. |
\
claim
claim
Called by loans when payments are made, updating the accounting.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The difference in principal. Positive if net principal change moves funds into pool, negative if it moves funds out of pool. |
1 |
|
|
| The amount of interest paid. |
2 |
|
|
| The amount of delegate service fee paid. |
3 |
|
|
| The amount of platform service fee paid. |
4 |
|
|
|
\
domainStart
domainStart
Gets the timestamp of the domain start.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
factory
factory
The address of the proxy factory.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
fund
fund
Funds a new loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to be funded. |
\
fundsAsset
fundsAsset
Gets the address of the funds asset.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
impairLoan
impairLoan
Triggers the impairment of a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to trigger the loan impairment. |
\
impairmentFor
impairmentFor
Gets the information for an impairment.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The date the impairment was triggered. |
1 |
|
|
| True if the impairment was triggered by the governor. |
\
implementation
implementation
The address of the implementation contract being proxied.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
issuanceRate
issuanceRate
Gets the current issuance rate.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
migrate
migrate
Modifies the proxy's storage by delegate-calling a migrator contract with some arguments. Access control logic critical since caller can force a selfdestruct via a malicious `migrator_` which is delegatecalled.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of a migrator contract. |
1 |
|
|
| Some encoded arguments to use for the migration. |
\
paymentFor
paymentFor
Gets the information for a payment.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The value for the platform management fee rate. |
1 |
|
|
| The value for the delegate management fee rate. |
2 |
|
|
| The start date of the payment. |
3 |
|
|
| The issuance rate for the loan. |
\
poolManager
poolManager
Gets the address of the pool manager.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
principalOut
principalOut
Gets the amount of principal out.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
proposeNewTerms
proposeNewTerms
Proposes new terms for a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The loan to propose new changes to. |
1 |
|
|
| The refinancer to use in the refinance. |
2 |
|
|
| The deadline by which the borrower must accept the new terms. |
3 |
|
|
| The array of calls to be made to the refinancer. |
\
rejectNewTerms
rejectNewTerms
Reject/cancel proposed new terms for a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The loan with the proposed new changes. |
1 |
|
|
| The refinancer to use in the refinance. |
2 |
|
|
| The deadline by which the borrower must accept the new terms. |
3 |
|
|
| The array of calls to be made to the refinancer. |
\
removeCall
removeCall
Removes a loan call.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to remove call for. |
\
removeLoanImpairment
removeLoanImpairment
Removes the loan impairment for a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to remove the loan impairment. |
\
setImplementation
setImplementation
Modifies the proxy's implementation address.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
triggerDefault
triggerDefault
Triggers the default of a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to trigger the default. |
1 |
|
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| The amount of un-recovered principal and interest (net of management fees). |
2 |
|
|
| The amount of un-recovered platform fees. |
\
triggerDefault
triggerDefault
Triggers the default of a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to trigger the default. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of un-recovered principal and interest (net of management fees). |
1 |
|
|
| The amount of un-recovered platform fees. |
\
unrealizedLosses
unrealizedLosses
Returns the amount unrealized losses.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
upgrade
upgrade
Upgrades a contract implementation to a specific version. Access control logic critical since caller can force a selfdestruct via a malicious `migrator_` which is delegatecalled.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| Some encoded arguments to use for the upgrade. |
\
Events
AccountingStateUpdated
AccountingStateUpdated
Emitted when the accounting state of the loan manager is updated.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| New value for the issuance rate. |
1 |
|
|
| The amount of accounted interest. |
\
ClaimedFundsDistributed
ClaimedFundsDistributed
Funds have been claimed and distributed to the Pool, Pool Delegate, and Maple Treasury.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The amount of principal paid. |
2 |
|
|
| The amount of net interest paid. |
3 |
|
|
| The amount of delegate management fees paid. |
4 |
|
|
| The amount of delegate service fees paid. |
5 |
|
|
| The amount of platform management fees paid. |
6 |
|
|
| The amount of platform service fees paid. |
\
ExpectedClaim
ExpectedClaim
Funds that were expected to be claimed and distributed to the Pool and Maple Treasury.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The amount of principal that was expected to be paid. |
2 |
|
|
| The amount of net interest that was expected to be paid. |
3 |
|
|
| The amount of platform management fees that were expected to be paid. |
4 |
|
|
| The amount of platform service fees that were expected to paid. |
\
LiquidatedFundsDistributed
LiquidatedFundsDistributed
Funds that were liquidated and distributed to the Pool, Maple Treasury, and Borrower.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract that defaulted and was liquidated. |
1 |
|
|
| The amount of recovered funds transferred to the Borrower. |
2 |
|
|
| The amount of recovered funds transferred to the Pool. |
3 |
|
|
| The amount of recovered funds transferred to the Treasury. |
\
PaymentAdded
PaymentAdded
Emitted when a payment is added to the LoanManager payments mapping.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan. |
1 |
|
|
| The amount of platform management rate that will be used for the payment distribution. |
2 |
|
|
| The amount of delegate management rate that will be used for the payment distribution. |
3 |
|
|
| The due date of the payment. |
4 |
|
|
| The issuance of the payment, 1e27 precision. |
\
PaymentRemoved
PaymentRemoved
Emitted when a payment is removed from the LoanManager payments mapping.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan. |
\
PrincipalOutUpdated
PrincipalOutUpdated
Emitted when principal out is updated
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The new value for principal out. |
\
UnrealizedLossesUpdated
UnrealizedLossesUpdated
Emitted when unrealized losses is updated.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The new value for unrealized losses. |
\
Upgraded
Upgraded
The instance was upgraded.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The new version of the loan. |
1 |
|
|
| The upgrade arguments, if any. |
\
Last updated