{
    "Function": "setFactories",
    "File": "contracts/Booster.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function setFactories(\n        address _rfactory,\n        address _sfactory,\n        address _tfactory\n    ) external {\n        require(msg.sender == owner, \"!auth\");\n\n        //reward factory only allow this to be called once even if owner\n        //removes ability to inject malicious staking contracts\n        //token factory can also be immutable\n        if (rewardFactory == address(0)) {\n            rewardFactory = _rfactory;\n            tokenFactory = _tfactory;\n            emit FactoriesUpdated(_rfactory, _tfactory);\n        }\n\n        //stash factory should be considered more safe to change\n        //updating may be required to handle new types of gauges\n        stashFactory = _sfactory;\n    }"
}