OperatorOperations

Functions

depositETH

Deposits ETH into EigenLayer through the operators that are returned from the registry.

function depositETH(IRioLRTOperatorRegistry operatorRegistry, uint256 amount)
    internal
    returns (uint256 depositAmount);

Parameters

NameTypeDescription

operatorRegistry

IRioLRTOperatorRegistry

The operator registry used allocate to and deallocate from EigenLayer operators.

amount

uint256

The amount of ETH to deposit.

depositToken

Deposits the given amount of tokens into EigenLayer the provided EigenLayer strategy via the operators that are returned from the registry.

function depositToken(
    IRioLRTOperatorRegistry operatorRegistry,
    address token,
    address strategy,
    uint256 sharesToAllocate
) internal returns (uint256 sharesReceived);

Parameters

NameTypeDescription

operatorRegistry

IRioLRTOperatorRegistry

The operator registry used allocate to and deallocate from EigenLayer operators.

token

address

The address of the token to deposit.

strategy

address

The strategy to deposit the funds into.

sharesToAllocate

uint256

The amount of strategy shares to allocate.

queueWithdrawals

Queues withdrawals from EigenLayer through the operators that are returned from the registry.

function queueWithdrawals(
    IRioLRTOperatorRegistry operatorRegistry,
    address strategy,
    uint256 amount,
    address withdrawalQueue
) internal returns (bytes32 aggregateRoot);

Parameters

NameTypeDescription

operatorRegistry

IRioLRTOperatorRegistry

The operator registry used allocate to and deallocate from EigenLayer operators.

strategy

address

The strategy to withdraw the funds from.

amount

uint256

The amount needed.

withdrawalQueue

address

The address of the withdrawal queue.

queueETHWithdrawals

Queues ETH withdrawals from EigenLayer through the operators that are returned from the registry.

function queueETHWithdrawals(IRioLRTOperatorRegistry operatorRegistry, uint256 amount, address withdrawalQueue)
    internal
    returns (bytes32 aggregateRoot);

Parameters

NameTypeDescription

operatorRegistry

IRioLRTOperatorRegistry

The operator registry used allocate to and deallocate from EigenLayer operators.

amount

uint256

The amount of ETH needed.

withdrawalQueue

address

The address of the withdrawal queue.

queueTokenWithdrawals

Queues a withdrawal from EigenLayer through the operators that are returned from the registry.

function queueTokenWithdrawals(
    IRioLRTOperatorRegistry operatorRegistry,
    address strategy,
    uint256 sharesToWithdraw,
    address withdrawalQueue
) internal returns (bytes32 aggregateRoot);

Parameters

NameTypeDescription

operatorRegistry

IRioLRTOperatorRegistry

The operator registry used allocate to and deallocate from EigenLayer operators.

strategy

address

The strategy to withdraw the funds from.

sharesToWithdraw

uint256

The number of shares to withdraw.

withdrawalQueue

address

The address of the withdrawal queue.

Errors

INCORRECT_NUMBER_OF_SHARES_QUEUED

Thrown when the number of shares queued for withdrawal from EigenLayer do not match the number of shares requested.

error INCORRECT_NUMBER_OF_SHARES_QUEUED();

INCORRECT_NUMBER_OF_SHARES_RECEIVED

Thrown when the amount of shares received is not the expected amount.

error INCORRECT_NUMBER_OF_SHARES_RECEIVED();

Last updated