In redeemPositionToken if user have specified in positionTokenAmounts bigger than his balanceOf it will revert. It will not revert only when its under the users total balance or its set to uint256 max to use the full balance of the user
Using to check _positionTokenAmount if its uint256 max to take the full balance of user is very bad design choice since if its not uint256 max and its still over the users total balance function will revert.
Low
Manual Review
Using this way if the positionTokenAmount is under userBalance it will use the positionTokenAmount.
If the positionTokenAmount is over the userBalance it will use the all userBalance
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.