Skip to main content
This document explains all the events emitted by use of the product. Both the pool and the factory emit events to make it easier for offchain tools to monitor the state and activity of the contracts. See IALTBCEvents.sol.

Pool Events

LP Fees Collected

Emitted when LP fees have been collected by the owner of the pool.

ALTBC Pool Deployed

Emitted when an ALTBC pool has been deployed.

Protocol Fee Collector Confirmed

Emitted when protocol fee collector has been confirmed.

Protocol Fee Collector Proposed

Emitted when protocol fee collector has been proposed.

Swap

Emitted when a swap has been made.

Factory Events

Address Allowed

Emitted when a token or deployer is added to the allow list.

Pool Created

Emitted when the factory has deployed a pool.

ALTBC Pool Factory Deployed

Emitted when an ALTBC factory has been deployed.

Protocol Fee Collector Confirmed

Emitted when protocol fee collector has been confirmed.

Protocol Fee Collector Proposed

Emitted when protocol fee collector has been proposed.

Revenue Withdrawn

Emitted when the owner of the pool withdraws revenue accrued.

Liquidity Withdrawn

Emitted when the owner of a position withdraws liquidity from the pool.

LP Token Minted

Emitted when a new LP token is minted.

LP Token Burned

Emitted when an LP token is burned.

Fees Generated

Emitted when fees have been generated. Includes the amount of LP fees, protocol fees, and revenue generated.

Allow List Deployed

Emitted when the allow list is deployed.

Set Deployer Allow List

Emitted when the deployer allow list is set.

Fees Collected

Emitted when fees have been collected. Includes the type of fee collected (LP or Protocol), the collector, and the amount collected.

Fee Set

Emitted when the fee value for swaps has been updated. Includes the type of fee (LP or Protocol) and the new fee value.

Set Y Token Allow List

Emitted when the Y token allow list is set.

Non Native Events

These events are not native to the protocol but are emitted by the protocol, usually imported by other libraries.

Initialized

Emitted when the contract has been initialized.

Ownership Transferred

Emitted when the ownership of the contract has been transferred. This is used in the Ownable2Step contract and the Ownable contract.

Paused

Emitted when the contract has been paused.

Unpaused

Emitted when the contract has been unpaused.

Transfer ERC20

Emitted when a ERC20 token transfer occurs.

Approval ERC20

Emitted when a ERC20 token approval occurs.

Transfer ERC721

Emitted when a ERC721 token transfer occurs.

Approval ERC721

Emitted when a ERC721 token approval occurs.

Approval For All ERC721

Emitted when a ERC721 token approval for all occurs.

Architecture

Please visit next page for Architecture.