The organizer can deploy and distribute to winners at any time without restriction about the contest expiration time EXPIRATION_TIME
causing that the winners to be unable to receive their rewards for a long time.
The organizer can execute the deployProxyAndDistribute() function to deploy the distribute
contract and execute the distribution to winners. The only restriction is that the current time should be greater than contest close time (code line 134).
In the other hand, the owner
can execute deployProxyAndDistributeByOwner() function after the contest expiration time (code line 187).
The problem is that the organizer
can execute the deployProxyAndDistribute() function after the contest close time without restriction of time. The organizer
can wait indefinitely causing the winners not to be rewarded for a long time and force the owner to execute the distribution manually via deployProxyAndDistributeByOwner()
.
Additionally, the organizers
are not incentivized to deploy and distribute to winners.
The malicious organizer can wait indefinitely until the owner
calls deployProxyAndDistributeByOwner(). The bad/malicious behaivour of the organizer
can cause the winners to be unable receive rewards for a long time AND force the owner
to execute manually deployProxyAndDistributeByOwner()
. That affects the protocol because rewards are not assigned in time AND the protocol owner needs to manage manually the deploy and distribution in order to not affect the protocol's reputation and winners.
Additionally the organizers
are not incentivized to deploy and distribute to winners causing to the protocol owner to execute manually the deployProxyAndDistributeByOwner()
.
Manual review
Add a validation that the organizer
distribution must be between the saltToCloseTime
and the EXPIRATION_TIME
. Same in deployProxyAndDistributeBySignature()
Additionally, there should be a penalization to the organizer
or an incentive to deploy and distribute in time to winners.
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.