{
  "contractName": "LiquidityPoolV2ConverterCustomFactory",
  "abi": [
    {
      "inputs": [],
      "name": "converterType",
      "outputs": [
        {
          "internalType": "uint16",
          "name": "",
          "type": "uint16"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "contract IERC20Token",
          "name": "_primaryReserveToken",
          "type": "address"
        },
        {
          "internalType": "contract IERC20Token",
          "name": "_secondaryReserveToken",
          "type": "address"
        },
        {
          "internalType": "contract IChainlinkPriceOracle",
          "name": "_primaryReserveOracle",
          "type": "address"
        },
        {
          "internalType": "contract IChainlinkPriceOracle",
          "name": "_secondaryReserveOracle",
          "type": "address"
        }
      ],
      "name": "createPriceOracle",
      "outputs": [
        {
          "internalType": "contract IPriceOracle",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"converterType\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Token\",\"name\":\"_primaryReserveToken\",\"type\":\"address\"},{\"internalType\":\"contract IERC20Token\",\"name\":\"_secondaryReserveToken\",\"type\":\"address\"},{\"internalType\":\"contract IChainlinkPriceOracle\",\"name\":\"_primaryReserveOracle\",\"type\":\"address\"},{\"internalType\":\"contract IChainlinkPriceOracle\",\"name\":\"_secondaryReserveOracle\",\"type\":\"address\"}],\"name\":\"createPriceOracle\",\"outputs\":[{\"internalType\":\"contract IPriceOracle\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"converterType()\":{\"details\":\"returns the converter type the factory is associated with\",\"returns\":{\"_0\":\"converter type\"}},\"createPriceOracle(address,address,address,address)\":{\"details\":\"creates a new price oracle note that the oracles must have the same common denominator (USD, ETH etc.)\",\"params\":{\"_primaryReserveOracle\":\"primary reserve oracle address\",\"_primaryReserveToken\":\"primary reserve token address\",\"_secondaryReserveOracle\":\"secondary reserve oracle address\",\"_secondaryReserveToken\":\"secondary reserve token address\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/types/liquidity-pool-v2/LiquidityPoolV2ConverterCustomFactory.sol\":\"LiquidityPoolV2ConverterCustomFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/ITypedConverterCustomFactory.sol\":{\"keccak256\":\"0xe9e91f22d45e1c39dd441bed511d5fa6acffe83910f42ea7abcfd300f59daaaf\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://621881bd2a74632b697d87e4c3253142f8758364122240d5cc18826b18bfef80\",\"dweb:/ipfs/QmcTPevgXAYM7Li4r3rKn8uqRF2hWpid2uNBwymysYjLWp\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/types/liquidity-pool-v2/LiquidityPoolV2ConverterCustomFactory.sol\":{\"keccak256\":\"0x7fc843e5f1b0de5cc1248b4f12396a2dc42fc089f4af0b20ddb222cfca096f92\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://2f042d21817d6cabc0296f90ed45730353ff1a057c797104518b3a33dc01261b\",\"dweb:/ipfs/QmNgXdNtY1f2Ggg8PbB1MZVS9am8YAmPdj5fD7LFvApqC4\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/token/interfaces/IERC20Token.sol\":{\"keccak256\":\"0xe6f988c3156e88258474526a541d5a42b6a9adae98b04177a059d9f723bc82cd\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://9a6eb77a5b9ce70995a11a6e48ac3985a4c70896fe5fe04d46146ad7c1c83ea3\",\"dweb:/ipfs/QmYvGSveZFG51tghwkVuu6eK9Jy8frHpfLxHTMyvNZN461\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/PriceOracle.sol\":{\"keccak256\":\"0x5d03fb3ec2ef50006712ad6fd47d14aed49c4d57971e8d918618093f690e6170\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://8dae9bd9a95911008b10d316a1efaa6f05224bf37dec02ace44ef5a303aff3ee\",\"dweb:/ipfs/Qmeuv2c6R2KwFWganFF7US5s5TcYm1toGM2o4XkS1zGx4R\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/SafeMath.sol\":{\"keccak256\":\"0x1ab7391a19ca8a3ad2f3c4a1074e080d4d76dfdb834637bdd0c1e6b6acdf28af\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://d6d8c99621ca884b72da2d84eddfec8ec8c5533915691d6eec94a07adf445608\",\"dweb:/ipfs/QmaXr6DN7VbfxfMn3PsTy7SAMgZVVXbdeaw11BsAjVL2x1\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/Utils.sol\":{\"keccak256\":\"0x073efa69fcd6b5e60f841b28b366d63b62ff48ab12a06ce3f5a7f41afd6ce885\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://e8b8ecb2d29197ca77f0ed98f728ace54e6edcfdf5cd1194ae22701607eaf608\",\"dweb:/ipfs/QmcsR6Q35Hurh3TrPkYAboicz9bQQoGCWmZLzUCDyhotH8\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IChainlinkPriceOracle.sol\":{\"keccak256\":\"0x544a1d335c9a30e5543f5c069bbd9f73e6478b0a6941481619a0d20eea159c2a\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://8649d3ff5e21bf5ff21d45a62193974e08ccec27b392e91cbfdad479a60e87f0\",\"dweb:/ipfs/QmatS5peisTv9PdqVz9eSuveQdhJBqpxfpr5q4YsMv51CZ\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IPriceOracle.sol\":{\"keccak256\":\"0x39f4f7af694f7f24373901d8edd57245c6e59970cd1b35137ded4bbebe2155bb\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://30d1011854960be9ab326844d4d97324084955593b2903bee969aba6b1b5f8e9\",\"dweb:/ipfs/QmeTQNZRDNrboKD3ikyMj3tNVHGsa1GqBuAXytJAhhK5Az\"]}},\"version\":1}",
  "bytecode": "[encoded data, 5816 characters]",
  "deployedBytecode": "[encoded data, 5752 characters]",
  "immutableReferences": {},
  "sourceMap": "243:1175:30:-:0;;;;;;;;;;;;;;;;;;;",
  "deployedSourceMap": "243:1175:30:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1001:414;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1001:414:30;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;1001:414:30;;;;;;;;;;;;;;459:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1001:414;1261:12;1314:20;1336:22;1360:21;1383:23;1298:109;;;;;:::i;:::-;-1:-1:-1;;;;;1298:109:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1298:109:30;;;;;;;;;;;;;;;-1:-1:-1;1291:116:30;1001:414;-1:-1:-1;;;;;1001:414:30:o;459:92::-;542:1;459:92;:::o;-1:-1:-1:-;;;;;;;;:::o",
  "source": "// SPDX-License-Identifier: SEE LICENSE IN LICENSE\r\npragma solidity 0.6.12;\r\nimport \"../../interfaces/ITypedConverterCustomFactory.sol\";\r\nimport \"../../../utility/PriceOracle.sol\";\r\n\r\n/*\r\n    LiquidityPoolV2ConverterCustomFactory Factory\r\n*/\r\ncontract LiquidityPoolV2ConverterCustomFactory is ITypedConverterCustomFactory {\r\n    /**\r\n      * @dev returns the converter type the factory is associated with\r\n      *\r\n      * @return converter type\r\n    */\r\n    function converterType() external pure override returns (uint16) {\r\n        return 2;\r\n    }\r\n\r\n    /**\r\n      * @dev creates a new price oracle\r\n      * note that the oracles must have the same common denominator (USD, ETH etc.)\r\n      *\r\n      * @param  _primaryReserveToken    primary reserve token address\r\n      * @param  _secondaryReserveToken  secondary reserve token address\r\n      * @param  _primaryReserveOracle   primary reserve oracle address\r\n      * @param  _secondaryReserveOracle secondary reserve oracle address\r\n    */\r\n    function createPriceOracle(\r\n        IERC20Token _primaryReserveToken,\r\n        IERC20Token _secondaryReserveToken,\r\n        IChainlinkPriceOracle _primaryReserveOracle,\r\n        IChainlinkPriceOracle _secondaryReserveOracle)\r\n        public\r\n        returns (IPriceOracle)\r\n    {\r\n        return new PriceOracle(_primaryReserveToken, _secondaryReserveToken, _primaryReserveOracle, _secondaryReserveOracle);\r\n    }\r\n}\r\n",
  "sourcePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/types/liquidity-pool-v2/LiquidityPoolV2ConverterCustomFactory.sol",
  "ast": {
    "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/types/liquidity-pool-v2/LiquidityPoolV2ConverterCustomFactory.sol",
    "exportedSymbols": {
      "LiquidityPoolV2ConverterCustomFactory": [
        18456
      ]
    },
    "id": 18457,
    "license": "SEE LICENSE IN LICENSE",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 18418,
        "literals": [
          "solidity",
          "0.6",
          ".12"
        ],
        "nodeType": "PragmaDirective",
        "src": "52:23:30"
      },
      {
        "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/ITypedConverterCustomFactory.sol",
        "file": "../../interfaces/ITypedConverterCustomFactory.sol",
        "id": 18419,
        "nodeType": "ImportDirective",
        "scope": 18457,
        "sourceUnit": 13689,
        "src": "77:59:30",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/PriceOracle.sol",
        "file": "../../../utility/PriceOracle.sol",
        "id": 18420,
        "nodeType": "ImportDirective",
        "scope": 18457,
        "sourceUnit": 22206,
        "src": "138:42:30",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": false,
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 18421,
              "name": "ITypedConverterCustomFactory",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 13688,
              "src": "293:28:30",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_ITypedConverterCustomFactory_$13688",
                "typeString": "contract ITypedConverterCustomFactory"
              }
            },
            "id": 18422,
            "nodeType": "InheritanceSpecifier",
            "src": "293:28:30"
          }
        ],
        "contractDependencies": [
          13688,
          22205
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 18456,
        "linearizedBaseContracts": [
          18456,
          13688
        ],
        "name": "LiquidityPoolV2ConverterCustomFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "baseFunctions": [
              13687
            ],
            "body": {
              "id": 18431,
              "nodeType": "Block",
              "src": "524:27:30",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "32",
                    "id": 18429,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "number",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "542:1:30",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_rational_2_by_1",
                      "typeString": "int_const 2"
                    },
                    "value": "2"
                  },
                  "functionReturnParameters": 18428,
                  "id": 18430,
                  "nodeType": "Return",
                  "src": "535:8:30"
                }
              ]
            },
            "documentation": {
              "id": 18423,
              "nodeType": "StructuredDocumentation",
              "src": "329:124:30",
              "text": " @dev returns the converter type the factory is associated with\n @return converter type"
            },
            "functionSelector": "3e8ff43f",
            "id": 18432,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "converterType",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 18425,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "498:8:30"
            },
            "parameters": {
              "id": 18424,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "481:2:30"
            },
            "returnParameters": {
              "id": 18428,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 18427,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18432,
                  "src": "516:6:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint16",
                    "typeString": "uint16"
                  },
                  "typeName": {
                    "id": 18426,
                    "name": "uint16",
                    "nodeType": "ElementaryTypeName",
                    "src": "516:6:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "515:8:30"
            },
            "scope": 18456,
            "src": "459:92:30",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "external"
          },
          {
            "body": {
              "id": 18454,
              "nodeType": "Block",
              "src": "1280:135:30",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 18448,
                        "name": "_primaryReserveToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 18435,
                        "src": "1314:20:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20Token_$21127",
                          "typeString": "contract IERC20Token"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 18449,
                        "name": "_secondaryReserveToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 18437,
                        "src": "1336:22:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20Token_$21127",
                          "typeString": "contract IERC20Token"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 18450,
                        "name": "_primaryReserveOracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 18439,
                        "src": "1360:21:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                          "typeString": "contract IChainlinkPriceOracle"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 18451,
                        "name": "_secondaryReserveOracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 18441,
                        "src": "1383:23:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                          "typeString": "contract IChainlinkPriceOracle"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IERC20Token_$21127",
                          "typeString": "contract IERC20Token"
                        },
                        {
                          "typeIdentifier": "t_contract$_IERC20Token_$21127",
                          "typeString": "contract IERC20Token"
                        },
                        {
                          "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                          "typeString": "contract IChainlinkPriceOracle"
                        },
                        {
                          "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                          "typeString": "contract IChainlinkPriceOracle"
                        }
                      ],
                      "id": 18447,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "1298:15:30",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IERC20Token_$21127_$_t_contract$_IERC20Token_$21127_$_t_contract$_IChainlinkPriceOracle_$22821_$_t_contract$_IChainlinkPriceOracle_$22821_$returns$_t_contract$_PriceOracle_$22205_$",
                        "typeString": "function (contract IERC20Token,contract IERC20Token,contract IChainlinkPriceOracle,contract IChainlinkPriceOracle) returns (contract PriceOracle)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 18446,
                        "name": "PriceOracle",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 22205,
                        "src": "1302:11:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_PriceOracle_$22205",
                          "typeString": "contract PriceOracle"
                        }
                      }
                    },
                    "id": 18452,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1298:109:30",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_PriceOracle_$22205",
                      "typeString": "contract PriceOracle"
                    }
                  },
                  "functionReturnParameters": 18445,
                  "id": 18453,
                  "nodeType": "Return",
                  "src": "1291:116:30"
                }
              ]
            },
            "documentation": {
              "id": 18433,
              "nodeType": "StructuredDocumentation",
              "src": "559:436:30",
              "text": " @dev creates a new price oracle\n note that the oracles must have the same common denominator (USD, ETH etc.)\n @param  _primaryReserveToken    primary reserve token address\n @param  _secondaryReserveToken  secondary reserve token address\n @param  _primaryReserveOracle   primary reserve oracle address\n @param  _secondaryReserveOracle secondary reserve oracle address"
            },
            "functionSelector": "1b27444e",
            "id": 18455,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "createPriceOracle",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 18442,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 18435,
                  "mutability": "mutable",
                  "name": "_primaryReserveToken",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1038:32:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20Token_$21127",
                    "typeString": "contract IERC20Token"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18434,
                    "name": "IERC20Token",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 21127,
                    "src": "1038:11:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20Token_$21127",
                      "typeString": "contract IERC20Token"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 18437,
                  "mutability": "mutable",
                  "name": "_secondaryReserveToken",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1081:34:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20Token_$21127",
                    "typeString": "contract IERC20Token"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18436,
                    "name": "IERC20Token",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 21127,
                    "src": "1081:11:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20Token_$21127",
                      "typeString": "contract IERC20Token"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 18439,
                  "mutability": "mutable",
                  "name": "_primaryReserveOracle",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1126:43:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                    "typeString": "contract IChainlinkPriceOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18438,
                    "name": "IChainlinkPriceOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 22821,
                    "src": "1126:21:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                      "typeString": "contract IChainlinkPriceOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 18441,
                  "mutability": "mutable",
                  "name": "_secondaryReserveOracle",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1180:45:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                    "typeString": "contract IChainlinkPriceOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18440,
                    "name": "IChainlinkPriceOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 22821,
                    "src": "1180:21:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                      "typeString": "contract IChainlinkPriceOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1027:199:30"
            },
            "returnParameters": {
              "id": 18445,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 18444,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1261:12:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IPriceOracle_$22891",
                    "typeString": "contract IPriceOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18443,
                    "name": "IPriceOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 22891,
                    "src": "1261:12:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IPriceOracle_$22891",
                      "typeString": "contract IPriceOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1260:14:30"
            },
            "scope": 18456,
            "src": "1001:414:30",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "public"
          }
        ],
        "scope": 18457,
        "src": "243:1175:30"
      }
    ],
    "src": "52:1368:30"
  },
  "legacyAST": {
    "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/types/liquidity-pool-v2/LiquidityPoolV2ConverterCustomFactory.sol",
    "exportedSymbols": {
      "LiquidityPoolV2ConverterCustomFactory": [
        18456
      ]
    },
    "id": 18457,
    "license": "SEE LICENSE IN LICENSE",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 18418,
        "literals": [
          "solidity",
          "0.6",
          ".12"
        ],
        "nodeType": "PragmaDirective",
        "src": "52:23:30"
      },
      {
        "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/ITypedConverterCustomFactory.sol",
        "file": "../../interfaces/ITypedConverterCustomFactory.sol",
        "id": 18419,
        "nodeType": "ImportDirective",
        "scope": 18457,
        "sourceUnit": 13689,
        "src": "77:59:30",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/PriceOracle.sol",
        "file": "../../../utility/PriceOracle.sol",
        "id": 18420,
        "nodeType": "ImportDirective",
        "scope": 18457,
        "sourceUnit": 22206,
        "src": "138:42:30",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": false,
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 18421,
              "name": "ITypedConverterCustomFactory",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 13688,
              "src": "293:28:30",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_ITypedConverterCustomFactory_$13688",
                "typeString": "contract ITypedConverterCustomFactory"
              }
            },
            "id": 18422,
            "nodeType": "InheritanceSpecifier",
            "src": "293:28:30"
          }
        ],
        "contractDependencies": [
          13688,
          22205
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 18456,
        "linearizedBaseContracts": [
          18456,
          13688
        ],
        "name": "LiquidityPoolV2ConverterCustomFactory",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "baseFunctions": [
              13687
            ],
            "body": {
              "id": 18431,
              "nodeType": "Block",
              "src": "524:27:30",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "32",
                    "id": 18429,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "number",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "542:1:30",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_rational_2_by_1",
                      "typeString": "int_const 2"
                    },
                    "value": "2"
                  },
                  "functionReturnParameters": 18428,
                  "id": 18430,
                  "nodeType": "Return",
                  "src": "535:8:30"
                }
              ]
            },
            "documentation": {
              "id": 18423,
              "nodeType": "StructuredDocumentation",
              "src": "329:124:30",
              "text": " @dev returns the converter type the factory is associated with\n @return converter type"
            },
            "functionSelector": "3e8ff43f",
            "id": 18432,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "converterType",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 18425,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "498:8:30"
            },
            "parameters": {
              "id": 18424,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "481:2:30"
            },
            "returnParameters": {
              "id": 18428,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 18427,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18432,
                  "src": "516:6:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint16",
                    "typeString": "uint16"
                  },
                  "typeName": {
                    "id": 18426,
                    "name": "uint16",
                    "nodeType": "ElementaryTypeName",
                    "src": "516:6:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "515:8:30"
            },
            "scope": 18456,
            "src": "459:92:30",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "external"
          },
          {
            "body": {
              "id": 18454,
              "nodeType": "Block",
              "src": "1280:135:30",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 18448,
                        "name": "_primaryReserveToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 18435,
                        "src": "1314:20:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20Token_$21127",
                          "typeString": "contract IERC20Token"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 18449,
                        "name": "_secondaryReserveToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 18437,
                        "src": "1336:22:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20Token_$21127",
                          "typeString": "contract IERC20Token"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 18450,
                        "name": "_primaryReserveOracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 18439,
                        "src": "1360:21:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                          "typeString": "contract IChainlinkPriceOracle"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 18451,
                        "name": "_secondaryReserveOracle",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 18441,
                        "src": "1383:23:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                          "typeString": "contract IChainlinkPriceOracle"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IERC20Token_$21127",
                          "typeString": "contract IERC20Token"
                        },
                        {
                          "typeIdentifier": "t_contract$_IERC20Token_$21127",
                          "typeString": "contract IERC20Token"
                        },
                        {
                          "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                          "typeString": "contract IChainlinkPriceOracle"
                        },
                        {
                          "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                          "typeString": "contract IChainlinkPriceOracle"
                        }
                      ],
                      "id": 18447,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "1298:15:30",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_creation_nonpayable$_t_contract$_IERC20Token_$21127_$_t_contract$_IERC20Token_$21127_$_t_contract$_IChainlinkPriceOracle_$22821_$_t_contract$_IChainlinkPriceOracle_$22821_$returns$_t_contract$_PriceOracle_$22205_$",
                        "typeString": "function (contract IERC20Token,contract IERC20Token,contract IChainlinkPriceOracle,contract IChainlinkPriceOracle) returns (contract PriceOracle)"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 18446,
                        "name": "PriceOracle",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 22205,
                        "src": "1302:11:30",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_PriceOracle_$22205",
                          "typeString": "contract PriceOracle"
                        }
                      }
                    },
                    "id": 18452,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1298:109:30",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_PriceOracle_$22205",
                      "typeString": "contract PriceOracle"
                    }
                  },
                  "functionReturnParameters": 18445,
                  "id": 18453,
                  "nodeType": "Return",
                  "src": "1291:116:30"
                }
              ]
            },
            "documentation": {
              "id": 18433,
              "nodeType": "StructuredDocumentation",
              "src": "559:436:30",
              "text": " @dev creates a new price oracle\n note that the oracles must have the same common denominator (USD, ETH etc.)\n @param  _primaryReserveToken    primary reserve token address\n @param  _secondaryReserveToken  secondary reserve token address\n @param  _primaryReserveOracle   primary reserve oracle address\n @param  _secondaryReserveOracle secondary reserve oracle address"
            },
            "functionSelector": "1b27444e",
            "id": 18455,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "createPriceOracle",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 18442,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 18435,
                  "mutability": "mutable",
                  "name": "_primaryReserveToken",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1038:32:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20Token_$21127",
                    "typeString": "contract IERC20Token"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18434,
                    "name": "IERC20Token",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 21127,
                    "src": "1038:11:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20Token_$21127",
                      "typeString": "contract IERC20Token"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 18437,
                  "mutability": "mutable",
                  "name": "_secondaryReserveToken",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1081:34:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20Token_$21127",
                    "typeString": "contract IERC20Token"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18436,
                    "name": "IERC20Token",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 21127,
                    "src": "1081:11:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20Token_$21127",
                      "typeString": "contract IERC20Token"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 18439,
                  "mutability": "mutable",
                  "name": "_primaryReserveOracle",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1126:43:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                    "typeString": "contract IChainlinkPriceOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18438,
                    "name": "IChainlinkPriceOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 22821,
                    "src": "1126:21:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                      "typeString": "contract IChainlinkPriceOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 18441,
                  "mutability": "mutable",
                  "name": "_secondaryReserveOracle",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1180:45:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                    "typeString": "contract IChainlinkPriceOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18440,
                    "name": "IChainlinkPriceOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 22821,
                    "src": "1180:21:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IChainlinkPriceOracle_$22821",
                      "typeString": "contract IChainlinkPriceOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1027:199:30"
            },
            "returnParameters": {
              "id": 18445,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 18444,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 18455,
                  "src": "1261:12:30",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IPriceOracle_$22891",
                    "typeString": "contract IPriceOracle"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 18443,
                    "name": "IPriceOracle",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 22891,
                    "src": "1261:12:30",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IPriceOracle_$22891",
                      "typeString": "contract IPriceOracle"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1260:14:30"
            },
            "scope": 18456,
            "src": "1001:414:30",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "public"
          }
        ],
        "scope": 18457,
        "src": "243:1175:30"
      }
    ],
    "src": "52:1368:30"
  },
  "compiler": {
    "name": "solc",
    "version": "0.6.12+commit.27d51765.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.2.3",
  "updatedAt": "2020-10-20T08:24:47.787Z",
  "devdoc": {
    "kind": "dev",
    "methods": {
      "converterType()": {
        "details": "returns the converter type the factory is associated with",
        "returns": {
          "_0": "converter type"
        }
      },
      "createPriceOracle(address,address,address,address)": {
        "details": "creates a new price oracle note that the oracles must have the same common denominator (USD, ETH etc.)",
        "params": {
          "_primaryReserveOracle": "primary reserve oracle address",
          "_primaryReserveToken": "primary reserve token address",
          "_secondaryReserveOracle": "secondary reserve oracle address",
          "_secondaryReserveToken": "secondary reserve token address"
        }
      }
    },
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "version": 1
  }
}