{
    "Function": "withdraw",
    "File": "contracts/lybra/miner/ProtocolRewardsPool.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [
        "IesLBR"
    ],
    "Internal Calls": [
        "getClaimAbleLBR"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function withdraw(address user) public {\n        uint256 amount = getClaimAbleLBR(user);\n        if (amount > 0) {\n            LBR.mint(user, amount);\n        }\n        lastWithdrawTime[user] = block.timestamp;\n        emit WithdrawLBR(user, amount, block.timestamp);\n    }"
}