Kill event; mock fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
/* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user