{
    "Function": "initialize",
    "File": "contracts/PlatformProxyAdmin.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/proxy/ProxyAdmin.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/GSN/Context.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "keccak256(bytes)",
        "abi.encodePacked()",
        "abi.encodeWithSelector()",
        "keccak256(bytes)",
        "keccak256(bytes)",
        "keccak256(bytes)",
        "abi.encodePacked()",
        "upgradeAndCall",
        "abi.encodeWithSelector()",
        "upgradeAndCall",
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function initialize(\n        address controllerImplementation,\n        address factoryImplementation,\n        address strategyImplementation,\n        address oracle,\n        address registry,\n        address whitelist,\n        address pool\n    ) public {\n        require(msg.sender == deployer, \"Not deployer\");\n        require(!initialized, \"Initialized\");\n        initialized = true;\n        // Deploy proxies without proper implementation or initialization in order\n        // to get predictable addresses since we need to know addresses to deploy implementation\n        TransparentUpgradeableProxy controllerProxy =\n            new TransparentUpgradeableProxy{salt: keccak256(abi.encodePacked('StrategyController'))}(\n              address(this),\n              address(this),\n              new bytes(0)\n          );\n        TransparentUpgradeableProxy factoryProxy =\n            new TransparentUpgradeableProxy{salt: keccak256(abi.encodePacked('StrategyProxyFactory'))}(\n              address(this),\n              address(this),\n              new bytes(0)\n          );\n        // Upgrade proxies to correct implementation and initialize\n        upgradeAndCall(\n          factoryProxy,\n          factoryImplementation,\n          abi.encodeWithSelector(\n              bytes4(keccak256(\"initialize(address,address,address,address,address,address)\")),\n              msg.sender,\n              strategyImplementation,\n              oracle,\n              registry,\n              whitelist,\n              pool\n          )\n        );\n        upgradeAndCall(\n          controllerProxy,\n          controllerImplementation,\n          abi.encodeWithSelector(\n              bytes4(keccak256(\"initialize()\"))\n          )\n        );\n    }"
}