From ae9b15b7ed0554e2ae97c443f0a42ac73eea1113 Mon Sep 17 00:00:00 2001 From: Theo Date: Wed, 30 Aug 2023 08:10:43 -0700 Subject: [PATCH] Set minPriority for BSC as 3 GWEI to not underprice transaction --- package.json | 2 +- src/feeOracleV5.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6c11dff..d77ffda 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/feeOracleV5.ts b/src/feeOracleV5.ts index 3bff8f6..5ad7867 100644 --- a/src/feeOracleV5.ts +++ b/src/feeOracleV5.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,