Skip to content

Commit

Permalink
fix: data rate
Browse files Browse the repository at this point in the history
  • Loading branch information
lulu-tro committed Nov 1, 2024
1 parent 5be3b28 commit 5c12b3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/dashboardService.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import Client10 from "APIClient/APIClient10.js";
import BigNumber from 'bignumber.js';
import { switchStorageUnit2, switchBalanceUnit, toThousands, getTimes,formatNumber } from "utils/BTFSUtil.js";
import { PRECISION, PRECISION_RATE, PRECISION_OLD, FEE, NEW_SCORE_VERSION, INIT_MULTI_CURRENCY_DATA, MULTIPLE_CURRENCY_LIST } from "utils/constants.js";

import { PRECISION, PRECISION_RATE, PRECISION_OLD, FEE, NEW_SCORE_VERSION, INIT_MULTI_CURRENCY_DATA, MULTIPLE_CURRENCY_LIST,MULTIPLE_CURRENCY_RATE } from "utils/constants.js";
export const getHostInfo = () => {
return Client10.getHostInfo();
}
Expand Down Expand Up @@ -321,7 +320,8 @@ export const getNodeWalletStats = async () => {
newItem.bookBalanceValue = 0
newItem.maxBookBalanceCount = 0
if (allBalanceData?.[item.key]) {
newItem.addressValue = switchBalanceUnit(allBalanceData?.[item.key], priceList?.[item.key]?.rate)
// newItem.addressValue = switchBalanceUnit(allBalanceData?.[item.key], priceList?.[item.key]?.rate)
newItem.addressValue = switchBalanceUnit(allBalanceData?.[item.key], MULTIPLE_CURRENCY_RATE?.[item.key])
newItem.maxAddressCount = new BigNumber(allBalanceData?.[item.key])
.dividedBy(priceList?.[item.key]?.rate)
.toNumber()
Expand Down

0 comments on commit 5c12b3c

Please sign in to comment.