mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
fix: frozen coins displaying incorrect amounts in monero (#2385)
This commit is contained in:
@@ -852,10 +852,12 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _askForUpdateBalance() {
|
void _askForUpdateBalance() {
|
||||||
final unlockedBalance = _getUnlockedBalance();
|
final _ub = _getUnlockedBalance();
|
||||||
|
final _fb =_getFrozenBalance();
|
||||||
|
final unlockedBalance = _ub - _fb;
|
||||||
final fullBalance = monero_wallet.getFullBalance(
|
final fullBalance = monero_wallet.getFullBalance(
|
||||||
accountIndex: walletAddresses.account!.id);
|
accountIndex: walletAddresses.account!.id) - _fb;
|
||||||
final frozenBalance = _getFrozenBalance();
|
final frozenBalance = _fb;
|
||||||
if (balance[currency]!.fullBalance != fullBalance ||
|
if (balance[currency]!.fullBalance != fullBalance ||
|
||||||
balance[currency]!.unlockedBalance != unlockedBalance ||
|
balance[currency]!.unlockedBalance != unlockedBalance ||
|
||||||
balance[currency]!.frozenBalance != frozenBalance) {
|
balance[currency]!.frozenBalance != frozenBalance) {
|
||||||
|
|||||||
Reference in New Issue
Block a user