When withdrawing, the pending fee is minted only after the withdrawal asset amounts are calculated. This allows the first withdrawal to not incur any fees meanwhile the remaining user's are burdened with additional fees.
https://github.com/Cyfrin/2023-10-SteadeFi/blob/0f909e2f0917cb9ad02986f631d622376510abec/contracts/strategy/gmx/GMXWithdraw.sol#L41-L101
First withdrawals will avoid fees while other user's will incur more fees than actual.
Mint fees before calculating the withdrawal lp amount.
Impact: High Likelihood: High User share amount is calculated before minting fee and the remaining users will need to more fee than reasonable.
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.