{
    "Function": "addOi",
    "File": "contracts/market/OverlayV1OI.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function addOi(\n        bool _isLong,\n        uint256 _openInterest,\n        uint256 _oiCap\n    ) internal {\n\n        if (_isLong) {\n\n            oiLongShares += _openInterest;\n\n            uint _oiLong = __oiLong__ + _openInterest;\n\n            require(_oiLong <= _oiCap, \"OVLV1:>cap\");\n\n            __oiLong__ = _oiLong;\n\n        } else {\n\n            oiShortShares += _openInterest;\n\n            uint _oiShort = __oiShort__ + _openInterest;\n\n            require(_oiShort <= _oiCap, \"OVLV1:>cap\");\n\n            __oiShort__ = _oiShort;\n\n        }\n\n    }"
}