{
    "Function": "constructor",
    "File": "contracts/yieldspace/Pool.sol",
    "Parent Contracts": [
        "contracts/utils/access/Ownable.sol",
        "contracts/utils/token/ERC20Permit.sol",
        "contracts/interfaces/yieldspace/IPool.sol",
        "contracts/interfaces/external/IERC2612.sol",
        "contracts/utils/token/ERC20.sol",
        "contracts/interfaces/external/IERC20Metadata.sol",
        "contracts/interfaces/external/IERC20.sol"
    ],
    "High-Level Calls": [
        "IPoolFactory",
        "SafeERC20Namer",
        "SafeERC20Namer",
        "IPoolFactory",
        "SafeERC20Namer",
        "IPoolFactory",
        "IFYToken",
        "SafeERC20Namer",
        "SafeERC20Namer",
        "IPoolFactory",
        "IPoolFactory",
        "SafeERC20Namer",
        "IPoolFactory",
        "IPoolFactory",
        "IPoolFactory"
    ],
    "Internal Calls": [
        "constructor",
        "abi.encodePacked()",
        "abi.encodePacked()",
        "abi.encodePacked()",
        "constructor",
        "require(bool,string)",
        "abi.encodePacked()"
    ],
    "Library Calls": [
        "tokenSymbol",
        "tokenDecimals",
        "tokenName",
        "tokenName",
        "tokenDecimals",
        "tokenSymbol"
    ],
    "Low-Level Calls": [],
    "Code": "constructor()\n        ERC20Permit(\n            string(abi.encodePacked(\"Yield \", SafeERC20Namer.tokenName(IPoolFactory(msg.sender).nextFYToken()), \" LP Token\")),\n            string(abi.encodePacked(SafeERC20Namer.tokenSymbol(IPoolFactory(msg.sender).nextFYToken()), \"LP\")),\n            SafeERC20Namer.tokenDecimals(IPoolFactory(msg.sender).nextBase())\n        )\n    {\n        IFYToken _fyToken = IFYToken(IPoolFactory(msg.sender).nextFYToken());\n        fyToken = _fyToken;\n        base = IERC20(IPoolFactory(msg.sender).nextBase());\n\n        uint256 _maturity = _fyToken.maturity();\n        require (_maturity <= type(uint32).max, \"Pool: Maturity too far in the future\");\n        maturity = uint32(_maturity);\n    }"
}