Vault
ShareVaultShareVault
MevEthShareVault.sol Git Source
Structs
ProtocolBalance
Struct to account for the protocol fees and rewards.
State Variables
protocolBalance
ProtocolBalance struct to account for the protocol fees and rewards.
mevEth
The address of the MevEth contract.
protocolFeeTo
The address that protocol fees are sent to.
Functions
constructor
Construction sets authority, MevEth, and averageFeeRewardsPerBlock.
Parameters
Name | Type | Description |
---|---|---|
authority | address | The address of the controlling admin authority. |
_mevEth | address | The address of the WETH contract to use for deposits. |
_protocolFeeTo | address | The address that protocol fees are sent to. |
payRewards
Function to pay rewards to the MevEth contract
Only callable by an operator.
Parameters
Name | Type | Description |
---|---|---|
rewards | uint256 | rewards to pay to the MevEth contract |
sendFees
Function to collect the fees owed to the prorotocol.
setProtocolFeeTo
recoverToken
Function to recover tokens sent to the contract.
This function is only callable by an admin.
setNewMevEth
Function to set a new mevEth address.
payValidatorWithdraw
Function to pay MevEth when withdrawing funds from a validator
This function is only callable by an admin and emits an event for offchain validator registry tracking.
receive
Function to receive ETH.
Events
RewardsCollected
Event emitted when the protocol balance is updated during logRewards
TokenRecovered
Event emitted when a tokens are recovered from the contract.
ProtocolFeeToUpdated
Event emitted when the protocolFeeTo address is updated.
FeesSent
Event emitted when the protocol fees are sent to the protocolFeeTo address.
RewardsPaid
Event emitted when rewards are paid to the MevEth contract.
MevEthUpdated
Event emitted when the mevEth address is updated.
ValidatorWithdraw
Event emitted when funds representing a validator withdrawal are sent to the MevEth contract.