MartenitsaVoting::announceWinner
use variables insted of _tokenIds.length
Description: In MartenitsaVoting::announceWinner
use tokenIdLength = _tokenIds.length
instead of _tokenIds.length
with this, you can save 300 gas. if thousands or hundreds of users participate in voting you can save more gas.
Total gas spend with _tokenIds.length
: 519603
Total gas spend with tokenIdLength = _tokenIds.length
: 519303
Proof Of Concept:
Recommendation: Use tokenIdLength = _tokenIds.length
instead of _tokenIds.length
Description: In MartenitsaEvent::startEvent
the eventDuration = duration;
variable is unused. it's unnecessarily wasting gas.
MartenitsaToken
use variables instead of _tokenIds.length
Description: In MartenitsaToken::joinEvent
Use tokenIdLength = _tokenIds.length
insted of _tokenIds.length
. for example: if the owner makes 10 producers with this you can save 25 gas. if the owner wants to make more producers with this you can save more gas.
Total gas spend with _tokenIds.length
: 288311
Total gas spend with tokenIdLength = _tokenIds.length
: 288286
Proof Of Concept:
Recomendation: use uint256 ProducerLength = _producersList.length
instead of _tokenIds.length
MartenitsaEvent::stopEvent
use variables insted of _tokenIds.length
Description: InMartenitsaEvent::stopEvent
use tokenIdLength = _tokenIds.length
insted of _tokenIds.length
. It will save a lot of gas.
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.