Disable Jupiter limits for non-solana swaps (#2880)
* Disable Jupiter limits for non-solana swaps Fix zcash restore from QR Fix Android build with zkool * remove print [skip ci] * update versions [skip ci]
Omar Hatem committed
Feb 10, 2026 at 14:02 UTC
0b5f1093e76d94bb7e66c2c1e52b526773fb830c
6 files changed
+19
-14
cw_zcash/lib/src/zcash_wallet.dart
+2
-1
@@ -175,7 +175,8 @@ abstract class ZcashWalletBase
175
}
176
177
final paymentUri = WarpApi.decodePaymentURI(coin, address);
178
- String memo = output.note ?? '';
178
+ // String memo = output.note ?? '';
179
+ String memo = '';
180
if (paymentUri != null && paymentUri.address != null) {
181
address = paymentUri.address!;
182
if (memo.isEmpty && paymentUri.memo != null) {
lib/exchange/provider/jupiter_exchange_provider.dart
+10
-9
@@ -81,16 +81,17 @@ class JupiterExchangeProvider extends ExchangeProvider {
81
required CryptoCurrency to,
82
required bool isFixedRateMode,
83
}) async {
84
- try {
85
- // The Ultra Swap API doesn't have a dedicated limits endpoint
86
- // The /order endpoint validates amounts and returns error codes:
87
- // - errorCode 1: Insufficient funds
88
- // - errorCode 2: Top up SOL for gas
89
- // - errorCode 3: Minimum amount for gasless
84
+ // The Ultra Swap API doesn't have a dedicated limits endpoint
85
+ // The /order endpoint validates amounts and returns error codes:
86
+ // - errorCode 1: Insufficient funds
87
+ // - errorCode 2: Top up SOL for gas
88
+ // - errorCode 3: Minimum amount for gasless
89
+
90
+ // only return null for supported currencies
91
+ if (_supportedCurrencies.contains(from) && _supportedCurrencies.contains(to)) {
92
return Limits(min: null, max: null);
91
- } catch (e) {
92
- printV('fetchLimits error: $e');
93
- throw Exception('Error fetching limits: $e');
93
+ } else {
94
+ throw Exception('not supported');
95
}
96
}
97
lib/view_model/restore/wallet_restore_from_qr_code.dart
+4
-1
@@ -54,7 +54,10 @@ class WalletRestoreFromQRCode {
54
'decred_wallet': WalletType.decred,
55
'dogecoin': WalletType.dogecoin,
56
'dogecoin-wallet': WalletType.dogecoin,
57
- 'dogecoin_wallet': WalletType.dogecoin
57
+ 'dogecoin_wallet': WalletType.dogecoin,
58
+ 'zcash': WalletType.zcash,
59
+ 'zcash-wallet': WalletType.zcash,
60
+ 'zcash_wallet': WalletType.zcash,
61
};
62
63
static WalletType? _extractWalletType(String code) {
lib/view_model/wallet_keys_view_model.dart
+1
-1
@@ -308,7 +308,7 @@ abstract class WalletKeysViewModelBase with Store {
308
return 'dogecoin-wallet';
309
case WalletType.zcash:
310
return 'zcash-wallet';
311
- default:
311
+ case WalletType.none:
312
throw Exception('Unexpected wallet type: ${_wallet.type.toString()} for wallet keys');
313
}
314
}
scripts/android/app_env.sh
+1
-1
@@ -22,7 +22,7 @@ MONERO_COM_SCHEME="monero.com"
22
23
CAKEWALLET_NAME="Cake Wallet"
24
CAKEWALLET_VERSION="5.9.0"
25
-CAKEWALLET_BUILD_NUMBER=4302
25
+CAKEWALLET_BUILD_NUMBER=4304
26
CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
27
CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"
28
CAKEWALLET_SCHEME="cakewallet"
scripts/ios/app_env.sh
+1
-1
@@ -18,7 +18,7 @@ MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
18
19
CAKEWALLET_NAME="Cake Wallet"
20
CAKEWALLET_VERSION="5.9.0"
21
-CAKEWALLET_BUILD_NUMBER=369
21
+CAKEWALLET_BUILD_NUMBER=372
22
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
23
24