diff --git a/src/feeOracle.ts b/src/feeOracle.ts index e602fa3..f0c29d3 100644 --- a/src/feeOracle.ts +++ b/src/feeOracle.ts @@ -121,9 +121,10 @@ export abstract class TornadoFeeOracle implements ITornadoFeeOracle { * Estimates gas limit for transaction (or basic gas limit, if no tx data provided) * @param {TransactionData} tx Transaction data (object in web3 / ethers format) * @param {TxType} type Tornado transaction type: withdrawal by user, withdrawal by relayer, relayer fee check or 'other' + * @param {number} bumpPercent Gas bump percent to prioritize transaction * @returns {Promise} Gas limit */ - abstract getGasLimit(tx?: TransactionData, type?: TxType): Promise; + abstract getGasLimit(tx?: TransactionData, type?: TxType, bumpPercent?: number): Promise; /** * If user withdraw non-native tokens on ETH or Goerli, we need to calculate refund value: