File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { waitForTransactionConfirmation } from 'lib/utils';
77import analytics from 'lib/utils/analytics' ;
88import { type DocumentedChainId , getChainNativeToken , isTestnetChain } from 'lib/utils/chains' ;
99import { isNoFeeRequiredError } from 'lib/utils/errors' ;
10- import { MINUTE } from 'lib/utils/time' ;
10+ import { HOUR } from 'lib/utils/time' ;
1111import useLocalStorage from 'use-local-storage' ;
1212import { parseEther , type SendTransactionParameters } from 'viem' ;
1313import { 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 ) {
You can’t perform that action at this time.
0 commit comments