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", "name": "@tornado/tornado-oracles",
"version": "2.0.0", "version": "2.1.0",
"description": "Gas oracle for Tornado-specific transactions", "description": "Gas oracle for Tornado-specific transactions",
"main": "./lib/index.js", "main": "./lib/index.js",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",

@ -19,7 +19,7 @@ export class TornadoFeeOracleV5 extends TornadoFeeOracle implements ITornadoFeeO
const oracleConfig = { const oracleConfig = {
chainId, chainId,
defaultRpc: rpcUrl, 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, percentile: 5,
blocksCount: 20, blocksCount: 20,
defaultFallbackGasPrices: defaultGasPrices, defaultFallbackGasPrices: defaultGasPrices,