{
    "Function": "_distributeReward",
    "File": "contracts/RewardDistribution.sol",
    "Parent Contracts": [
        "contracts/external/Ownable.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "_poolExists",
        "_transferReward",
        "_pendingAccountReward",
        "accruePool",
        "_getPid",
        "_getPool"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _distributeReward(address _account, address _pair, address _token, bool _isSupply) internal {\n\n    if (_poolExists(_pair, _token, _isSupply)) {\n\n      uint pid = _getPid(_pair, _token, _isSupply);\n\n      accruePool(pid);\n      _transferReward(_account, _pendingAccountReward(pid, _account));\n\n      Pool memory pool = _getPool(_pair, _token, _isSupply);\n      rewardSnapshot[pid][_account] = pool.accRewardsPerToken;\n    }\n  }"
}