Skip to content

Commit

Permalink
feat: add paused check and blacklist check for updateAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
cosinlink committed Jul 19, 2024
1 parent f1f21ce commit 7be9cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/BC_fusion/StakeHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ contract StakeHub is System, Initializable, Protectable {
}

/*----------------- external functions -----------------*/
function updateAgent(address newAgent) external validatorExist(msg.sender) {
function updateAgent(address newAgent) external validatorExist(msg.sender) whenNotPaused notInBlackList {
if (agentToOperator[newAgent] != address(0)) revert InvalidAgent();
if (_validatorSet.contains(newAgent)) revert InvalidAgent();

Expand Down

0 comments on commit 7be9cfc

Please sign in to comment.