code-423n4 / 2021-04-vader-findings

1 stars 0 forks source link

Code is different from comment #261

Closed code423n4 closed 3 years ago

code423n4 commented 3 years ago

Handle

s1m0

Vulnerability details

Impact

The formula is different from the comment, the impact could be high if the comment was actually rigth.

Proof of Concept

https://github.com/code-423n4/2021-04-vader/blob/main/vader-protocol/contracts/Utils.sol#L239 is different from comment on line 234. Should be _units = ((P * (part1 + part2)) / part3) if the comment is rigth.

Tools Used

Manual analysis

Recommended Mitigation Steps

Correct the code or the comment.

dmvt commented 3 years ago

duplicate of #204