In the constructor of MysteryBox
contract owner of the contract create rewards pool. There are 4 rewards, and each of them has specific amount of ETH.
If user buy a box, then he can open it to check to rewards using MysteryBox::openBox
function. However, in this function amount of ETH assigned to each reward is different than in the constructor.
Gold Coin - 0.5 ETH in the constructor, 1 ETH in the openBox
Silver Coin - 0.25 ETH in the constructor, 0.5 ETH in the openBox
Rewards win by the user will be different (higher) than owner assumed on the begining.
Manual Review
Change values in the MysteryBox::openBox
function for Silver Coin and Gold Coin rewards.
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.