RiskHelper::isoGroup() returns 0, regardless of the passed subaccount
Description
RiskHelper::isoGroup() is called in various functions across the code such as
RiskHelper::canTrade(), SpotEngine::socializeSubaccount(), PerpEngine::socializeSubaccount(), ClearinghouseLiq::_assertLiquidationAmount(), ClearinghouseLiq::_assertCanLiquidateLiability(),ClearinghouseLiq::_finalizeSubaccount(), and ClearinghouseLiq_settlePositivePerpPnl().
However, it always returns 0 regardless of its parameter subaccount.
Recommendation
Implement the functionality (currently commented out) or fully remove this function.
Status
Acknowledged