Skip to content

Commit

Permalink
emit event when emp is activated
Browse files Browse the repository at this point in the history
  • Loading branch information
drikssy committed Oct 4, 2024
1 parent 70577aa commit 65cd4f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/NukeFund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ contract NukeFund is INukeFund, AddressProviderResolver, ReentrancyGuard, Pausab
if (entropy % 10 == 7) {
isEMPActive = true; // sets EMPActive to true if the token is an emp
unpauseAt = block.number + (entropy / empDivisor); // sets the end index of pause
emit EmpActivated(tokenId, unpauseAt);
}
}

Expand Down
1 change: 1 addition & 0 deletions contracts/interfaces/INukeFund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ interface INukeFund {
event AirdropAddressUpdated(address indexed newAddress);
event DevAddressUpdated(address indexed newAddress);
event DaoAddressUpdated(address indexed newAddress);
event EmpActivated(uint256 tokenId, uint256 unpauseAt);

// Fallback function to receive ETH and update fund balance
receive() external payable;
Expand Down

0 comments on commit 65cd4f7

Please sign in to comment.