Skip to main content

Module error

Module error 

Source
Expand description

Structured errors produced by PoolProfiler while replaying historical pool events.

Each variant carries enough context (pool, block, transaction/log position, event kind, and the simulated vs. observed values that disagreed) for downstream consumers to decide between hard-halt and skip-and-log on a per-pool basis.

Structs§

PoolEventLocation
Identifies the source event for a PoolProfilerError.

Enums§

LiquidityMathError
Low-level liquidity arithmetic error surfaced by try_liquidity_math_add.
PoolEventKind
The kind of pool event being processed when an error was produced.
PoolProfilerError
Structured errors emitted by the pool profiler during event replay.

Functions§

liquidity_error_with_location
Maps a LiquidityMathError to a PoolProfilerError using event context.