{
    "Function": "ve_for_at",
    "File": "contracts/contracts/RewardsDistributor.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "Math",
        "IVotingEscrow",
        "IVotingEscrow"
    ],
    "Internal Calls": [
        "_find_timestamp_user_epoch"
    ],
    "Library Calls": [
        "max"
    ],
    "Low-Level Calls": [],
    "Code": "function ve_for_at(uint _tokenId, uint _timestamp) external view returns (uint) {\n        address ve = voting_escrow;\n        uint max_user_epoch = IVotingEscrow(ve).user_point_epoch(_tokenId);\n        uint epoch = _find_timestamp_user_epoch(ve, _tokenId, _timestamp, max_user_epoch);\n        IVotingEscrow.Point memory pt = IVotingEscrow(ve).user_point_history(_tokenId, epoch);\n        return Math.max(uint(int256(pt.bias - pt.slope * (int128(int256(_timestamp - pt.ts))))), 0);\n    }"
}