In a standard ReFi token sell transaction, the hook contract should accurately compute and record the actual fee amount charged for effective monitoring and data analysis.
The _beforeSwap function utilizes an incorrect fee calculation precision (100000 instead of 1000000), resulting in a discrepancy between the fee amount recorded in the event and the actual amount charged.
Likelihood:
This error in calculation is triggered with every user's ReFi token sale.
All sell transaction event logs will document incorrect fee amounts.
Monitoring systems and data analysis tools will consistently receive inaccurate information.
Impact:
Event recording distortion: The feeAmount parameter in the ReFiSold event is 10 times the actual charged amount, leading to completely erroneous monitoring data.
Misleading data analysis: Analysis tools based on event logs will significantly overestimate actual fee revenue, impacting decision-making.
User experience confusion: If front-end applications display fee data from events, users will see amounts that do not match the actual deductions.
N/A
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.