From e802593e7679dcebd2c3cbad6f20dcae99dcbb5b Mon Sep 17 00:00:00 2001 From: Dev Kalra Date: Mon, 22 May 2023 22:24:09 +0530 Subject: [PATCH] [arbitrum] fix: max fee per gas less than block base fee (#829) * fix * bump version * log error --- price_pusher/package.json | 2 +- price_pusher/src/evm/evm.ts | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/price_pusher/package.json b/price_pusher/package.json index 5becae66..108cfe45 100644 --- a/price_pusher/package.json +++ b/price_pusher/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/price-pusher", - "version": "5.2.0", + "version": "5.2.1", "description": "Pyth Price Pusher", "homepage": "https://pyth.network", "main": "lib/index.js", diff --git a/price_pusher/src/evm/evm.ts b/price_pusher/src/evm/evm.ts index e86f8f1a..831bc898 100644 --- a/price_pusher/src/evm/evm.ts +++ b/price_pusher/src/evm/evm.ts @@ -240,6 +240,17 @@ export class EvmPricePusher implements IPricePusher { return; } + if (err.message.includes("max fee per gas less than block base fee")) { + // We just have to handle this error and return. + // LastPushAttempt was stored with the class + // Next time the update will be executing, it will check the last attempt + // and increase the gas price accordingly. + console.log( + "The transaction failed with error: max fee per gas less than block base fee " + ); + return; + } + if ( err.message.includes("sender doesn't have enough funds to send tx.") ) {