User add liquidity to the protocol and if there is a positive change in price he pays fees that depend on BptAmount he is withdrawing
he can bypass paying this fee by updating his position to another account
as seen above the logic of updating the current lpTokenDepositValueNow is recorded
User added liquidity where lpTokenDepositValueNow = 2e18
Time passes and lpTokenDepositValueNow = 10e18 (user should pay fees for that positive change )
user updated his position to his other account recording the current lpTokenDepositValueNow then remove liquidity
then a user removes liquidity with recorded lpTokenDepositValueNow of 10e18
user pays the minimum fee as there is no positive change in price
Loss of funds/fees
manual review
incase of update the first recorded value should be the same
Likelihood: High, any transfer will trigger the bug. Impact: High, will update lpTokenDepositValue to the new current value without taking fees on profit.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.