fix(@wallet): total balance wallet

fixes #6658
This commit is contained in:
Anthony Laibe 2022-07-29 12:17:07 +02:00 committed by Anthony Laibe
parent 4e81f586ca
commit 86bde8017d
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ proc toWalletAccountDto*(jsonObj: JsonNode): WalletAccountDto =
discard jsonObj.getProp("derived-from", result.derivedfrom)
proc getCurrencyBalance*(self: WalletAccountDto): float64 =
return self.tokens.map(t => t.totalBalance.currencyBalance).foldl(a + b, 0.0)
return self.tokens.map(t => t.enabledNetworkBalance.currencyBalance).foldl(a + b, 0.0)
proc toBalanceDto*(jsonObj: JsonNode): BalanceDto =
result = BalanceDto()