fix: remove ethers

This commit is contained in:
DIYgod
2023-02-06 16:23:58 +00:00
parent 4916a86997
commit 988741ea65
+2 -4
View File
@@ -17,7 +17,6 @@ import {
BellIcon,
} from "@heroicons/react/24/outline"
import { BellAlertIcon } from "@heroicons/react/24/solid"
import { BigNumber } from "ethers"
import { SITE_URL } from "~/lib/env"
import { useRefCallback } from "@crossbell/util-hooks"
import {
@@ -90,9 +89,8 @@ export const ConnectButton: React.FC<{
useEffect(() => {
if (balance) {
if (
BigNumber.from(balance.value).gt(
BigNumber.from("1" + "0".repeat(balance.decimals - 2)),
)
BigInt(balance.value.toString()) >
BigInt("1" + "0".repeat(balance.decimals - 2))
) {
setInsufficientBalance(false)
} else {