{
    "Function": "_getMarginFraction",
    "File": "contracts/HubbleViewer.sol",
    "Parent Contracts": [
        "contracts/Interfaces.sol"
    ],
    "High-Level Calls": [
        "SafeCast"
    ],
    "Internal Calls": [],
    "Library Calls": [
        "toInt256"
    ],
    "Low-Level Calls": [],
    "Code": "function _getMarginFraction(int256 accountValue, uint notionalPosition) private pure returns(int256) {\n        if (notionalPosition == 0) {\n            return type(int256).max;\n        }\n        return accountValue * PRECISION_INT / notionalPosition.toInt256();\n    }"
}