From eca3fb95663610bdf3d4c22fd26587285fd56ab9 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 20 Aug 2024 15:00:12 -0400 Subject: [PATCH 1/2] Add warning to HolographOperator for setUtilityToken --- src/HolographOperator.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/HolographOperator.sol b/src/HolographOperator.sol index 5bc5631e..cf45f341 100644 --- a/src/HolographOperator.sol +++ b/src/HolographOperator.sol @@ -1006,6 +1006,11 @@ contract HolographOperator is Admin, Initializable, HolographOperatorInterface { /** * @notice Update the Holograph Utility Token address + * @dev WARNING!!! + * This function should only be used in the event of a token migration which should never happen + * Updating this will break all the slashing and bonding logic + * To update the utility token in a safe way before calling this function, + * the _bondedAmounts and _operatorPods arrays should reset to zero * @param utilityToken address of the Holograph Utility Token smart contract to use */ function setUtilityToken(address utilityToken) external onlyAdmin { From 05141f8f3edee84ac0629aa29f40f148dba4c3ca Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 20 Aug 2024 15:37:12 -0400 Subject: [PATCH 2/2] Update HolographOperator constant address for localhost tests --- test/foundry/utils/Constants.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/foundry/utils/Constants.sol b/test/foundry/utils/Constants.sol index 0ad1a126..00f8d0fd 100644 --- a/test/foundry/utils/Constants.sol +++ b/test/foundry/utils/Constants.sol @@ -41,7 +41,7 @@ library Constants { } function getHolographOperator() internal pure returns (address) { - return address(0xb03ee8D15C046b25eD006e247f71d6F27920624f); + return address(0x53C56B06B2791F21aeE4B0816EBdBeF825739E58); } function getHolographOperatorProxy() internal pure returns (address) {