Skip to content

Commit

Permalink
Merge pull request #47 from pendulum-chain/fix-balances-update-changes
Browse files Browse the repository at this point in the history
Fix modified keys from pallet balances
  • Loading branch information
ebma authored Apr 23, 2024
2 parents 08c2a1e + c45b367 commit 259f0bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/controllers/token.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ async function fetchTokenStats(network) {
accounts.forEach((entry) => {
const account = entry[0].toHuman()[0]
const balances = entry[1].toHuman().data;
const miscFrozen = BigInt(balances.miscFrozen.replace(/,/g, ""));
const feeFrozen = BigInt(balances.feeFrozen.replace(/,/g, ""));
const frozen = miscFrozen > feeFrozen ? miscFrozen : feeFrozen;
const frozen = BigInt(balances.frozen.replace(/,/g, ""));
const free = BigInt(balances.free.replace(/,/g, ""));
const reserved = BigInt(balances.reserved.replace(/,/g, ""));

Expand Down

0 comments on commit 259f0bb

Please sign in to comment.