{
    "Function": "notifyRewardAmount",
    "File": "contracts/contracts/Voter.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "_safeTransferFrom"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function notifyRewardAmount(uint amount) external {\n        _safeTransferFrom(base, msg.sender, address(this), amount); // transfer the distro in\n        uint256 _ratio = amount * 1e18 / totalWeight; // 1e18 adjustment is removed during claim\n        if (_ratio > 0) {\n            index += _ratio;\n        }\n        emit NotifyReward(msg.sender, base, amount);\n    }"
}