diff --git a/scripts/util/utils.js b/scripts/util/utils.js index 5052660d5..618c13bc6 100644 --- a/scripts/util/utils.js +++ b/scripts/util/utils.js @@ -51,12 +51,14 @@ function readContracts(chainId, network, env) { async function getFees() { // const { baseFeePerGas } = await provider.getBlock(); - const {maxPriorityFeePerGas, maxFeePerGas} = await provider.getFeeData(); + let {gasPrice} = await provider.getFeeData(); + + gasPrice = gasPrice * 12n/10n; // Set maxFeePerGas so it's likely to be accepted by the network // maxFeePerGas = maxPriorityFeePerGas + 2 * lastBaseFeePerGas - return { maxPriorityFeePerGas, maxFeePerGas }; - + // return { maxPriorityFeePerGas, maxFeePerGas }; + return { gasPrice }; // return { maxPriorityFeePerGas, maxFeePerGas: maxPriorityFeePerGas + BigInt(baseFeePerGas) * 2n }; }