Skip to content

Commit

Permalink
Merge pull request #354 from holographxyz/feature/add-warning-on-set-…
Browse files Browse the repository at this point in the history
…utility-token

HAL-04: Add warning to HolographOperator for setUtilityToken
  • Loading branch information
sogoiii authored Aug 20, 2024
2 parents 3c5fddc + 05141f8 commit 341d1e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/HolographOperator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/utils/Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ library Constants {
}

function getHolographOperator() internal pure returns (address) {
return address(0xb03ee8D15C046b25eD006e247f71d6F27920624f);
return address(0x53C56B06B2791F21aeE4B0816EBdBeF825739E58);
}

function getHolographOperatorProxy() internal pure returns (address) {
Expand Down

0 comments on commit 341d1e3

Please sign in to comment.