{
    "Function": "pendingRJoe",
    "File": "contracts/RocketJoeStaking.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [
        "IERC20Upgradeable"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function pendingRJoe(address _user) external view returns (uint256) {\n        UserInfo storage user = userInfo[_user];\n        uint256 joeSupply = joe.balanceOf(address(this));\n        uint256 _accRJoePerShare = accRJoePerShare;\n\n        if (block.timestamp > lastRewardTimestamp && joeSupply != 0) {\n            uint256 multiplier = block.timestamp - lastRewardTimestamp;\n            uint256 rJoeReward = multiplier * rJoePerSec;\n            _accRJoePerShare += (rJoeReward * PRECISION) / joeSupply;\n        }\n        return (user.amount * _accRJoePerShare) / PRECISION - user.rewardDebt;\n    }"
}