We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c031d6 commit e3251c4Copy full SHA for e3251c4
ui/helpers/utils/util.js
@@ -1,7 +1,7 @@
1
import punycode from 'punycode/punycode';
2
import abi from 'human-standard-token-abi';
3
import BigNumber from 'bignumber.js';
4
-import * as ethUtil from 'ethereumjs-util';
+import BN from 'bn.js';
5
import { DateTime } from 'luxon';
6
import {
7
getFormattedIpfsUrl,
@@ -168,10 +168,10 @@ export function isOriginContractAddress(to, sendTokenAddress) {
168
// Takes wei Hex, returns wei BN, even if input is null
169
export function numericBalance(balance) {
170
if (!balance) {
171
- return new ethUtil.BN(0, 16);
+ return new BN(0, 16);
172
}
173
const stripped = stripHexPrefix(balance);
174
- return new ethUtil.BN(stripped, 16);
+ return new BN(stripped, 16);
175
176
177
// Takes hex, returns [beforeDecimal, afterDecimal]
0 commit comments