The function TradingAccount::getAccountEquityUsd has the following comment:
However, the function returns the user's total collateral + the unrealized PnL of his active positions. Clearly, it is also taking open positions into account, as that is where the unrealized PnL comes from.
No clear impact, but NatSpec is part of the protocol documentation, so there should be no mistakes there, so that users and developers are not misled.
Manual Review
Make sure the comments are consistent with the implementation.
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.