Set minPriority for BSC as 3 GWEI to not underprice transaction

This commit is contained in:
Theo 2023-08-30 08:10:43 -07:00
parent 0d3ea02015
commit ae9b15b7ed
2 changed files with 2 additions and 2 deletions

@ -1,6 +1,6 @@
{
"name": "@tornado/tornado-oracles",
"version": "2.0.0",
"version": "2.1.0",
"description": "Gas oracle for Tornado-specific transactions",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",

@ -19,7 +19,7 @@ export class TornadoFeeOracleV5 extends TornadoFeeOracle implements ITornadoFeeO
const oracleConfig = {
chainId,
defaultRpc: rpcUrl,
minPriority: chainId === 1 || chainId === 5 ? 2 : 0.05,
minPriority: chainId === ChainId.MAINNET || chainId === ChainId.GOERLI ? 2 : chainId === ChainId.BSC ? 3 : 0.05,
percentile: 5,
blocksCount: 20,
defaultFallbackGasPrices: defaultGasPrices,