uint256 public diffMaxMinRuntime;
This variable is never set nor updated so it gets a default value of 0.
Impact
diffMaxMinRuntime with 0 value is making the calculations that use it either always return 0 (when multiplying) or fail (when dividing) when calculating bucket indexes or sizes.
Recommended mitigation steps
Set the appropriate value for diffMaxMinRuntime and update it whenever min or max runtime variables change.
Email address
pauliax6@gmail.com
Handle
paulius.eth
Eth address
0x523B5b2Cc58A818667C22c862930B141f85d49DD
Vulnerability details
uint256 public diffMaxMinRuntime; This variable is never set nor updated so it gets a default value of 0.
Impact
diffMaxMinRuntime with 0 value is making the calculations that use it either always return 0 (when multiplying) or fail (when dividing) when calculating bucket indexes or sizes.
Recommended mitigation steps
Set the appropriate value for diffMaxMinRuntime and update it whenever min or max runtime variables change.