mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
* feat: Add memo support for swap * fix: Error on swap page select receiver bottomsheet when picking receiveing currency that's not a wallet type * feat: exclude providers that do not support memo when receive currency needs it, also show passed memo in confirmation and trade history sheets * fix: overflow for destination tag on swap confirmation * Update lib/view_model/exchange/exchange_view_model.dart [skip ci] * Update lib/exchange/provider/trocador_exchange_provider.dart [skip ci] --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
23 lines
586 B
Dart
23 lines
586 B
Dart
import 'package:cw_core/crypto_currency.dart';
|
|
|
|
class TradeRequest {
|
|
TradeRequest(
|
|
{required this.fromCurrency,
|
|
required this.toCurrency,
|
|
required this.toAddress,
|
|
required this.refundAddress,
|
|
required this.fromAmount,
|
|
this.toAmount = '',
|
|
this.toAddressExtraId = '',
|
|
this.isFixedRate = false});
|
|
|
|
final CryptoCurrency fromCurrency;
|
|
final CryptoCurrency toCurrency;
|
|
final String toAddress;
|
|
final String refundAddress;
|
|
final String fromAmount;
|
|
final String toAmount;
|
|
final String toAddressExtraId;
|
|
final bool isFixedRate;
|
|
}
|