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).
fee tier all tiers
Parameters
| Parameter | Type |
|---|---|
fee | number |
Returns
asserts fee is FEE_TIER
fee tier
Throws
GSwapSDKError INVALID_FEE (params.field 'fee', params.allowed the tiers).
invalid fee