IRevolvingCreditLine
Last updated
Last updated
To borrow funds from the pool against the order book, the to address has to have a borrowed role. It is not possible to borrow after the current loan maturity has passed.
TickBorrowed event is declared in BorrowerLogic library
Parameters
Name | Type | Description |
---|---|---|
Cancel a timelock emits a {TimelockCancelled} event
Deposit funds to the target rate tick
Parameters
Name | Type | Description |
---|---|---|
Returns
Withdrawn the unborrowed part of a borrowed position
Parameters
Execute a ready timelock emits a {TimelockExecuted} event
Exit a position from the current loan
Will reallocate the borrowed part of the position as well as realized accrualas, and withdraw the unborrowed part of the positionborrowedAmountToExit set to type(uint256).max means a full exitpartial exits are only possible for fully matched positionsfull exits will burn the position and need pool approval to transfer itExitedAmountRedistributedInTick event is declared in LenderLogic library
Parameters
Retrieves the current accruals of the ongoing loan
Returns
Gets the target epoch data
Parameters
Returns
Retrieve the pool loan duration
Returns
Retrieve the current maturity
Returns
Retrieve the general high level information of a position
Parameters
Returns
Retrieve the current overall value of the position, including both borrowed and unborrowed amounts
Parameters
Returns
Retrieve the repartition between borrowed amount and unborrowed amount of the position
Parameters
Returns
Retrieve the current timelock
Returns
Opt out a borrowed position from a loan and remove it from the borrowable funds
Parameters
Repay borrowed funds with interest to the pool emits a {Repaid} event and one {TickRepaid} event per repayed tick
TickRepaid event is declared in BorrowerLogic library
Set the fees controller contract address
Parameters
Update the maximum borrowable amount
Parameters
Update the minimum deposit amount
Parameters
Set the position descriptor contract address
Parameters
Update the loan finalization period
Parameters
Starts a non-standard repayment procedure by initiating a timelock for - Stops all native actions possible in the pool - Sends the unborrowed funds to the non standard repayment procedure contract - Initializes the non standard repayment procedure contract
Parameters
Start a rescue procedure by initiating a timelock for - Stops all native actions possible in the pool - Sends the unborrowed funds to a recipient address
Parameters
Closes and Opens the pool If the pool is OPEN, changes the pool phase to CLOSED, stops all actions in the pool If the pool is CLOSED, changes the pool phase to OPEN, opens up all actions in the pool again Emits a {Open} or {Closed} event
Update the rate of a position
Parameters
Withdraw funds from the order book
amountToWithdraw set to type(uint256).max means a full withdrawamountToWithdraw must be set between 0 and positionCurrentValuefull withdrawals need the pool approval to transfer the positiona successful full withdraw will burn the position
Parameters
Withdraw fees to the fees controller emits a {FeesWithdrawn} event
Emitted during a borow
Parameters
Emitted when the pool is closed
Emitted when a deposit is made on the pool
Parameters
Emitted when the unborrowed part of a borrowed position is detached
Parameters
Emitted when a position is fully exited
Parameters
Emitted when the fees controller is set
Parameters
Emitted when fees are withdrawn to the fees controller
Parameters
Emitted when the maximum borrowable amount has been set
Parameters
Emitted when the minimum deposit amount has been set
Parameters
Emitted when a non-standard repayment procedure has started
Parameters
Emitted when the pool is opened
Emitted when a borrowed position is signalling its intention to not be a part of the next loan
Parameters
Emitted when the position descriptor is set
Parameters
Emitted when a position's rate is updated
Parameters
Emitted during a repayment
Parameters
Emitted when a rescue procedure has started
Parameters
Emitted when the loan finalization period has been set
Parameters
Emitted when a timelock has been cancelled
Emitted when a timelock has been executed
Parameters
Emitted when a position is withdrawn
Parameters
Thrown when trying to interact with an already executed timelock
Thrown when trying to interact with an already initiated timelock
Thrown when the input delay for a timelock is too small
Thrown when trying to interact with inexistant timelock
Thrown when trying to interact with an already executed timelock
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|