{
    "Function": "setGaugeRedirect",
    "File": "contracts/Booster.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IStaker"
    ],
    "Internal Calls": [
        "keccak256(bytes)",
        "abi.encodeWithSelector()",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function setGaugeRedirect(uint256 _pid) external returns (bool) {\n        address stash = poolInfo[_pid].stash;\n        require(msg.sender == stash, \"!auth\");\n        address gauge = poolInfo[_pid].gauge;\n        bytes memory data = abi.encodeWithSelector(\n            bytes4(keccak256(\"set_rewards_receiver(address)\")),\n            stash\n        );\n        IStaker(staker).execute(gauge, uint256(0), data);\n        return true;\n    }"
}