Skip to main content
Version: 3.0.0

tickToPrice

@uniswap/v3-sdk / Exports / utils/priceTickConversions / tickToPrice

tickToPrice

tickToPrice(baseToken: Token, quoteToken: Token, tick: number): Price<Token, Token>

Returns a price object corresponding to the input tick and the base/quote token Inputs must be tokens because the address order is used to interpret the price represented by the tick

Parameters#

NameTypeDescription
baseTokenTokenthe base token of the price
quoteTokenTokenthe quote token of the price
ticknumberthe tick for which to return the price

Returns: Price<Token, Token>

Defined in: utils/priceTickConversions.ts:14