Skip to content

Commit

Permalink
refactor: do not get the max between default and estimated
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantios committed Sep 23, 2024
1 parent 3a0a6f3 commit 3d11cf6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions plugins/aea-ledger-ethereum/aea_ledger_ethereum/ethereum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d11cf6

Please sign in to comment.