if '_positionTokenAmount' is set to 'type(uuint256).max, the function uses the minimum pf the users short and long token balances, but it does not check if the users has enough tokens to cover the removal
Impact
This could lead to a situation where the user attempts to remove more liquidity than then they have, which will result in revert
Ensure that the user has enough tokens to cover the removal before proceeding with transfer.
require(userBalanceShort >= _positionTokenAmountToRemove, "Not enough Tokens");
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.