From 9a669e6edc73892a010355e5a9ddb97ff7815684 Mon Sep 17 00:00:00 2001 From: Paul Puey Date: Sat, 20 Jul 2024 21:39:45 -0700 Subject: [PATCH] Set rango avoidNativeFee flag Prevents failures due to not sending any additional ETH to pay for bridge txs --- CHANGELOG.md | 2 ++ src/swap/defi/rango.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d36abbb..e53308f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- fixed: Set avoidNativeFee on Rango to fix bridge failures + ## 2.7.1 (2024-07-18) - fixed: Rango failed transactions diff --git a/src/swap/defi/rango.ts b/src/swap/defi/rango.ts index c07b9f43..0ba7ec9f 100644 --- a/src/swap/defi/rango.ts +++ b/src/swap/defi/rango.ts @@ -410,6 +410,7 @@ export function makeRangoPlugin(opts: EdgeCorePluginOptions): EdgeSwapPlugin { toAddress: toAddress, amount: nativeAmount, disableEstimate: true, + avoidNativeFee: true, slippage: DEFAULT_SLIPPAGE, ...(referrer != null ? referrer : undefined) }