IRCLLenders
Methods
deposit
Deposit funds to the target rate tick
Parameters
Returns
detach
Withdrawn the unborrowed part of a borrowed position
Parameters
exit
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
optOut
Opt out a borrowed position from a loan and remove it from the borrowable funds
Parameters
updateRate
Update the rate of a position
Parameters
withdraw
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
Events
Deposited
Emitted when a deposit is made on the pool
Parameters
Detached
Emitted when the unborrowed part of a borrowed position is detached
Parameters
Exited
Emitted when a position is fully exited
Partial exits are only possible for fully matched positions
Parameters
OptedOut
Emitted when a borrowed position is signalling its intention to not be a part of the next loan
Parameters
RateUpdated
Emitted when a position's rate is updated
Parameters
Withdrawn
Emitted when a position is withdrawn
amountToWithdraw set to type(uint256).max means a full withdraw
Parameters
Last updated