Skip to content

Commit

Permalink
Merge pull request #97 from BibliothecaDAO/bug-fix
Browse files Browse the repository at this point in the history
fix parse units
  • Loading branch information
ponderingdemocritus authored Jan 21, 2024
2 parents f7cbb41 + 16e9d0a commit a4940c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/nextjs/src/app/staking/StakingContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Lords from "@/icons/lords.svg";
import { getTokenContractAddresses } from "@/utils/utils";
import { useQuery } from "@tanstack/react-query";
import { Loader, Loader2 } from "lucide-react";
import { formatEther, parseEther } from "viem";
import { formatEther, parseEther, parseUnits } from "viem";
import {
useAccount,
useReadContract,
Expand Down Expand Up @@ -241,7 +241,7 @@ export const StakingContainer = () => {
abi: paymentPoolAbi,
functionName: "withdraw",
args: [
parseEther(poolClaimAmount?.toString() ?? "0"),
parseUnits(poolClaimAmount?.toString() ?? "0", 0),
hexProof as any,
],
})
Expand Down

0 comments on commit a4940c2

Please sign in to comment.