since RamNFT::mintRamNFT()
isn't restricted to only be minted by Dussehra
contract, anyone can mint and join the protocol by directly calling RamNFT::mintRamNFT()
and still be eligible to be chosen as a winner and be able to withdraw the reward even though he paid zero fees.
Paste below code to Dussehra.t.sol
and run command: forge test --mt test__anyoneCanWinAndWithdrawWithoutPayingFee
Anyone can mint an NFT without paying any fee but still be eligible to win and withdraw the reward
Foundry
Do not use block.timestamp for random selection instead use chainlink VRF or any other oracles
Restrict RamNFT::mintRamNFT
to be only called by Dussehra.sol
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.