IRioLRTRewardDistributor

Git Source

Functions

initialize

Initializes the contract.

function initialize(address initialOwner, address treasury, address operatorRewardPool, address depositPool) external;

Parameters

Name
Type
Description

initialOwner

address

The initial owner of the contract.

treasury

address

The treasury address.

operatorRewardPool

address

The operator reward pool address.

depositPool

address

The contract that holds funds awaiting deposit into EigenLayer.

Events

ETHValidatorRewardsDistributed

Emitted when ETH validator rewards are distributed.

event ETHValidatorRewardsDistributed(uint256 treasuryShare, uint256 operatorShare, uint256 poolShare);

Parameters

Name
Type
Description

treasuryShare

uint256

The amount of rewards sent to the treasury.

operatorShare

uint256

The amount of rewards sent to the operator.

poolShare

uint256

The amount of rewards burned to realize the pool's gain.

TreasuryETHValidatorRewardShareBPSSet

Emitted when the treasury's share of Ethereum validator rewards is updated.

event TreasuryETHValidatorRewardShareBPSSet(uint16 newTreasuryETHValidatorRewardShareBPS);

Parameters

Name
Type
Description

newTreasuryETHValidatorRewardShareBPS

uint16

The new treasury share in basis points.

OperatorETHValidatorRewardShareBPSSet

Emitted when the operator's share of Ethereum validator rewards is updated.

event OperatorETHValidatorRewardShareBPSSet(uint16 newOperatorETHValidatorRewardShareBPS);

Parameters

Name
Type
Description

newOperatorETHValidatorRewardShareBPS

uint16

The new operator share.

Errors

NO_ETH_VALIDATOR_REWARDS_TO_DISTRIBUTE

Thrown when there are no ETH validator rewards to distribute.

error NO_ETH_VALIDATOR_REWARDS_TO_DISTRIBUTE();

ETH_VALIDATOR_SHARE_BPS_TOO_HIGH

Thrown when the ETH validator reward share is too high.

error ETH_VALIDATOR_SHARE_BPS_TOO_HIGH();

TREASURY_ETH_VALIDATOR_SHARE_BPS_TOO_HIGH

Thrown when the treasury ETH validator reward share is too high.

error TREASURY_ETH_VALIDATOR_SHARE_BPS_TOO_HIGH();

OPERATOR_ETH_VALIDATOR_SHARE_BPS_TOO_HIGH

Thrown when the operator ETH validator reward share is too high.

error OPERATOR_ETH_VALIDATOR_SHARE_BPS_TOO_HIGH();

Last updated