ITinteroVault
Interface for TinteroVault contract
Inherits: IERC4626
Interface for an ERC4626 that manages ITinteroLoan contracts. The vault’s assets are either lent to Loan contracts or delegated to other addresses to maximize the utilization of the assets.
Functions
totalAssetsDelegated
The total amount of idle assets delegated.
delegatedTo
The total amount of idle assets delegated to an address.
totalAssetsLent
The total amount of assets lent to Loan contracts.
lentTo
The total amount of assets lent to a Loan contract.
isLoan
Whether a Loan contract is managed by this vault.
askDelegation
Delegates assets to an address.
refundDelegation
Refunds delegated assets from an address.
forceRefundDelegation
requestLoan
Creates a new instance of a Loan contract with the provided parameters.
pushPayments
Adds a list of payments to a Loan contract. Calls Loan#pushPayments.
onDebit
Debits an outstanding principal from a Loan contract.
pushTranches
Adds a list of tranches to a Loan contract. Calls Loan#pushTranches.
fundN
Funds n
payments from a Loan contract. Calls Loan#fundN.
repossess
Repossess a range of payments from a Loan contract. Calls Loan#repossess.
upgradeLoan
Upgrades a Loan contract to a new implementation. Calls Loan#upgradeLoan.
Events
LoanCreated
Emitted when a Loan contract is created by this vault.
DelegateAssets
Emitted when assets are delegated to an address.
DelegateRefunded
Emitted when assets are refunded from an address.
Errors
DuplicatedLoan
Reverts if a Loan contract is already created by this vault.
OnlyManagedLoan
Reverts if the caller is not a Loan contract created by this vault.