Lucene search
+L

1 matches found

Code423n4
Code423n4
added 2022/12/19 12:00 a.m.19 views

Rounding down leads to breakage of the xy curve calculation

Lines of code Vulnerability details Impact When needing to calculate the inputAmount required to receive a certain amount of fractional tokens called outputAmount, we are deriving from the xy = k curve used on the Uniswap V2 protocol. Proof of Concept Some maths: The so-called curve equation is: ...

6.7AI score
SaveExploits0
Rows per page
Query Builder