acrossCheckRelayerFee
acrossCheckRelayerFee(
route,amount,fee,answer):void
Defined in: protocol-swap2-across/src/pricing.ts:158
The device’s own check of a deposit’s fee against Across’s keyless relayer fee for it, read on the device
(acrossRemoteProvider): a fee more than ACROSS_RELAYER_FEE_TOLERANCE_PCT % under it is refused
(price_check_failed — relayers would leave the deposit unfilled for its two-hour deadline and the refund after);
Across refusing the deposit refuses it with Across’s reason. Without an answer only a route the pinned floor covers
stands, on the per-asset floor the verifier already held it to; any other route is refused (upstream_unavailable).
Throws AcrossRefusal relayer-price.
Parameters
Section titled “Parameters”amount
Section titled “amount”bigint
bigint
answer
Section titled “answer”Returns
Section titled “Returns”void