Interfaces
IStakingModuleIStakingModule
Functions
deposit
Allows users to deposit funds into the contract.
Parameters
Name | Type | Description |
---|---|---|
data | ValidatorData | ValidatorData calldata containing the validator's public key, withdrawal credentials, and amount of tokens to be deposited. |
latestDepositRoot | bytes32 | bytes32 containing the latest deposit root. |
validators
mevEth
VALIDATOR_DEPOSIT_SIZE
VALIDATOR_DEPOSIT_SIZE() This function returns the size of the validator deposit.
This function is used to determine the size of the validator deposit. It is used to ensure that validators have the correct amount of funds in order to participate in the network.
payRewards
This function is used to pay rewards to the users.
This function is used to pay rewards to the users. It takes in a uint256 rewards parameter which is the amount of rewards to be paid.
payValidatorWithdraw
This function allows a validator to withdraw their rewards from the contract.
This function is called by a validator to withdraw their rewards from the contract. It will transfer the rewards to the validator's address.
recoverToken
record
record() function is used to record the data in the smart contract.
record() function takes no parameters and returns four uint128 values.
registerExit
registerExit() allows users to exit the system.
registerExit() is a function that allows users to exit the system. It is triggered by an external call.
batchMigrate
Structs
ValidatorData
Structure for passing information about the validator deposit data.