{
    "Function": "_updateStoredPremia",
    "File": "contracts/SemiFungiblePositionManager.sol",
    "Parent Contracts": [
        "contracts/multicall/Multicall.sol",
        "contracts/tokens/ERC1155Minimal.sol"
    ],
    "High-Level Calls": [
        "LeftRight",
        "LeftRight"
    ],
    "Internal Calls": [
        "_getPremiaDeltas"
    ],
    "Library Calls": [
        "add",
        "add"
    ],
    "Low-Level Calls": [],
    "Code": "function _updateStoredPremia(\n        bytes32 positionKey,\n        uint256 currentLiquidity,\n        int256 collectedAmounts\n    ) private {\n        (uint256 deltaPremiumOwed, uint256 deltaPremiumGross) = _getPremiaDeltas(\n            currentLiquidity,\n            collectedAmounts\n        );\n\n        s_accountPremiumOwed[positionKey] = s_accountPremiumOwed[positionKey].add(deltaPremiumOwed);\n        s_accountPremiumGross[positionKey] = s_accountPremiumGross[positionKey].add(\n            deltaPremiumGross\n        );\n    }"
}