The reward values in the openBox
function differ from the default values initialized in the constructor (rewardPool
), potentially leading to confusion or errors.
In the constructor, the "Silver Coin" reward is initialized with a value of 0.25 ether, but in the openBox
function, the same reward is assigned a value of 0.5 ether. This discrepancy could confuse users or create inconsistencies in the reward distribution.
Users might expect different rewards based on the information provided in the rewardPool
array versus the actual logic in openBox
. This inconsistency may reduce trust in the protocol and lead to user dissatisfaction.
Manual Code Review
Ensure that the reward values used in the openBox
function align with the values set in the constructor. Alternatively, consider drawing rewards directly from the rewardPool
to maintain consistency.
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.