Function: validatePriceValues()
gSwap SDK 2.0.0-rc.4 / validatePriceValues
Function: validatePriceValues()
validatePriceValues(
spotPrice,lowerPrice,upperPrice):void
Defined in: packages/gswap-sdk/dist/index.d.ts:4408
Validates a spot price and a lower/upper price range: none a JavaScript number, all positive and
finite (a non-finite upper bound counts as an unbounded 1e18), and lowerPrice <= upperPrice.
Parameters
spotPrice
lowerPrice
upperPrice
Returns
void
Throws
GSwapSDKError PRICE_VALUES_IS_JS_NUMBER, INVALID_PRICE_VALUES or INVALID_PRICE_RANGE.