License: GPL-2.0-or-later
interface IUniswapV3PoolEvents
Contains all events emitted by the pool
event Initialize(uint160 sqrtPriceX96, int24 tick)
Emitted exactly once by a pool when #initialize is first called on the pool
Mint/Burn/Swap cannot be emitted by the pool before Initialize
Parameters:
The initial sqrt price of the pool, as a Q64.96
The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)
Emitted when liquidity is minted for a given position
Parameters:
The address that minted the liquidity
The owner of the position and recipient of any minted liquidity
The lower tick of the position
The upper tick of the position
The amount of liquidity minted to the position range
How much token0 was required for the minted liquidity
How much token1 was required for the minted liquidity
Emitted when fees are collected by the owner of a position
Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees
Parameters:
The owner of the position for which fees are collected
The lower tick of the position
The upper tick of the position
The amount of token0 fees collected
The amount of token1 fees collected
Emitted when a position's liquidity is removed
Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect
Parameters:
The owner of the position for which liquidity is removed
The lower tick of the position
The upper tick of the position
The amount of liquidity to remove
The amount of token0 withdrawn
The amount of token1 withdrawn
Emitted by the pool for any swaps between token0 and token1
Parameters:
The address that initiated the swap call, and that received the callback
The address that received the output of the swap
The delta of the token0 balance of the pool
The delta of the token1 balance of the pool
The sqrt(price) of the pool after the swap, as a Q64.96
The liquidity of the pool after the swap
The log base 1.0001 of price of the pool after the swap
Emitted by the pool for any flashes of token0/token1
Parameters:
The address that initiated the swap call, and that received the callback
The address that received the tokens from flash
The amount of token0 that was flashed
The amount of token1 that was flashed
The amount of token0 paid for the flash, which can exceed the amount0 plus the fee
The amount of token1 paid for the flash, which can exceed the amount1 plus the fee
IncreaseObservationCardinalityNext
Emitted by the pool for increases to the number of observations that can be stored
observationCardinalityNext is not the observation cardinality until an observation is written at the index just before a mint/swap/burn.
Parameters:
observationCardinalityNextOld
The previous value of the next observation cardinality
observationCardinalityNextNew
The updated value of the next observation cardinality
Emitted when the protocol fee is changed by the pool
Parameters:
The previous value of the token0 protocol fee
The previous value of the token1 protocol fee
The updated value of the token0 protocol fee
The updated value of the token1 protocol fee
CollectProtocol
Emitted when the collected protocol fees are withdrawn by the factory owner
Parameters:
The address that collects the protocol fees
The address that receives the collected protocol fees
The amount of token0 protocol fees that is withdrawn