A human-unit price expressed as quote-token units per one base-token unit.

For example, a value of 2_500 / 1 means 2,500 quote tokens per base token. Token decimals are applied exactly by encodeInitialSqrtPriceX96; a JavaScript floating-point number is deliberately not part of this type.

interface ExactPrice {
    baseToken: string;
    quoteToken: string;
    baseTokenDecimals: number;
    quoteTokenDecimals: number;
    quotePerBase: ExactFraction;
}

Properties

baseToken: string
quoteToken: string
baseTokenDecimals: number
quoteTokenDecimals: number
quotePerBase: ExactFraction