Core Concepts
Events
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.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
event LPFeesCollected(address indexed _collector, uint256 indexed _amount);
event ALTBCPoolDeployed(
address indexed _xToken,
address indexed _yToken,
string indexed _version,
uint16 _lpFee,
uint16 _protocolFee,
address _protocolFeeCollector,
uint256 _maxXTokenSupply,
ALTBCInput _tbcInput,
bool _liquidityRemovalAllowed,
address sender
);
event ProtocolFeeCollectorConfirmed(address indexed _collector);
event ProtocolFeeCollectorProposed(address indexed _collector);
event Swap(address indexed _tokenIn, uint256 indexed _amountIn, uint256 indexed _amountOut, uint256 _minOut);
event AddressAllowed(address indexed _address, bool indexed _allowed);
event PoolCreated(address indexed _pool);
event ALTBCFactoryDeployed(string indexed _version);
event ProtocolFeeCollectorConfirmed(address indexed _collector);
event ProtocolFeeCollectorProposed(address indexed _collector);
event RevenueWithdrawn(address indexed _collector, uint256 indexed _amount);
event LiquidityWithdrawn(address indexed _collector, uint256 indexed tokenId, uint256 indexed amountOutXToken, uint256 indexed amountOutYToken, uint256 revenue);
event LPTokenMinted(address indexed _lp, uint256 indexed tokenId, packedFloat wj, packedFloat hn);
event LPTokenBurned(address indexed _lp, uint256 indexed tokenId, uint256 indexed initialLiquidityWj);
event FeesGenerated(uint256 indexed lpFee, uint256 indexed protocolFee, uint256 indexed revenue);
event AllowListDeployed();
event SetDeployerAllowList(address indexed _allowedList);
event FeeSet(FeeCollectionType indexed _feeType, address indexed _collector, uint256 indexed _amount);
event FeeSet(FeeCollectionType indexed _feeType, uint16 indexed _fee);
event SetYTokenAllowList(address indexed _allowedList);
event Initialized(uint64 version);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event Paused(address account);
event Unpaused(address account);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);