mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
skip Swaps.xyz for external sends (#3092)
This commit is contained in:
@@ -1008,6 +1008,13 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
|
||||
final provider = providersSnapshot[i];
|
||||
final providerRate = ratesSnapshot[i];
|
||||
|
||||
// Skip Swaps.xyz when sending from external
|
||||
if (isSendFromExternal &&
|
||||
provider.description == ExchangeProviderDescription.swapsXyz) {
|
||||
printV('Skipping Swaps.xyz for external send');
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(await provider.checkIsAvailable())) continue;
|
||||
|
||||
bestRate = providerRate;
|
||||
|
||||
Reference in New Issue
Block a user