Skip to main content
The current contract has no token_decimals mapping. Token metadata and display decimals live in the off-chain registry and API.

Current state and history

Mappings hold current consensus state. They are not logs. An indexer must preserve accepted transitions and removed values when historical reconstruction matters.

Query behavior

Some finalizers use get_or_use, while others require a value through get. A client must match the exact entry-point behavior. It must not apply one default rule to every mapping.

Key construction

  • Pool keys hash sorted token IDs and the fee.
  • Tick keys hash the pool key and tick.
  • Pair-pause keys use sorted token IDs in a PairKey.
  • Singleton controls use boolean key true.
See Pools and identifiers.