Skip to content

Commit

Permalink
refactor: remove event in Comp (DelegateVotesChanged)
Browse files Browse the repository at this point in the history
  • Loading branch information
PacificYield committed Nov 29, 2024
1 parent 2238f15 commit a6fa74f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions contracts/governance/Comp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ abstract contract Comp is IComp, EncryptedERC20, EIP712, Ownable2Step {
/// @notice Emitted when an `account` (i.e. `delegator`) changes its delegate.
event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

/// @notice Emitted when a `delegate` account's vote balance changes.
event DelegateVotesChanged(address indexed delegate);

/// @notice Emitted when the governor contract that can reencrypt votes changes.
/// @dev WARNING: it can be set to a malicious contract, which could reencrypt all user votes.
event NewGovernor(address indexed governor);
Expand Down Expand Up @@ -296,6 +293,5 @@ abstract contract Comp is IComp, EncryptedERC20, EIP712, Ownable2Step {

TFHE.allowThis(newVotes);
TFHE.allow(newVotes, delegatee);
emit DelegateVotesChanged(delegatee);
}
}

0 comments on commit a6fa74f

Please sign in to comment.