Pool Registry (MVP)
Ensures one canonical pool per token (paired with FeelsSOL), simplifies discovery, and exposes pool metadata.
Responsibilities
- Enforce uniqueness: one pool per token mint (token ↔ FeelsSOL).
- Track pool metadata: pool pubkey, token mint, tick_spacing, base_fee_bps, phase, status (paused/degraded flags), creation timestamp.
- Provide iteration for UI/indexers.
Integration
initialize_poolregisters the new pool; reject if an entry exists.- Registry entry updates on phase changes and pause/resume events.
Seeds and Fields
PDA seed: b"pool_registry"
Entry fields (suggested):
pool: Pubkeytoken_mint: Pubkeytick_spacing: u16base_fee_bps: u16phase: u8(0=PriceDiscovery, 1=SteadyState)paused: boolcreated_at: i64last_update_slot: u64