Skip to main content

Type alias: PriceIn

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

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.