Function: validateFee()
gSwap SDK 2.0.0-rc.4 / validateFee
Function: validateFee()
validateFee(
fee):asserts fee is FEE_TIER
Defined in: packages/gswap-sdk/dist/index.d.ts:4428
Asserts that fee is one of the fee tiers in ALL_FEE_TIERS (0, 500, 3000, 10000).
Parameters
fee
number
Returns
asserts fee is FEE_TIER
Throws
GSwapSDKError INVALID_FEE (params.field 'fee', params.allowed the tiers).