Skip to content

Commit

Permalink
fix: token value bignumber avoid global effects (#14)
Browse files Browse the repository at this point in the history
fix: token value bignumber global effects
  • Loading branch information
2nthony authored Mar 31, 2023
1 parent 6b9e645 commit ffd4231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/tokenValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export function abbreviateBigNumber(x, fixed = 2) {
fmt.suffix = data.abbr;
}
});
BigNumber.config({ FORMAT: fmt });
return new BigNumber(n.dividedBy(divideBy).toFixed(fixed)).toFormat();

return new BigNumber(n.dividedBy(divideBy).toFixed(fixed)).toFormat(fmt);
}

export function getEffectiveNumbers(n) {
Expand Down

0 comments on commit ffd4231

Please sign in to comment.