From 3d11cf6a4ddb590fc2d2b7cc7899f4a4507aac9f Mon Sep 17 00:00:00 2001 From: Adamantios Date: Mon, 23 Sep 2024 16:14:07 +0300 Subject: [PATCH] refactor: do not get the max between default and estimated --- plugins/aea-ledger-ethereum/aea_ledger_ethereum/ethereum.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugins/aea-ledger-ethereum/aea_ledger_ethereum/ethereum.py b/plugins/aea-ledger-ethereum/aea_ledger_ethereum/ethereum.py index 098830436a..12ff1472bd 100644 --- a/plugins/aea-ledger-ethereum/aea_ledger_ethereum/ethereum.py +++ b/plugins/aea-ledger-ethereum/aea_ledger_ethereum/ethereum.py @@ -244,12 +244,6 @@ def eip1559_price_strategy( ) return fallback_estimate - max_priority_fee_per_gas = max( - estimated_priority_fee, - to_wei(default_priority_fee, "gwei") - if default_priority_fee is not None - else -1, - ) multiplier = get_base_fee_multiplier(base_fee_gwei) potential_max_fee = base_fee * multiplier