The `afterWithdrawChecks` applies only if user wants to withdraw in tokenA/B
The `afterWithdrawChecks` check is very important to be sure that important health parameters are in the proper ranges. But the check is inside brackets of the `if user wants to withdraw in tokenA/B` statement. So if the user wants to withdraw LP-token the check is not provided. This can cause unexpected financial losses.\\nThe `afterWithdrawChecks` check is placed inside the brackets of the if-statement of the `GMXProcessWithdraw.processWithdraw` function. This statement checks `if user wants to withdraw in tokenA/B`. In other cases the `afterWithdrawChecks` check is not provided but should.\\n```\\n 69    // Else if user wants to withdraw in LP token, the tokensToUser is already previously\\n 70    // set in GMXWithdraw.withdraw()\\n 71    if (\\n 72      self.withdrawCache.withdrawParams.token == address(self.tokenA) ||\\n 73      self.withdrawCache.withdrawParams.token == address(self.tokenB)\\n 74    ) {\\n\\n104      GMXChecks.afterWithdrawChecks(self);\\n105    }\\n106  }  \\n```\\n
I suppose that the check should be placed after the if statement brackets.
The issue can cause unexpected financial losses.\\nTools used\\nManual Review
```\\n 69    // Else if user wants to withdraw in LP token, the tokensToUser is already previously\\n 70    // set in GMXWithdraw.withdraw()\\n 71    if (\\n 72      self.withdrawCache.withdrawParams.token == address(self.tokenA) ||\\n 73      self.withdrawCache.withdrawParams.token == address(self.tokenB)\\n 74    ) {\\n\\n104      GMXChecks.afterWithdrawChecks(self);\\n105    }\\n106  }  \\n```\\n