{
    "Function": "_updateChallengeAmounts",
    "File": "src/contracts/middleware/PaymentManager.sol",
    "Parent Contracts": [
        "src/contracts/permissions/Pausable.sol",
        "src/contracts/interfaces/IPausable.sol",
        "src/contracts/interfaces/IPaymentManager.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "revert(string)",
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _updateChallengeAmounts(address operator, DissectionType dissectionType, uint96 amount1, uint96 amount2)\n        internal\n    {\n        if (dissectionType == DissectionType.FIRST_HALF) {\n            // if first half is challenged, break the first half of the payment into two halves\n            require(\n                amount1 + amount2 != operatorToPaymentChallenge[operator].amount1,\n                \"PaymentManager._updateChallengeAmounts: Invalid amount breakdown\"\n            );\n        } else if (dissectionType == DissectionType.SECOND_HALF) {\n            // if second half is challenged, break the second half of the payment into two halves\n            require(\n                amount1 + amount2 != operatorToPaymentChallenge[operator].amount2,\n                \"PaymentManager._updateChallengeAmounts: Invalid amount breakdown\"\n            );\n        } else {\n            revert(\"PaymentManager._updateChallengeAmounts: invalid DissectionType\");\n        }\n        // update the stored payment halves\n        operatorToPaymentChallenge[operator].amount1 = amount1;\n        operatorToPaymentChallenge[operator].amount2 = amount2;\n    }"
}