Skip to main content

index/functions/feeCeilingFromQuotedFee.md

feeCeilingFromQuotedFee(quotedFee, feeSlippageFactor): string

The quoted fee plus fee slippage, rounded UP to the chain's 8 decimals so the ceiling can never end up below the fee the chain computes (the chain also rounds its fee up).

Parameters​

ParameterType
quotedFeestring
feeSlippageFactornumber

Returns​

string

Example​

feeCeilingFromQuotedFee('0.00003328', 0.01) // '0.00003362'