Skip to content

Commit

Permalink
fix: Total Value (#3622)
Browse files Browse the repository at this point in the history
  • Loading branch information
TranTrungTien committed Jul 12, 2024
1 parent 0b7a013 commit 0fdcac8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/core/data-services/api-cw20-token.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ export class ApiCw20TokenService {

parseUSDCToken(token, coinsMarkets) {
const USDCMarket = coinsMarkets?.find((item) => item.coinId === USDC_COIN_ID);
const value = new BigNumber(token?.balance).multipliedBy(Number(USDCMarket?.currentPrice || 0));
const amount = getBalance(token?.balance, token?.decimals);
const value = new BigNumber(amount).multipliedBy(Number(USDCMarket?.currentPrice || 0));

return {
...token,
Expand Down

0 comments on commit 0fdcac8

Please sign in to comment.