Skip to content

Commit

Permalink
feat: emit event when new gov is queued (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffel authored and fubuloubu committed Jul 9, 2021
1 parent 93a68c2 commit b70f4c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/Vault.vy
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ event StrategyReported:
event UpdateGovernance:
governance: address # New active governance

event NewPendingGovernance:
governance: address # New pending governance


event UpdateManagement:
management: address # New active manager
Expand Down Expand Up @@ -375,6 +378,7 @@ def setGovernance(governance: address):
@param governance The address requested to take over Vault governance.
"""
assert msg.sender == self.governance
log NewPendingGovernance(msg.sender)
self.pendingGovernance = governance


Expand Down

0 comments on commit b70f4c1

Please sign in to comment.