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]
This commit is contained in:
Omar Hatem
2026-02-10 14:02:57 +01:00
committed by GitHub
parent c13881ff6e
commit 0b5f1093e7
6 changed files with 19 additions and 14 deletions
+2 -1
View File
@@ -175,7 +175,8 @@ abstract class ZcashWalletBase
}
final paymentUri = WarpApi.decodePaymentURI(coin, address);
String memo = output.note ?? '';
// String memo = output.note ?? '';
String memo = '';
if (paymentUri != null && paymentUri.address != null) {
address = paymentUri.address!;
if (memo.isEmpty && paymentUri.memo != null) {
@@ -81,16 +81,17 @@ class JupiterExchangeProvider extends ExchangeProvider {
required CryptoCurrency to,
required bool isFixedRateMode,
}) async {
try {
// The Ultra Swap API doesn't have a dedicated limits endpoint
// The /order endpoint validates amounts and returns error codes:
// - errorCode 1: Insufficient funds
// - errorCode 2: Top up SOL for gas
// - errorCode 3: Minimum amount for gasless
// The Ultra Swap API doesn't have a dedicated limits endpoint
// The /order endpoint validates amounts and returns error codes:
// - errorCode 1: Insufficient funds
// - errorCode 2: Top up SOL for gas
// - errorCode 3: Minimum amount for gasless
// only return null for supported currencies
if (_supportedCurrencies.contains(from) && _supportedCurrencies.contains(to)) {
return Limits(min: null, max: null);
} catch (e) {
printV('fetchLimits error: $e');
throw Exception('Error fetching limits: $e');
} else {
throw Exception('not supported');
}
}
@@ -54,7 +54,10 @@ class WalletRestoreFromQRCode {
'decred_wallet': WalletType.decred,
'dogecoin': WalletType.dogecoin,
'dogecoin-wallet': WalletType.dogecoin,
'dogecoin_wallet': WalletType.dogecoin
'dogecoin_wallet': WalletType.dogecoin,
'zcash': WalletType.zcash,
'zcash-wallet': WalletType.zcash,
'zcash_wallet': WalletType.zcash,
};
static WalletType? _extractWalletType(String code) {
+1 -1
View File
@@ -308,7 +308,7 @@ abstract class WalletKeysViewModelBase with Store {
return 'dogecoin-wallet';
case WalletType.zcash:
return 'zcash-wallet';
default:
case WalletType.none:
throw Exception('Unexpected wallet type: ${_wallet.type.toString()} for wallet keys');
}
}
+1 -1
View File
@@ -22,7 +22,7 @@ MONERO_COM_SCHEME="monero.com"
CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="5.9.0"
CAKEWALLET_BUILD_NUMBER=4302
CAKEWALLET_BUILD_NUMBER=4304
CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"
CAKEWALLET_SCHEME="cakewallet"
+1 -1
View File
@@ -18,7 +18,7 @@ MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="5.9.0"
CAKEWALLET_BUILD_NUMBER=369
CAKEWALLET_BUILD_NUMBER=372
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"