IRioLRTDepositPool
Functions
initialize
Initializes the deposit pool contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The initial owner of the contract. |
|
| The address of the liquid restaking token. |
depositBalanceIntoEigenLayer
Deposits the entire deposit pool balance of the specified asset
into EigenLayer.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the asset to be deposited. |
transferMaxAssetsForShares
Transfers the maximum possible amount of assets based on the available pool balance and requested shares.
This function handles asset transfer by converting the share value to assets and ensures that either the requested amount or the maximum possible amount is transferred.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the asset to be transferred. |
|
| The number of shares to convert into assets for transfer. |
|
| The address of the recipient of the transferred assets. |
completeOperatorWithdrawalForAsset
Completes a withdrawal from EigenLayer for the specified asset
and operatorId
. Withdrawals directly to the deposit pool can occur for two reasons:
The operator has exited the strategy and the assets have been returned to the deposit pool.
Excess ETH from full withdrawals had accumulated in the EigenPod and was scraped to the deposit pool.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the asset to be withdrawn. |
|
| The ID of the operator from which the asset is being withdrawn. |
|
| The withdrawal to be completed. |
|
| The index of the middleware times to use for the withdrawal. |
Events
OperatorAssetWithdrawalCompleted
Emitted when an operator's asset withdrawal to the deposit pool is completed.
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the operator from which the asset was withdrawn. |
|
| The address of the asset that was withdrawn. |
|
| The root of the withdrawal that was completed. |
Errors
INVALID_WITHDRAWAL_ORIGIN
Thrown when a withdrawal was not queued through an operator delegator.
INVALID_WITHDRAWAL_STRATEGY_LENGTH
Thrown when the length of the strategies array is not 1.
Last updated