skip Swaps.xyz for external sends (#3092)
Serhii committed
Mar 15, 2026 at 00:15 UTC
412210df464251e84cefddbf2fbdc2c0ba87d1ff
1 file changed
+7
lib/view_model/exchange/exchange_view_model.dart
+7
@@ -1008,6 +1008,13 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
1008
final provider = providersSnapshot[i];
1009
final providerRate = ratesSnapshot[i];
1010
1011
+ // Skip Swaps.xyz when sending from external
1012
+ if (isSendFromExternal &&
1013
+ provider.description == ExchangeProviderDescription.swapsXyz) {
1014
+ printV('Skipping Swaps.xyz for external send');
1015
+ continue;
1016
+ }
1017
+
1018
if (!(await provider.checkIsAvailable())) continue;
1019
1020
bestRate = providerRate;