From ffd4231534c6ae4a49b4eb5a508a66f48e6c67fa Mon Sep 17 00:00:00 2001 From: 2nthony Date: Fri, 31 Mar 2023 16:49:09 +0800 Subject: [PATCH] fix: token value bignumber avoid global effects (#14) fix: token value bignumber global effects --- src/utils/tokenValue.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/tokenValue.js b/src/utils/tokenValue.js index 6613707..97a5ed9 100644 --- a/src/utils/tokenValue.js +++ b/src/utils/tokenValue.js @@ -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) {