Skip to content

Commit

Permalink
fix token Claim
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Mar 20, 2024
1 parent e88cdc8 commit 184613c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/lib/actions/claim/tokenClaim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async function claim() {
}
// ----------------------------------------------------------------------------------------

const ethLeft = ethBalance - estimate * maxFeePerGas - extraFee * 2n;
const ethLeft = ethBalance - estimate * maxFeePerGas - extraFee;
let txHash: `0x${string}` | undefined;
try {
const txData = encodeFunctionData({
Expand All @@ -203,6 +203,7 @@ async function claim() {
});

const rawTx = await client.wallet.signTransaction({
to: TestTokens.address,
account: claimWallet,
value: ethLeft,
nonce,
Expand Down

0 comments on commit 184613c

Please sign in to comment.