near intents btc asset id migration (#3536)
Serhii committed
Aug 19, 2026 at 23:12 UTC
887e01a7e78010d1dbc1072b55ae01e2c481152d
1 file changed
+8
-1
lib/exchange/provider/near_Intents_exchange_provider.dart
+8
-1
@@ -534,6 +534,13 @@ class NearIntentsExchangeProvider extends ExchangeProvider {
534
final symbol = currency.title.toUpperCase();
535
final blockchain = _normalizeTagToNearBlockchain(currency.tag);
536
537
+// Use the native Bitcoin asset routed through Omni Bridge.
538
+ if (currency == CryptoCurrency.btc) {
539
+ return supported.firstWhereOrNull(
540
+ (t) => t.assetId == '1cs_v1:btc:native:coin',
541
+ );
542
+ }
543
+
544
// Native asset (no contract)
545
final native = supported.firstWhereOrNull((t) =>
546
t.symbol.toUpperCase() == symbol &&
@@ -572,7 +579,7 @@ class NearIntentsExchangeProvider extends ExchangeProvider {
579
String _buildDeadline() {
580
return DateTime.now()
581
.toUtc()
575
- .add(const Duration(hours: 2))
582
+ .add(const Duration(hours: 1))
583
.toIso8601String()
584
.replaceFirst(RegExp(r'\.\d+Z$'), 'Z');
585
}