{
    "Function": "removeStrategy",
    "File": "contracts/yield/StrategyRegistry.sol",
    "Parent Contracts": [
        "contracts/interfaces/IStrategyRegistry.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"
    ],
    "High-Level Calls": [
        "SafeMath"
    ],
    "Internal Calls": [
        "onlyOwner"
    ],
    "Library Calls": [
        "sub"
    ],
    "Low-Level Calls": [],
    "Code": "function removeStrategy(uint256 _strategyIndex) external override onlyOwner {\n        address _strategy = strategies[_strategyIndex];\n        strategies[_strategyIndex] = strategies[strategies.length.sub(1, 'StrategyRegistry::removeStrategy - No strategies exist')];\n        strategies.pop();\n        registry[_strategy] = false;\n\n        emit StrategyRemoved(_strategy);\n    }"
}