Submitted by jonah1005
The user would not get full IL compensation if theres not enough funds in the reserve.
VaderReserve.sol#L76-L91
VaderReserve.sol#L85
While this is reasonable, users should be able to specify the minimum received amount in the transaction. Otherwise, its vulnerable to some kind of MEV attack.
I consider this is a medium-risk issue.
The user can not specify a minimum IL compensation in the router.
VaderRouter.sol#L169-L207
The user may not receive the full amount of compensation.
VaderReserve.sol#L76-L91
None
Users should be able to protect themselves when burning lp.
Some possible fixes:
We can add a new parameter in the function.
Or we can check the amountAMin after receiving the compensation.
( assume tokenA is native token)
SamSteinGG (Vader) disputed:
alcueca (judge) commented:
SamSteinGG (Vader) commented:
