Expand description
Message handler that maintains the Pool state stored in the global Cache.
The handler is functionally equivalent to BookUpdater but for DeFi liquidity
pools. Whenever a PoolSwap or PoolLiquidityUpdate is published on the
message bus the handler looks up the corresponding Pool instance in the
cache and applies the change in-place (for now we only update the ts_init
timestamp so that consumers can tell the pool has been touched).
Structsยง
- Pool
Updater - Handles
PoolSwaps andPoolLiquidityUpdates for a single AMM pool.