OracleAdapter.sol
General Overview
The OracleAdapter.sol
acts as an intermediary between different contract components. It can set contract addresses, manage access control roles, and handle interactions concerning validator exits and dissolutions.
The contract is granted special permissions to interact with PirexEth
for initiating voluntary exits of validators or managing their dissolution. A key feature is the ORACLE_ROLE
, which authorizes updates to the validator's state upon dissolution.
Technical Overview
Inherits: IOracleAdapter, AccessControlDefaultAdminRules
State Variables
pirexEth
rewardRecipient
ORACLE_ROLE
GOVERNANCE_ROLE
Functions
constructor
Parameters
Name | Type | Description |
---|---|---|
_initialDelay | uint48 | Delay required to schedule the acceptance |
setContract
Set a contract address
Parameters
Name | Type | Description |
---|---|---|
c | DataTypes.Contract | Contract |
contractAddress | address | Contract address |
requestVoluntaryExit
Send the request for voluntary exit
Parameters
Name | Type | Description |
---|---|---|
_pubKey | bytes | Public key |
dissolveValidator
Dissolve validator
Parameters
Name | Type | Description |
---|---|---|
_pubKey | bytes | Public key |
_amount | uint256 | ETH amount |