ReputationChanged log when reputation increases after a successful sale.When a sale is successful, the company’s reputation should increase (if below 100) and this change should be transparently recorded through an event, allowing off-chain systems to track performance accurately.
Currently, the contract updates the reputation value after a successful sale but does not emit the ReputationChanged event, causing off-chain analytics and monitoring tools to miss these positive reputation updates.
Likelihood:
Occurs every time a successful sale increases the company’s reputation.
Happens consistently for all users whose purchases trigger reputation growth.
Impact:
Off-chain systems, dashboards, or analytics will not receive accurate reputation updates.
Misleads stakeholders or automated decision systems that rely on event logs for company reputation.
Ensure that any change to reputation, whether increase or decrease, is always logged using the ReputationChanged event.
Modify the sell_to_customer function to emit the event after a successful sale when reputation increases.
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.
The contest is complete and the rewards are being distributed.