{
    "Function": "getFeeAmountDistribution",
    "File": "src/libraries/FeeHelper.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "SafeCast"
    ],
    "Internal Calls": [],
    "Library Calls": [
        "safe128"
    ],
    "Low-Level Calls": [],
    "Code": "function getFeeAmountDistribution(FeeParameters memory _fp, uint256 _fees)\n        internal\n        pure\n        returns (FeesDistribution memory fees)\n    {\n        fees.total = _fees.safe128();\n        // unsafe math is fine because total >= protocol\n        unchecked {\n            fees.protocol = uint128((_fees * _fp.protocolShare) / Constants.BASIS_POINT_MAX);\n        }\n    }"
}