This document describes the events emitted by the TradeFlow-Core smart contracts, specifically administrative actions for transparency.
Emitted when the admin updates the address that receives protocol fees.
- Topics:
"Admin"(Symbol)"SetFeeTo"(Symbol)
- Data:
(old_fee_recipient: Address, new_fee_recipient: Address)
Emitted when the admin changes the status of a specific liquidity pool (e.g., pausing or unpausing).
- Topics:
"Admin"(Symbol)"PoolStatus"(Symbol)token_a(Address)token_b(Address)
- Data:
status: u320: Paused1: Active- (Other codes may be defined in the future)
Emitted when the admin executes an emergency eject function to forcefully withdraw all liquidity from a deprecated pool. This is a critical security event that immediately alerts all indexers and monitoring systems.
- Topics:
"ProtocolEmergencyEject"(Symbol)"CRITICAL"(Symbol) - Initial alert"ProtocolEmergencyEject"(Symbol)"COMPLETED"(Symbol) - Completion notification
- Data:
- Initial alert:
(pool_address: Address, token_a: Address, token_b: Address, reserve_a: i128, reserve_b: i128) - Completion:
pool_address: Address
- Initial alert:
Trigger Conditions:
- Pool must be marked as deprecated (
is_deprecated = true) - Must be called by authorized admin address
- Pool must not be locked by reentrancy protection
Impact:
- All liquidity is forcefully withdrawn from the pool
- Underlying tokens are returned to LPs based on their snapshot balances
- Pool reserves are reset to zero
- This is an irreversible emergency action