Vault
WagyuStakerWagyuStaker
Structs
Record
State Variables
record
Record of total deposits, withdraws, rewards paid and validators exited
validators
The number of validators on the consensus layer registered under this contract
mevEth
The address of the MevEth contract
VALIDATOR_DEPOSIT_SIZE
Validator deposit size.
BEACON_CHAIN_DEPOSIT_CONTRACT
The Canonical Address of the BeaconChainDepositContract
Functions
constructor
Construction sets authority, MevEth, and deposit contract addresses
| Name | Type | Description |
| ------------ | --------- | ---------------------------------------------- | --- | ------------------ | --------- | ------------------------------------------ | --- | --------- | --------- | ---------------------------------- |
| _authority
| address
| The address of the controlling admin authority | | _depositContract
| address
| The address of the beacon deposit contract | | _mevEth
| address
| The address of the mevETH contract |
deposit
Function to deposit funds into the BEACON_CHAIN_DEPOSIT_CONTRACT, and register a validator
payRewards
Function to pay rewards to the MevEth contract Only callable by an operator
Name | Type | Description |
---|---|---|
rewards | uint256 | rewards to pay to the MevEth contract |
registerExit
payValidatorWithdraw
Function to pay MevEth when withdrawing funds from a validator This function is only callable by an operator and emits an event for offchain validator registry tracking.
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.
batchMigrate
Batch register Validators for migration only Admin
Name | Type | Description |
---|---|---|
batchData | IStakingModule.ValidatorData[] | list of each validators' data struct |
receive
Function to receive Ether
Events
NewValidator
Event emitted when a validator is registered
TokenRecovered
Event emitted when tokens are recovered from the contract.
RewardsPaid
Event emitted when rewards are paid to the MevEth contract.
ValidatorWithdraw
Event emitted when funds representing a validator withdrawal are sent to the MevEth contract.
MevEthUpdated
Event emitted when the mevEth address is updated.