code-423n4 / 2022-01-trader-joe-findings

2 stars 0 forks source link

Use Shift Right/Left instead of Division/Multiplication if possible #271

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

Czar102

Vulnerability details

Impact

Issue Information: G008

Findings:

LaunchEvent.sol::451 => balance = lpSupply / 2;
LaunchEvent.sol::585 => return (user.balance * lpSupply) / wavaxAllocated / 2;

Tools used

c4udit