Skip to main content

Keeper

Git Source ↗

Inherits: KeeperOracles, KeeperRewards, KeeperValidators, IKeeper

Defines the functionality for updating Vaults' rewards and approving validators registrations

State Variables​

_initialized​

bool private _initialized

Functions​

constructor​

Constructor

constructor(
address sharedMevEscrow,
IVaultsRegistry vaultsRegistry,
IOsTokenVaultController osTokenVaultController,
uint256 _rewardsDelay,
uint256 maxAvgRewardPerSecond,
IValidatorsRegistry validatorsRegistry
)
KeeperOracles()
KeeperRewards(sharedMevEscrow, vaultsRegistry, osTokenVaultController, _rewardsDelay, maxAvgRewardPerSecond)
KeeperValidators(validatorsRegistry);

Parameters

NameTypeDescription
sharedMevEscrowaddressThe address of the shared MEV escrow contract
vaultsRegistryIVaultsRegistryThe address of the VaultsRegistry contract
osTokenVaultControllerIOsTokenVaultControllerThe address of the OsTokenVaultController contract
_rewardsDelayuint256The delay in seconds between rewards updates
maxAvgRewardPerSeconduint256The maximum possible average reward per second
validatorsRegistryIValidatorsRegistryThe address of the beacon chain validators registry contract

initialize​

Initializes the Keeper contract. Can only be called once.

function initialize(address _owner) external override onlyOwner;

Parameters

NameTypeDescription
_owneraddressThe address of the owner