Lucene search
+L

3 matches found

Code423n4
Code423n4
added 2023/07/10 12:0 a.m.18 views

Users can swap tokens through shift() function without _updatePumps()

Lines of code Vulnerability details Impact Any user can swap tokens just transferring tokens to the contract in a batch with calling shift function. The problem is that the shift doesn't call the updatePumps function which update oracle. This way attackers can exploit this vulnerability to...

6.5AI score
SaveExploits0
Code423n4
Code423n4
added 2023/07/10 12:0 a.m.41 views

TWAP can be easily manipulated by attacker through the sync() function, causing loss of funds

Lines of code Vulnerability details Description Please refer to the issue titled Implementation of Well shift function allows attackers to completely manipulate the oracles for relevant introduction and context. The safety of the TWAP relies on calling the observation function update with the...

6.9AI score
SaveExploits0
Code423n4
Code423n4
added 2023/07/10 12:0 a.m.8 views

Pump is not updated in shift function

Lines of code Vulnerability details Impact According to comments in Well contract, updatePumps function "Fetches the current token reserves of the Well and updates the Pumps. Typically called before an operation that modifies the Well's reserves." In functions like swap, add/remove liquidity...

6.5AI score
SaveExploits0
Rows per page
Query Builder