From 887e01a7e78010d1dbc1072b55ae01e2c481152d Mon Sep 17 00:00:00 2001 From: Serhii <17529954+serhii-bor@users.noreply.github.com> Date: Wed, 19 Aug 2026 23:12:54 +0300 Subject: [PATCH] near intents btc asset id migration (#3536) --- .../provider/near_Intents_exchange_provider.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/exchange/provider/near_Intents_exchange_provider.dart b/lib/exchange/provider/near_Intents_exchange_provider.dart index cbf0999e4..7b1c2ef1d 100644 --- a/lib/exchange/provider/near_Intents_exchange_provider.dart +++ b/lib/exchange/provider/near_Intents_exchange_provider.dart @@ -534,6 +534,13 @@ class NearIntentsExchangeProvider extends ExchangeProvider { final symbol = currency.title.toUpperCase(); final blockchain = _normalizeTagToNearBlockchain(currency.tag); +// Use the native Bitcoin asset routed through Omni Bridge. + if (currency == CryptoCurrency.btc) { + return supported.firstWhereOrNull( + (t) => t.assetId == '1cs_v1:btc:native:coin', + ); + } + // Native asset (no contract) final native = supported.firstWhereOrNull((t) => t.symbol.toUpperCase() == symbol && @@ -572,7 +579,7 @@ class NearIntentsExchangeProvider extends ExchangeProvider { String _buildDeadline() { return DateTime.now() .toUtc() - .add(const Duration(hours: 2)) + .add(const Duration(hours: 1)) .toIso8601String() .replaceFirst(RegExp(r'\.\d+Z$'), 'Z'); }