Skip to content

Commit

Permalink
Add minipool scrubbed event
Browse files Browse the repository at this point in the history
  • Loading branch information
kanewallmann committed Oct 18, 2021
1 parent 74a2fc8 commit b16ba59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/contract/minipool/RocketMinipoolDelegate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ contract RocketMinipoolDelegate is RocketMinipoolStorageLayout, RocketMinipoolIn
// Events
event StatusUpdated(uint8 indexed status, uint256 time);
event ScrubVoted(address indexed member, uint256 time);
event MinipoolScrubbed(uint256 time);
event EtherDeposited(address indexed from, uint256 amount, uint256 time);
event EtherWithdrawn(address indexed to, uint256 amount, uint256 time);
event EtherWithdrawalProcessed(address indexed executed, uint256 nodeAmount, uint256 userAmount, uint256 totalBalance, uint256 time);
Expand Down Expand Up @@ -478,6 +479,8 @@ contract RocketMinipoolDelegate is RocketMinipoolStorageLayout, RocketMinipoolIn
if (totalScrubVotes.add(1) > quorum) {
// Dissolve this minipool, recycling ETH back to deposit pool
_dissolve();
// Emit event
emit MinipoolScrubbed(block.timestamp);
} else {
// Increment total
totalScrubVotes = totalScrubVotes.add(1);
Expand Down

0 comments on commit b16ba59

Please sign in to comment.