Any one can be the producer, and get unlimited HealthToken
The producer should be defined when owner deploy the contract. But in MartenitsaEvent, if you have one healthToken, You can be the Producer.
Normally, User need to buy at least 3 MartenitsaToken to get 1 HealthToken, but in MartenitsaToken::updateCountMartenitsaTokensOwner()
:
it's an external function and no access control, we can just call and it will increase our countMartenitsaTokensOwner
, we can get get MartenitsaToken for free. and then we call the MartenitsaMarketplace::collectReward()
we can get one healthToken.
At last, we can join the event and be producer be free.
unlimited increase balanceOf(MartenitsaTokens) and become producer for free.
Manual review, Foundry.
Maybe add access control on MartenitsaToken::updateCountMartenitsaTokensOwner
, like only can be called by address(MartenitsaMarketplace)
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.