Skip to content

Commit

Permalink
Fix gas price estimation whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gr8h committed Dec 13, 2023
1 parent 62b207f commit 516e73a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public UInt256 GetGasPriceEstimate()

IEnumerable<UInt256> txGasPrices = GetSortedGasPricesFromRecentBlocks(headBlock.Number);
UInt256 gasPriceEstimate = GetGasPriceAtPercentile(txGasPrices.ToList()) ?? GetMinimumGasPrice(headBlock.BaseFeePerGas);
gasPriceEstimate = UInt256.Max(gasPriceEstimate, GetMinimumGasPrice(headBlock.BaseFeePerGas));
gasPriceEstimate = UInt256.Max(gasPriceEstimate, GetMinimumGasPrice(headBlock.BaseFeePerGas));
gasPriceEstimate = UInt256.Min(gasPriceEstimate!, EthGasPriceConstants.MaxGasPrice);
_gasPriceEstimation.Set(headBlockHash, gasPriceEstimate);
return gasPriceEstimate!;
Expand Down

0 comments on commit 516e73a

Please sign in to comment.