If a user wins a mystery box worth more than the balance held in the protocol, then the user will not be able to claim their rewards that they won.
For example, if the protocol starts with 0.1 ether; a user buys a mystery box for 0.1 ether, but they win a mystery box worth 1 ether, they will not be able to withdraw this reward.
Users will not receive the winnings from their mysterys boxes that they have won. This test fails with and OutOfFund error if the user wins a Silver or Gold mystery box.
--Foundry
It is recommended to not allow users to buy mystery boxes if the protocol does not have at least the balance of the highest value mystery box.
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.