OperatorOperations

Git Source

Functions

depositETHToOperators

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

function depositETHToOperators(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.

depositTokenToOperators

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

function depositTokenToOperators(
    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.

queueWithdrawalFromOperatorsForUserSettlement

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

function queueWithdrawalFromOperatorsForUserSettlement(
    IRioLRTOperatorRegistry operatorRegistry,
    address strategy,
    uint256 amount
) 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.

queueETHWithdrawalFromOperatorsForUserSettlement

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

function queueETHWithdrawalFromOperatorsForUserSettlement(IRioLRTOperatorRegistry operatorRegistry, uint256 amount)
    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.

queueTokenWithdrawalFromOperatorsForUserSettlement

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

function queueTokenWithdrawalFromOperatorsForUserSettlement(
    IRioLRTOperatorRegistry operatorRegistry,
    address strategy,
    uint256 sharesToWithdraw
) 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.

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();

Last updated