Skip to content

Commit

Permalink
fix: set locator address in finalizeUpgrade_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Amuhar committed Feb 25, 2025
1 parent ad2158d commit 1fd1b70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions contracts/0.8.9/oracle/ValidatorsExitBus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ contract ValidatorsExitBus is AccessControlEnumerable {

bytes32 private constant LOCATOR_CONTRACT_POSITION = keccak256("lido.ValidatorsExitBus.locatorContract");

constructor(address locatorAddr) {
_setLocatorAddress(locatorAddr);
}

function _setLocatorAddress(address addr) internal {
if (addr == address(0)) revert ZeroAddress();

Expand Down
2 changes: 1 addition & 1 deletion contracts/0.8.9/oracle/ValidatorsExitBusOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ contract ValidatorsExitBusOracle is BaseOracle, PausableUntil, ValidatorsExitBus

constructor(uint256 secondsPerSlot, uint256 genesisTime, address lidoLocator)
BaseOracle(secondsPerSlot, genesisTime)
ValidatorsExitBus(lidoLocator)
{
LOCATOR = ILidoLocator(lidoLocator);
}
Expand All @@ -121,6 +120,7 @@ contract ValidatorsExitBusOracle is BaseOracle, PausableUntil, ValidatorsExitBus

function finalizeUpgrade_v2() external {
_updateContractVersion(2);
_setLocatorAddress(address(LOCATOR));
}

/// @notice Resume accepting validator exit requests
Expand Down

0 comments on commit 1fd1b70

Please sign in to comment.