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. The swap execution receipt mappings remain after claim. They cover accepted swap execution but do not record rejected transactions.Query behavior
Some finalizers useget_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.