Kill event; mock fix

This commit is contained in:
tim
2025-10-20 13:51:03 -04:00
parent 12fc43f999
commit 316da25f5b
4 changed files with 27 additions and 18 deletions

View File

@@ -1,10 +1,11 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.30;
import {IERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "./IPartyPool.sol";
import "./PartyPoolMintImpl.sol";
import "./PartyPoolSwapImpl.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
/// @title IPartyPlanner
/// @notice Interface for factory contract for creating and tracking PartyPool instances

View File

@@ -26,6 +26,8 @@ interface IPartyPool is IERC20Metadata, IOwnable {
// Events
event Killed();
event Mint(address payer, address indexed receiver, uint256[] amounts, uint256 lpMinted);
event Burn(address payer, address indexed receiver, uint256[] amounts, uint256 lpBurned);

View File

@@ -162,6 +162,7 @@ contract PartyPool is PartyPoolBase, OwnableExternal, ERC20External, IPartyPool
/// mint functionality, leaving only burns (withdrawals) working.
function kill() external onlyOwner {
_killed = true;
emit Killed();
}
/* ----------------------