Skip to content

PoolId

Pool ID utilities for computing pool identifiers from token pairs.

Pool IDs are deterministic keys derived from two token addresses (order-independent) used to identify trading pairs on Tempo's enshrined stablecoin DEX.

Stablecoin DEX Specification

Examples

import { PoolId } from 'ox/tempo'
 
const poolId = PoolId.from({
  userToken: 1n,
  validatorToken: 2n,
})

Functions

NameDescription
PoolId.fromConverts a user token and validator token to a pool ID.