RebateFi Hook

First Flight #53
Beginner FriendlyDeFi
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Missing the fee parameter in the ReFiBought event

Description

When the ReFi token is bought, the event ReFiBought is emitted, but this event doesn't have the fee used in this purchase.

Impact

The contract will emit the ReFiBought event with missing information, different from the ReFiSold, which contains the fee parameter.

Proof of Concept

On line 42, we have the ReFiBought event without the fee parameter.

event ReFiBought(address indexed buyer, uint256 amount);

Recommended Mitigation

  • Add the fee parameter in the ReFiBought event

  • Update the event, adding the fee parameter when the event is emitted

Updates

Lead Judging Commences

chaossr Lead Judge 12 days ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!