trigger_demand is not randomThe function trigger_demand as the following lines to calculate the requested items :
However, we know that block.timestamp could be predicted; this means someone can systematically request the biggest amount of items.
Likelyhood(high): Someone could create a bot that do the same exact calculation just before calling the function.
impact(medium): The randomness logic will be destroy and the extra items base on the company reputation will be for nothing but no direct fund lose.
The recommended mititigation is to use VRFCoordinatorV2 from Chainlink, see this example: https://github.com/smartcontractkit/apeworx-starter-kit/blob/main/contracts/VRFConsumerV2.vy
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.