Reviewed Flutter implementation · 2026-10-27
withdrawal_networks.dart
mobile_flutter/lib/features/wallets/domain/withdrawal_networks.dart
Immutable source snapshot based on revision de78e63ed65c. Original line numbers are retained. This is implementation evidence; check the public API catalogue before adapting it.
The mobile /api/v1/mobile routes belong to the example backend. Company credentials stay on that backend. Some sections outside the documented product scope may be omitted.
Lines 1–22
/// Networks implemented by this client and accepted by the upstream V2/// withdrawal validation. Quote/submission still recheck provider availability./// Do not infer payout support from a deposit address or add networks without/// a corresponding destination validator.const withdrawalNetworkNames = <String, String>{ 'ETH': 'Ethereum', 'AVAX': 'Avalanche', 'ARB': 'Arbitrum', 'MATIC': 'Polygon', 'TRX': 'Tron', 'OP': 'Optimism',}; Map<String, String> withdrawalNetworksFor(String currency) => switch (currency.toUpperCase()) { 'USDT' => withdrawalNetworkNames, 'USDC' => Map.fromEntries( withdrawalNetworkNames.entries.where((e) => e.key != 'TRX')), _ => const {}, }; const minimumCryptoWithdrawal = 5.0;