{
    "Function": "constructor",
    "File": "contracts/contracts/RewardsDistributor.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IVotingEscrow",
        "IERC20"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "constructor(address _voting_escrow) {\n        uint _t = block.timestamp / WEEK * WEEK;\n        start_time = _t;\n        last_token_time = _t;\n        time_cursor = _t;\n        address _token = IVotingEscrow(_voting_escrow).token();\n        token = _token;\n        voting_escrow = _voting_escrow;\n        depositor = msg.sender;\n        IERC20(_token).approve(_voting_escrow, type(uint).max);\n    }"
}