Events

ERC20 Events

Transfer

Emitted when tokens are transferred from one address to another. This can include zero-value transfers.

Parameters

sender (address, indexed): The address of the sender who is transferring the tokens.

receiver (address, indexed): The address of the recipient receiving the tokens.

value (uint256): The number of tokens being transferred.

Example

If an address 0xAbc...123 sends 100 tokens to 0xDef...456, the Transfer event will be emitted with the following parameters:

sender: 0xAbc...123 receiver: 0xDef...456 value: 100

Approval

Emitted when an owner allows another Ethereum address, known as the spender, to spend tokens on their behalf. This approval system is a core component of the allowance mechanism in ERC20 tokens.

Parameters

owner (address, indexed): The address of the account granting the permission.

spender (address, indexed): The address which is being granted the permission to spend tokens.

value (uint256): The number of tokens the spender is allowed to spend on behalf of the owner.

Example

If address 0xAbc...123 approves 0xDef...456 to spend 50 tokens on its behalf, the Approval event will be emitted with the following parameters:

owner: 0xAbc...123 spender: 0xDef...456 value: 50

FFS Pair Events

Mint

Emitted when new LP (Liquidity Provider) tokens are minted, usually as a result of liquidity addition to the pool.

Parameters

sender (address, indexed): The address of the user that triggered the minting action.

amount0 (uint256): The amount of token0 (ERC1155 type) that was added to the pool.

amount1 (uint256): The amount of token1 (ERC20 type) that was added to the pool.

Example

If an address 0xAbc...123 adds 100 of token0 and 50 of token1 to the liquidity pool, the Mint event will be emitted with the following parameters:

sender: 0xAbc...123 amount0: 100 amount1: 50

Burn

Emitted when LP (Liquidity Provider) tokens are burned, usually as a result of liquidity removal from the pool.

Parameters

sender (address, indexed): The address of the user that triggered the burning action.

amount0 (uint256): The amount of token0 (ERC1155 type) that was removed from the pool.

amount1 (uint256): The amount of token1 (ERC20 type) that was removed from the pool.

to (address): The address to which the removed reserves (token0 and token1) have been sent.

Example

If an address 0xAbc...123 removes 100 of token0 and 50 of token1 from the liquidity pool and sends them to 0xDef...456, the Burn event will be emitted with the following parameters:

sender: 0xAbc...123 amount0: 100 amount1: 50 to: 0xDef...456

Swap

Emitted when tokens are swapped, either from token0 to token1 or vice-versa, in the liquidity pool.

Parameters

sender (address, indexed): The address of the user that initiated the swap.

amount0In (uint256): The amount of token0 (ERC1155 type) the user provided for the swap.

amount1In (uint256): The amount of token1 (ERC20 type) the user provided for the swap.

amount0Out (uint256): The amount of token0 (ERC1155 type) the user received from the swap.

amount1Out (uint256): The amount of token1 (ERC20 type) the user received from the swap.

to (address): The address to which the swapped tokens have been sent.

Example

If an address 0xAbc...123 swaps 100 of token0 for 50 of token1 and sends the resulting token1 to 0xDef...456, the Swap event will be emitted with the following parameters:

sender: 0xAbc...123 amount0In: 100 amount1In: 0 amount0Out: 0 amount1Out: 50 to: 0xDef...456

Sync

​​Emitted after a liquidity pool operation, such as minting, burning, or swapping. This event provides a real-time update on the reserves of the token0 and token1 held within the liquidity pool.

Parameters

reserve0 (uint112): The updated reserve of token0 (ERC1155 type) after the operation.

reserve1 (uint112): The updated reserve of token1 (ERC20 type) after the operation.

Example

If after a swap operation, the reserves of token0 and token1 are 5000 and 10000 respectively, the Sync event will be emitted with the following parameters:

reserve0: 5000 reserve1: 10000

Last updated