{
    "Function": "getTokenPerShare",
    "File": "src/libraries/FeeDistributionHelper.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function getTokenPerShare(FeeHelper.FeesDistribution memory _fees, uint256 _totalSupply)\n        internal\n        pure\n        returns (uint256)\n    {\n        unchecked {\n            // This can't overflow as `totalFees >= protocolFees`,\n            // shift can't overflow as we shift fees that are a uint128, by 128 bits.\n            // The result will always be smaller than max(uint256)\n            return ((uint256(_fees.total) - _fees.protocol) << Constants.SCALE_OFFSET) / _totalSupply;\n        }\n    }"
}