Open code423n4 opened 2 years ago
Event issues are non-critical
0 — Non-critical (0): vulns have a risk of 0 and are considered “Non-critical” whenCode style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas-optimisations
Handle
wuwe1
Vulnerability details
Impact
Off-chain tools will not work as expected.
Proof of Concept
Missing UserWithdrawn
https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/LaunchEvent.sol#L132
https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/LaunchEvent.sol#L372
Missing IssuingTokenDeposited
https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/LaunchEvent.sol#L124
https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/LaunchEvent.sol#L287
Recommended Mitigation Steps
Add
emit UserWithdrawn(user, amountMinusFee)
after L372Add
emit IssuingTokenDeposited(_token, balance)
after L287