Any user can execute updateCountMartenitsaTokensOwner on any user.
The purpose of updateCountMartenitsaTokensOwner is to add or subtract count of tokens for user. It's used in two of following functions:
However, updateCountMartenitsaTokensOwner is external
which means any arbitrary user can execute it. Leaving function like that can result in state change of countMartenitsaTokensOwner inside MartenitsaToken
, which is used for calculating rewards - collectReward
Users would loss his rewards.
Alice buy 3 martenitsas via buyMartenitsa
Alice wants to collectReward
Just before Alice transaction - Bob execute updateCountMartenitsaTokensOwner 3 times with params: [Alice address, "sub"]
Alice doesn't get any reward
Manual Review
Set updateCountMartenitsaTokensOwner as internal
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.