The events define in the file Weather.sol, TemperatureChange
, BeanToMaxLpGpPerBdvRatioChange
and SeasonOfPlenty
have the first parameter defines as season which is defined using the cast uint256. However, when this event are emitted, the variable s.season.current is used, which according to AppStorage.sol is a uint32 variable.
The emission of events is used on the following lines.
emit TemperatureChange(s.season.current, caseId, bT);
emit BeanToMaxLpGpPerBdvRatioChange(s.season.current, caseId, bL);
emit SeasonOfPlenty(s.season.current, sopWell, address(sopToken), amountOut, newHarvestable);
This type cast error won't cause functionally issue, it will be more gas efficient to cast season parameter as uint32
Change cast of season parameter from uint256 to uint32 on event TemperatureChange
, BeanToMaxLpGpPerBdvRatioChange
and SeasonOfPlenty
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.