Skip to content

Commit

Permalink
docs: update comment re the set of valid fees
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantios authored Sep 16, 2024
1 parent 7eb0ad9 commit 43771f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def round_to_whole_gwei(number: Type[int]) -> Wei:
def get_base_fee_multiplier(base_fee_gwei: Union[int, decimal.Decimal]) -> float:
"""Returns multiplier value."""
valid_fees = {fee for fee in BASE_FEE_MULTIPLIER if base_fee_gwei <= fee}
# add the base fee in case the valid fees set is empty
# add negative fee in case the valid fees set is empty, to trigger the default value
if not valid_fees:
valid_fees.add(-1)
return BASE_FEE_MULTIPLIER[min(valid_fees)]
Expand Down

0 comments on commit 43771f2

Please sign in to comment.