{
    "Function": "depositServiceDonationsETH",
    "File": "tokenomics/contracts/Treasury.sol",
    "Parent Contracts": [
        "tokenomics/contracts/interfaces/IErrorsTokenomics.sol"
    ],
    "High-Level Calls": [
        "ITokenomics"
    ],
    "Internal Calls": [
        "revert ZeroValue()",
        "revert LowerThan(uint256,uint256)",
        "revert Overflow(uint256,uint256)",
        "revert WrongArrayLength(uint256,uint256)",
        "revert ReentrancyGuard()",
        "revert WrongAmount(uint256,uint256)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function depositServiceDonationsETH(uint256[] memory serviceIds, uint256[] memory amounts) external payable {\n        // Reentrancy guard\n        if (_locked > 1) {\n            revert ReentrancyGuard();\n        }\n        _locked = 2;\n\n        // Check that the amount donated has at least a practical minimal value\n        if (msg.value < minAcceptedETH) {\n            revert LowerThan(msg.value, minAcceptedETH);\n        }\n\n        // Check for the same length of arrays\n        uint256 numServices = serviceIds.length;\n        if (amounts.length != numServices) {\n            revert WrongArrayLength(numServices, amounts.length);\n        }\n\n        uint256 totalAmount;\n        for (uint256 i = 0; i < numServices; ++i) {\n            if (amounts[i] == 0) {\n                revert ZeroValue();\n            }\n            totalAmount += amounts[i];\n        }\n\n        // Check if the total transferred amount corresponds to the sum of amounts from services\n        if (msg.value != totalAmount) {\n            revert WrongAmount(msg.value, totalAmount);\n        }\n\n        // Accumulate received donation from services\n        uint256 donationETH = ETHFromServices + msg.value;\n        // Check for the overflow values, specifically when fuzzing, since realistically these amounts are assumed to be not possible\n        if (donationETH + ETHOwned > type(uint96).max) {\n            revert Overflow(donationETH, type(uint96).max);\n        }\n        ETHFromServices = uint96(donationETH);\n        emit DonateToServicesETH(msg.sender, serviceIds, amounts, msg.value);\n\n        // Track service donations on the Tokenomics side\n        ITokenomics(tokenomics).trackServiceDonations(msg.sender, serviceIds, amounts, msg.value);\n\n        _locked = 1;\n    }"
}