Skip to content

Commit c6c1141

Browse files
committed
fix: increase fee payment "grace period " to 1 hour
1 parent ed3f876 commit c6c1141

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/hooks/ethereum/useFeePayment.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { waitForTransactionConfirmation } from 'lib/utils';
77
import analytics from 'lib/utils/analytics';
88
import { type DocumentedChainId, getChainNativeToken, isTestnetChain } from 'lib/utils/chains';
99
import { isNoFeeRequiredError } from 'lib/utils/errors';
10-
import { MINUTE } from 'lib/utils/time';
10+
import { HOUR } from 'lib/utils/time';
1111
import useLocalStorage from 'use-local-storage';
1212
import { parseEther, type SendTransactionParameters } from 'viem';
1313
import { usePublicClient, useWalletClient } from 'wagmi';
@@ -29,8 +29,8 @@ export const useFeePayment = (chainId: number) => {
2929

3030
const feePaymentKey = `${chainId}-${walletClient.account.address}`;
3131
const lastFeePayment = lastFeePayments[feePaymentKey];
32-
if (lastFeePayment && Date.now() - lastFeePayment < 10 * MINUTE) {
33-
throw new Error('No fee required: Fee payment already registered in the last 10 minutes');
32+
if (lastFeePayment && Date.now() - lastFeePayment < 1 * HOUR) {
33+
throw new Error('No fee required: Fee payment already registered in the last hour');
3434
}
3535

3636
if (!nativeTokenPrice) {

0 commit comments

Comments
 (0)