Event Soulmate::SoulmateAreReunited
emitted inside Soulmate::mintSoulmateToken
has wrong parameters
The event Soulmate::SoulmateAreReunited
is emitted after some user calls Soulmate::mintSoulmateToken
when another user is looking for a soulmate.
However, the variable soulmate2
is never updated after the check of soulmate2 == address(0)
, so soulmate2
still remains as address(0)
and is emitted with the event!
Inputs wrong information into the event.
Manual Review
Proof of Concept:
Changing soulmate2
for msg.sender
Low severity, inconsistencies in event emission Sidenote: Separating all event findings given root causes are different with different functions involved. There could be alot of debate on whether wrong emit events consitute low severity, but I believe, - There are direct inconsistencies in the code logic - Codehawks [low severity categorization guidelines](https://docs.codehawks.com/hawks-auditors/how-to-evaluate-a-finding-severity#low-severity-findings) supports its severity as seen below, especially noting the term `Minimal to no impact` > - Minimal to no impact on the funds or the protocol's main functionality.
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.