In
This submission identifies an error in UpliftOnlyExample.sol the fee calculation logic for feePerLP. The comment specifies that the fee should be calculated based on the deposit value, but the implementation incorrectly calculates it based on lpTokenDepositValueChange.
In UpliftOnlyExample.sol in line 479 comment says that fee should be calculated in based on deposit value but in line 482 it is being calculated on change value `lpTokenDepositValueChange` .
Calculating the fee based on lpTokenDepositValueChange instead of the deposit value can result in inaccurate fee charges, especially when there is little or no change in the token value. This miscalculation may lead to either overcharging or undercharging users, undermining the integrity of the fee structure and user trust in the system.
Manual review
Correction should be made in UpliftOnlyExample.sol on line 482 and fee should be calculated on based on Value deposited .
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.