Skip to main content

Type Alias: PriceIn

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / PriceIn

Type Alias: PriceIn

PriceIn = Brand<NumericAmount, "PriceIn"> | Price

Defined in: packages/gswap-sdk/dist/index.d.ts:2615

A price an API accepts (for example addLiquidityByPrice's minPrice / maxPrice): a calculated Price, or a decimal string / BigNumber the caller brands with as PriceIn to declare what it is. An unbranded string does not compile.