The MembershipFactory::upgradeTier()
wrongfully emits an event of joining dao
emit UserJoinedDAO(_msgSender(), daoMembershipAddress, fromTierIndex - 1); // @audit the event for joining dao is emitted instead of upgrade
Take a look at this LoC, MembershipFactory.sol#L160.
This could be a serious issue when the external bots, or web2 servers watch over the events emitted by the contract but, in this case since it is only misleading, I am marking this issue as LOW
.
Manual Review
Create a separate event for dao tier upgrade, and emit it when upgrading dao tier, instead of joining dao
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.