Lucene search
+L

1 matches found

Code423n4
Code423n4
•added 2022/10/23 12:00 a.m.•16 views

Wrong calculation in LBRouter._getAmountsIn.

Lines of code Vulnerability details Impact It calculates the amountsIn wrongly here and the function returns the wrong result. Proof of Concept Currently, getAmountsIn calculates the amountsIn like below. amountsIni - 1 = reserveIn amountOut 1000 / reserveOut - amountOut 997 + 1; As we can see...

6.9AI score
SaveExploits0
Rows per page
Query Builder