diff --git a/src/shared/components/TokenAmountInput.tsx b/src/shared/components/TokenAmountInput.tsx index bd7593d94..d1f671f29 100644 --- a/src/shared/components/TokenAmountInput.tsx +++ b/src/shared/components/TokenAmountInput.tsx @@ -1,5 +1,9 @@ import React from "react" -import { userAmountToBigInt, bigIntToDisplayUserAmount } from "shared/utils" +import { + userAmountToBigInt, + bigIntToDisplayUserAmount, + bigIntToUserAmount, +} from "shared/utils" import { selectTokenBalanceByAddress, selectTokenSymbolByAddress, @@ -55,8 +59,6 @@ export default function TokenAmountInput({ selectTokenSymbolByAddress(state, tokenAddress) ) - const maxAmount = bigIntToDisplayUserAmount(balance) - const validate = (value: string) => { const result = handleValidate(value, balance) const hasError = "error" in result @@ -68,7 +70,9 @@ export default function TokenAmountInput({ return (