Lucene search
+L

2 matches found

Code423n4
Code423n4
added 2022/09/08 12:00 a.m.11 views

Sudden price fluctuations occuring at a call to _update() will not be reflected by reserves(), sampleReserves() and sampleSupply() until after periodSize seconds

Lines of code Vulnerability details Impact Consider the situation where a token suddenly drops drastically in price in the market. Consider a call to BaseV1Pair.swap which makes a very large swap between the two tokens accurately reflecting the change in price and also causes a new observation to...

6.8AI score
SaveExploits0
Code423n4
Code423n4
added 2022/07/01 12:00 a.m.7 views

Oracle periodSize is very low allowing the TWAP price to be easily manipulated

Lines of code Vulnerability details Impact TWAP oracle easily manipulated Proof of Concept periodSize is set to 0 meaning that the oracle will take a new observation every single block, which would allow an attacker to easily flood the TWAP oracle and manipulate the price Tools Used Recommended...

6.8AI score
SaveExploits0
Rows per page
Query Builder