RioLRTRewardDistributor
Inherits: IRioLRTRewardDistributor, OwnableUpgradeable, UUPSUpgradeable, RioLRTCore
State Variables
MAX_BPS
The maximum basis points value (100%).
treasury
The treasury address.
operatorRewardPool
The operator reward pool address.
treasuryETHValidatorRewardShareBPS
The treasury share of the ETH validator rewards in basis points.
operatorETHValidatorRewardShareBPS
The operator share of the ETH validator rewards in basis points.
Functions
constructor
Parameters
issuer_
address
The LRT issuer that's authorized to deploy this contract.
initialize
Initializes the contract.
Parameters
initialOwner
address
The initial owner of the contract.
token_
address
The address of the liquid restaking token.
treasury_
address
The treasury address.
operatorRewardPool_
address
The operator reward pool address.
distributeETHValidatorRewards
Distributes ETH validator rewards held in this contract to the treasury, operator pool, and deposit pool.
All recipients are trusted internal contracts that require no reentrancy protection.
setTreasuryAndOperatorETHValidatorRewardShareBPS
Sets the treasury and operator's share of ETH validator rewards.
Parameters
newTreasuryETHValidatorRewardShareBPS
uint16
The new treasury share in basis points.
newOperatorETHValidatorRewardShareBPS
uint16
The new operator share in basis points.
setTreasuryETHValidatorRewardShareBPS
Sets the treasury's share of ETH validator rewards.
Parameters
newTreasuryETHValidatorRewardShareBPS
uint16
The new treasury share in basis points.
setOperatorETHValidatorRewardShareBPS
Sets the operator's share of ETH validator rewards.
Parameters
newOperatorETHValidatorRewardShareBPS
uint16
The new operator share in basis points.
_setTreasuryETHValidatorRewardShareBPS
Sets the treasury's share of Ethereum validator rewards.
Parameters
newTreasuryETHValidatorRewardShareBPS
uint16
The new treasury share in basis points.
_setOperatorETHValidatorRewardShareBPS
Sets the operator's share of Ethereum validator rewards.
Parameters
newOperatorETHValidatorRewardShareBPS
uint16
The new operator share in basis points.
receive
Receives ETH for distribution.
_authorizeUpgrade
Allows the owner to upgrade the reward distributor implementation.
Parameters
newImplementation
address
The implementation to upgrade to.
Last updated