Top Up Balance logic and Added fixes for routing

This commit is contained in:
Arseni
2025-12-05 20:29:43 +03:00
parent f7bf3138ac
commit bf39b1d401
27 changed files with 972 additions and 175 deletions

View File

@@ -9,6 +9,10 @@ class Wallet {
final Currency currency;
final bool isHidden;
final DateTime calculatedAt;
final String? depositAddress;
final String? network;
final String? tokenSymbol;
final String? contractAddress;
Wallet({
required this.id,
@@ -18,6 +22,10 @@ class Wallet {
required this.currency,
required this.calculatedAt,
this.isHidden = true,
this.depositAddress,
this.network,
this.tokenSymbol,
this.contractAddress,
});
Wallet copyWith({
@@ -27,6 +35,10 @@ class Wallet {
Currency? currency,
String? walletUserID,
bool? isHidden,
String? depositAddress,
String? network,
String? tokenSymbol,
String? contractAddress,
}) => Wallet(
id: id ?? this.id,
name: name ?? this.name,
@@ -35,5 +47,9 @@ class Wallet {
walletUserID: walletUserID ?? this.walletUserID,
isHidden: isHidden ?? this.isHidden,
calculatedAt: calculatedAt,
depositAddress: depositAddress ?? this.depositAddress,
network: network ?? this.network,
tokenSymbol: tokenSymbol ?? this.tokenSymbol,
contractAddress: contractAddress ?? this.contractAddress,
);
}
}