Revert if Trick, but pay if normal cost or treat.
I deployed a separate Smart Contract that would send ETH slightly higher than the cost. But still, below the Trick cost, e.g. Treat costs 0.5 ETH, I would send 0.6 ETH, and if my contract received a refund, it would mean that I did not random Trick, and the transaction would go through; however, if I do not receive a refund due to Trick.
My contract would revert the transaction immediately, preventing the amount from being spent.
It allows users to circumvent the Trick feature, allowing only treat or standard costs.
Forge test -vvv and tested with the following contract
If it is a trick, refund the excess and only hold the initial cost, thus users could not predict if it is a trick / treat / normal cost.
Else, do a commit-reveal scheme, where users pay 0.5 eths, then the pending status of trick or treat. If it is trick, then require them to pay to reveal else, just reveal.
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.