acrossPlainFee
acrossPlainFee(
amount,v5,need,otherRail?):AcrossPlainFee
Defined in: protocol-swap2-across/src/pricing.ts:136
max(F5, Fneed); Fneed alone when V5 priced another rail (otherRail: F5 is then that rail’s price, kept for
display only). Refuses a fee that eats the whole input (amount_too_small).
Parameters
Section titled “Parameters”amount
Section titled “amount”bigint
originGas
Section titled “originGas”bigint
totalFee
Section titled “totalFee”bigint
bigint
otherRail?
Section titled “otherRail?”boolean = false