Skip to main content

Function: validateFee

validateFee(fee): asserts fee is FEE_TIER

Asserts that fee is one of the fee tiers in ALL_FEE_TIERS (0, 500, 3000, 10000).

Parameters​

ParameterType
feenumber

Returns​

asserts fee is FEE_TIER

Throws​

GSwapSDKError INVALID_FEE (params.field 'fee', params.allowed the tiers).