Submitted by DadeKuma
An attacker can sandwich a user withdrawing funds as there is no way to put slippage protection, which will cause a large loss of funds for the victim.
decr_position_09293696 function was removed entirely. Now, the only way for users to withdraw funds is by calling update_position_C_7_F_1_F_740 with negative delta.
The issue is that in this way, users cant have any slippage protection. decr_position allowed users to choose an amount_0_min and amount_1_min of funds to receive, which is now zero.
This allows an attacker to sandwich their withdrawal to steal a large amount of funds.
Consider reintroducing a withdrawal function that offers slippage protection to users (they should be able to choose amount_0_min, amount_1_min, amount_0_desired, and amount_1_desired).
af-afk (Superposition) acknowledged
0xsomeone (judge) commented:
af-afk (Superposition) commented:
DadeKuma (warden) commented:
