FixedTermLoanManager
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 |
|
|
acceptNewTerms
acceptNewTerms
Accepts new loan terms triggering a loan refinance.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to be refinanced. |
1 |
|
|
| The address of the refinancer. |
2 |
|
|
| The new deadline to execute the refinance. |
3 |
|
|
| The encoded calls to set new loan terms. |
4 |
|
|
| The increase in principal. |
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. |
allowedSlippageFor
allowedSlippageFor
Gets allowed slippage for a give collateral asset.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
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. |
claim
claim
Called by loans when payments are made, updating the accounting.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of principal paid. |
1 |
|
|
| The amount of interest paid. |
2 |
|
|
| The previous payment due date. |
3 |
|
|
| The new payment due date. |
domainEnd
domainEnd
Gets the timestamp of the domain end.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
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 |
|
|
|
finishCollateralLiquidation
finishCollateralLiquidation
Finishes the collateral liquidation.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan that had its collateral liquidated. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of remaining losses. |
1 |
|
|
| The amount of platform fees. |
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 |
|
|
getExpectedAmount
getExpectedAmount
Gets the expected amount of an asset given the input amount.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The collateral asset that is being liquidated. |
1 |
|
|
| The swap amount of collateral asset. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The desired return amount of funds asset. |
governor
governor
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
impairLoan
impairLoan
Triggers the loan impairment for a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to trigger the loan impairment. |
implementation
implementation
The address of the implementation contract being proxied.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
isLiquidationActive
isLiquidationActive
Returns whether or not a liquidation is in progress.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| True if a liquidation is in progress. |
issuanceRate
issuanceRate
Gets the current issuance rate.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
liquidationInfo
liquidationInfo
Gets the information for a liquidation.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| True if the liquidation was triggered by the governor. |
1 |
|
|
| The amount of principal to be recovered. |
2 |
|
|
| The amount of interest to be recovered. |
3 |
|
|
| The amount of late interest to be recovered. |
4 |
|
|
| The amount of platform fees owed. |
5 |
|
|
| The address of the liquidator. |
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. |
minRatioFor
minRatioFor
Gets the minimum ratio for a collateral asset.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
paymentCounter
paymentCounter
Gets the payment counter.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
paymentIdOf
paymentIdOf
Gets the payment if for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
payments
payments
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 timestamp of the payment due date. |
4 |
|
|
| The amount of incoming net interest. |
5 |
|
|
| The amount of refinance interest. |
6 |
|
|
| The issuance rate for the loan. |
paymentWithEarliestDueDate
paymentWithEarliestDueDate
Gets the payment id with the earliest due date.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
poolDelegate
poolDelegate
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
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 |
|
|
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 lender must accept the new terms. |
3 |
|
|
| The array of calls to be made to the refinancer. |
removeLoanImpairment
removeLoanImpairment
Removes the loan impairment for a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to remove the loan impairment. |
setAllowedSlippage
setAllowedSlippage
Sets the allowed slippage for a collateral asset liquidation.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of a collateral asset. |
1 |
|
|
| New value for `allowedSlippage`. |
setImplementation
setImplementation
Modifies the proxy's implementation address.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
setMinRatio
setMinRatio
Sets the minimum ratio for a collateral asset liquidation. This ratio is expressed as a decimal representation of units of fundsAsset per unit collateralAsset in fundsAsset decimal precision.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of a collateral asset. |
1 |
|
|
| New value for `minRatio`. |
sortedPayments
sortedPayments
Gets the information of the sorted list.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| |
2 |
|
|
|
triggerDefault
triggerDefault
Triggers the default of a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to trigger the default. |
1 |
|
|
| Factory that will be used to deploy the liquidator. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| True if the liquidation is completed in the same transaction (uncollateralized). |
1 |
|
|
| The amount of remaining losses. |
2 |
|
|
| The amount of platform fees. |
unrealizedLosses
unrealizedLosses
Returns the amount unrealized losses.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
updateAccounting
updateAccounting
Updates the issuance parameters of the LoanManager, callable by the Governor and the PoolDelegate. Useful to call when `block.timestamp` is greater than `domainEnd` and the LoanManager is not accruing interest.
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
AllowedSlippageSet
AllowedSlippageSet
Emitted when `setAllowedSlippage` is called.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of a collateral asset. |
1 |
|
|
| New value for `allowedSlippage`. |
FundsDistributed
FundsDistributed
Funds have been claimed and distributed into the Pool.
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. |
IssuanceParamsUpdated
IssuanceParamsUpdated
Emitted when the issuance parameters are changed.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The timestamp of the domain end. |
1 |
|
|
| New value for the issuance rate. |
2 |
|
|
| The amount of accounted interest. |
LoanTransferAdminSet
LoanTransferAdminSet
Emitted when the loanTransferAdmin is set by the PoolDelegate.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the admin that can transfer loans. |
ManagementFeesPaid
ManagementFeesPaid
A fee payment was made.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The amount of delegate management fee paid. |
2 |
|
|
| The amount of platform management fee paid. |
MinRatioSet
MinRatioSet
Emitted when `setMinRatio` is called.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of a collateral asset. |
1 |
|
|
| New value for `minRatio`. |
PaymentAdded
PaymentAdded
Emitted when a payment is removed from the LoanManager payments array.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan. |
1 |
|
|
| The payment ID of the payment that was removed. |
2 |
|
|
| |
3 |
|
|
| |
4 |
|
|
| |
5 |
|
|
| |
6 |
|
|
| |
7 |
|
|
|
PaymentRemoved
PaymentRemoved
Emitted when a payment is removed from the LoanManager payments array.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan. |
1 |
|
|
| The payment ID of the payment that was removed. |
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