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 |
---|---|---|
to
address
Receiving address of the borrowed funds
amount
uint256
Amount of funds to borrow emits a {Borrowed} event and one {TickBorrowed} event per borrowed tick
rate
uint256
Rate to which deposit funds
amount
uint256
Amount of funds to deposit
to
address
Receiving address of the position
positionId
uint256
ID of the newly minted position emits a {Deposited} event
positionId
uint256
ID of the position emits a {Detached} event
positionId
uint256
ID of the position
borrowedAmountToExit
uint256
Address of the fees controller emits an {Exited} event and one {ExitedAmountRedistributedInTick} event per recipient tick
currentAccruals
uint256
undefined
rate
uint256
Rate of the queried tick
epochId
uint256
ID of the queried epoch
deposited
uint256
Amount of funds deposited into the epoch
borrowed
uint256
Amount of funds borrowed from the epoch
accruals
uint256
Accruals generated by the epoch
loanId
uint256
ID of the first loan of the epoch
isBaseEpoch
bool
Boolean to signify whether the epoch is a base epoch or not
precedingLoanId
uint256
Id of the loan before that epoch loan
positionsCount
uint256
Number of positions in the epoch
loanDuration
uint256
The pool loan duration
maturity
uint256
The current maturity
positionId
uint256
ID of the position
owner
address
Owner of the position
rate
uint256
Rate of the position
depositedAmount
uint256
Base deposit of the position
status
enum PositionStatus
Current status of the position
positionId
uint256
ID of the position
positionCurrentValue
uint256
Current value of the position
positionId
uint256
ID of the position
unborrowedAmount
uint256
Amount that is not currently borrowed, and can be withdrawn
borrowedAmount
uint256
Amount that is currently borrowed
timelock
PoolTimelock
The current timelock, may be empty
positionId
uint256
The ID of the position emits an {OptedOut} event
feesController
contract IFeesController
Address of the fees controller emits a {FeesControllerSet} event
maxBorrowableAmount
uint256
New value of the maximum borrowable amount emits a {MaxBorrowableAmountSet} event
minDepositAmount
uint256
New value of the minimum deposit amount emits a {MinDepositAmountSet} event
positionDescriptor
contract IPositionDescriptor
Address of the position descriptor emits a {PositionDescriptorSet} event
rolloverPeriod
uint256
New value of the loan finalization period emits a {RolloverPeriodSet} event
nonStandardRepaymentModule
contract INonStandardRepaymentModule
Address of the non standard repayment module contract
delay
uint256
Timelock delay emits a {NonStandardRepaymentProcedureStarted} event
recipient
address
Address to which the funds will be sent
delay
uint256
Timelock delay emits a {RescueProcedureStarted} event
positionId
uint256
ID of the position
newRate
uint256
New rate of the position emits a {RateUpdated} event
positionId
uint256
ID of the position
amountToWithdraw
uint256
Address of the fees controller emits a {Withdrawn} event
borrowedAmount
uint256
undefined
fees
uint256
undefined
to
address
undefined
positionId indexed
uint256
undefined
to
address
undefined
amount
uint256
undefined
rate
uint256
undefined
epochId
uint256
undefined
positionId indexed
uint256
undefined
receivedAmount
uint256
undefined
withdrawalFees
uint256
undefined
positionId indexed
uint256
undefined
isFullyExited
bool
undefined
unborrowedAmount
uint256
undefined
borrowedAmountToExit
uint256
undefined
receivedAmount
uint256
undefined
exitFees
uint256
undefined
feesController
address
undefined
fees
uint256
undefined
maxBorrowableAmount
uint256
undefined
minDepositAmount
uint256
undefined
nonStandardRepaymentModule
address
undefined
delay
uint256
undefined
positionId indexed
uint256
undefined
loanId
uint256
undefined
positionDescriptor
address
undefined
positionId indexed
uint256
undefined
newRate
uint256
undefined
movedAmount
uint256
undefined
repaidAmount
uint256
undefined
fees
uint256
undefined
recipient
address
undefined
delay
uint256
undefined
rolloverPeriod
uint256
undefined
transferredAmount
uint256
undefined
positionId indexed
uint256
undefined
amountToWithdraw
uint256
undefined
receivedAmount
uint256
undefined
withdrawalFees
uint256
undefined