event changes: SwapMint/BurnSwap replace rather than augment the regular Mint/Burn events; All swapping events have lpFee and protocolFee
This commit is contained in:
@@ -38,29 +38,45 @@ interface IPartyPool is IERC20Metadata, IOwnable {
|
||||
IERC20 indexed tokenIn,
|
||||
IERC20 indexed tokenOut,
|
||||
uint256 amountIn,
|
||||
uint256 amountOut
|
||||
uint256 amountOut,
|
||||
uint256 lpFee,
|
||||
uint256 protocolFee
|
||||
);
|
||||
|
||||
/// @notice Emitted when a single-token swapMint is executed.
|
||||
/// Records payer/receiver, input token index, gross transfer (net+fee), net input and fee taken.
|
||||
/// @notice Emitted instead of Swap when a single-token swapMint is executed.
|
||||
event SwapMint(
|
||||
address indexed payer,
|
||||
address indexed receiver,
|
||||
uint256 indexed inputTokenIndex,
|
||||
uint256 grossTransfer, // total _tokens transferred (net + fee)
|
||||
uint256 netInput, // net input credited to swaps (after fee)
|
||||
uint256 feeTaken // fee taken (ceil)
|
||||
IERC20 indexed tokenIn,
|
||||
uint256 amountIn,
|
||||
uint256 amountOut,
|
||||
uint256 lpFee, // taken from the input token
|
||||
uint256 protocolFee // taken from the input token
|
||||
);
|
||||
|
||||
/// @notice Emitted when a burnSwap is executed.
|
||||
/// Records payer/receiver, target token index and the uint payout sent to the receiver.
|
||||
/// @notice Emitted instead of Burn when a burnSwap is executed.
|
||||
event BurnSwap(
|
||||
address indexed payer,
|
||||
address indexed receiver,
|
||||
uint256 indexed targetTokenIndex,
|
||||
uint256 payoutUint
|
||||
IERC20 indexed tokenOut,
|
||||
uint256 amountIn,
|
||||
uint256 amountOut,
|
||||
uint256 lpFee,
|
||||
uint256 protocolFee
|
||||
);
|
||||
|
||||
event Flash(
|
||||
address indexed initiator,
|
||||
IERC3156FlashBorrower indexed receiver,
|
||||
IERC20 indexed token,
|
||||
uint256 amount,
|
||||
uint256 lpFee,
|
||||
uint256 protocolFee
|
||||
);
|
||||
|
||||
/// @notice Emitted when protocol fees are collected from this pool.
|
||||
/// @dev After collection, the protocolFee accounting array will be zeroed out.
|
||||
event ProtocolFeesCollected();
|
||||
|
||||
function LMSR() external view returns (LMSRStabilized.State memory);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user