We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e0606 commit 0b859c0Copy full SHA for 0b859c0
crates/rpc/rpc-eth-api/src/helpers/fee.rs
@@ -110,7 +110,8 @@ pub trait EthFees:
110
// increasing and 0 <= p <= 100
111
// Note: The types used ensure that the percentiles are never < 0
112
if let Some(percentiles) = &reward_percentiles &&
113
- percentiles.windows(2).any(|w| w[0] > w[1] || w[0] > 100.)
+ (percentiles.iter().any(|p| *p < 0.0 || *p > 100.0) ||
114
+ percentiles.windows(2).any(|w| w[0] > w[1]))
115
{
116
return Err(EthApiError::InvalidRewardPercentiles.into())
117
}
0 commit comments