cic-internal-integration/apps/cic-eth/tests/testdata/bancor/ConverterV28OrHigherWithoutFallback.json

6031 lines
240 KiB
JSON

{
"contractName": "ConverterV28OrHigherWithoutFallback",
"abi": [
{
"inputs": [],
"name": "isV28OrHigher",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"isV28OrHigher\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/helpers/TestBancorNetwork.sol\":\"ConverterV28OrHigherWithoutFallback\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/BancorNetwork.sol\":{\"keccak256\":\"0xb1817f3d45dd66177f17cf45f1b660186ee35575222a11c9bc0e0d44b32846ea\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://ce648a9b8038bb11d1ed091a16aa831a973ff2896ae9aae6b34cb9a8d0e02b00\",\"dweb:/ipfs/QmQKqVVXV6dDBd8saigyEALeLwjG8nhqK8wLRqDGaKSDV6\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/IConversionPathFinder.sol\":{\"keccak256\":\"0x2d0f5b57bc448581a6e2296486ca618851138f40928049d75220623605915d7b\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://2182eb05da8442792a5f3f4d8cdb2cf0bf9e952ca02638f3880cc59d5fd6dcb6\",\"dweb:/ipfs/QmSH9uWh6zTQkcBgD7VGGSzYW9DjdBDkUZUZ6zhzPWPPDz\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/bancorx/interfaces/IBancorX.sol\":{\"keccak256\":\"0x65b5780d710159c7540078c38406c53db37a349fb468a0bf21bdc6262e497951\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://3df931a12770d10a22451326e38ae9d405d3e2716bdbdd6306b5e2361f6fe511\",\"dweb:/ipfs/QmcRBSaFLz516dAEqb8ZEiyx8ZTHZZ6rfxHn5roL2fHA3S\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/IBancorFormula.sol\":{\"keccak256\":\"0xf30c95034af4c4ec6e8a859e90cf7a0bada29a805ede76e04644107a7c677c4e\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://b48070d4abf9c4a08c39e6c494fa9efd7389aa7f8b61b283c9ba02062b1c59b6\",\"dweb:/ipfs/Qme6U7SpspFPzMH2mTyKsXCnJEAgg1vX6NNFzuykbVSY5R\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/IConverter.sol\":{\"keccak256\":\"0x18b0d73a3d5ee951ede1b3f840ed35b40570e34975703079a4451555f4dd089b\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://1cd7263f1ef60793e3929509150420037df9a1194c3d0f40bb2ff5516d6a373f\",\"dweb:/ipfs/QmNUbsZt2rzWPjStYycgz3vMbNP4VrAqZPRAK39QNqUoos\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/IConverterAnchor.sol\":{\"keccak256\":\"0x9448cdbe90293fb5c1a0808b77af8754a1025b59c45f432eee01f659361a6115\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://1ef2bb2e1543c9324daf7f3fd086a57efb45b89f3d62b9d7a9fc78c138d24dbc\",\"dweb:/ipfs/QmVcXDib3K6xYJMBNxawmo4krJGiDfxb5oL64Lc3pi14XK\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/helpers/TestBancorNetwork.sol\":{\"keccak256\":\"0xc40ca5fce07a0b65d5739e15b7c0a1adb7b1abf40d6cfe5bd15794a68fc73ccf\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://e72a37e36080c3f65b9f4da8feccb955d4ea4429145c034e081e4577358c8eb9\",\"dweb:/ipfs/QmR5tF1rLfnRwSKJjwXNaoXdMt73SB94B9kBF8cyeTqkaP\"]},\"/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/token/interfaces/IEtherToken.sol\":{\"keccak256\":\"0x6ed324da616d70af0b21fa073b1e5329b430e38b470177633a69710eff3da893\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://44f94aa59c67de636423cbdef82efb7d8e0562e73dfc9049a48054156aebaf14\",\"dweb:/ipfs/Qmdn8KAP54s7X3J6TCoZPhCpS19aCQzFYZuFABugJ5JA5D\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/token/interfaces/ISmartToken.sol\":{\"keccak256\":\"0x5cfc15e7a23a9872059b0cea4d2ae902c3fc074a39e1c645036ce38ad47881ec\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://890ee09d24de5778e34c4c27d1377d83d378e8f4a13fcb94d5102f61d4749cce\",\"dweb:/ipfs/QmT89f61fmsUN1BVdebKxUc5VU7sitiP33LNk7TTtF18oj\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/ContractRegistryClient.sol\":{\"keccak256\":\"0x74caf88eff1cb113ad8277df9ba7933a6f1e0deea8fd1855157def3be833b859\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://c7793c9f245736cd8413bc8c4b5c40b67949cbee32289a16d29c83cf59396ad6\",\"dweb:/ipfs/QmWony7b1buUrGnE32gjLAnSwkBYMrJ68vUcCwDMmp3MbJ\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/Owned.sol\":{\"keccak256\":\"0x6ef69d9dcc80a8a36d5eb37783375cd5e4831c6d20c723fa6f6b6a06c0aeb53d\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://5a5d087e2c5b47739615ef22e1f29749de44b43c9a37cfae32b3dfc498a258c4\",\"dweb:/ipfs/Qmd1mXKEQbmBxqHk326LGVzNoayXsam8gZNecknnYpBnyh\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/ReentrancyGuard.sol\":{\"keccak256\":\"0x5ea87c10dd6e7e79212da712eb5f079c03361e6c96e299a4ffd9aaee8d6a3899\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://882aac64a791df35a942480e6ce611d1acb399af4ac0c4ef0288965c3785bf50\",\"dweb:/ipfs/QmeWeYYFh5HZAzJ1SzPHoTcPvZrE4NPUVfmjvH9Q3m36Gg\"]},\"/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/TokenHandler.sol\":{\"keccak256\":\"0xf65b87e3bf3343e368da67878c19d1a043a1025b10e9053d3562b53b4aa447fe\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://b85c5d96642c14c53b8d5062eecd4d27d3bdb457d1d0f130900763a75a512eb7\",\"dweb:/ipfs/QmUHtbqC1khqnRZXYn11Aykus4m5e9MVNUWqorxhpr5ipJ\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/TokenHolder.sol\":{\"keccak256\":\"0xac6bc102eff6c1bb8c1bb4466eab50322c7c101e2e33d577dd3035f106627577\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://9fdbda2d4509260ca3dd43654bdaea07ef18a5e04213ff16e38e3b4abad78a5f\",\"dweb:/ipfs/QmPb69rzX1DwDeEhhfzqQNS3U2bfGcFjXNaV5ffHsZHzfP\"]},\"/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/IContractRegistry.sol\":{\"keccak256\":\"0x3551889a83738b621c29ed66f1ecb6a843cca4217e54c9357198559b9cc92259\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://231a59c8f2665adeda8c7e6930832409c9b991fd27ad84b3a24335e7bf269bbe\",\"dweb:/ipfs/QmeJJbn1EAUbZenruTEdJAnwUn3dxsVNeJvxPe81qKEGqL\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IOwned.sol\":{\"keccak256\":\"0xc60a9d197abc28c1906ed4d18b59caa0242db754a0e1f67af6e6277593530dae\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://a8c6f3e6525a81a5165ccbf04f73f6c389c14b74135d11a7b5f70b1c9bdac75c\",\"dweb:/ipfs/QmaPu4Z7yUPc9sMADmoTZVY6AnyDSYHtNNCx3mm4VkJwhP\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/ITokenHolder.sol\":{\"keccak256\":\"0x9ccb8ab04d0bd874ba7aae5277e60f35c36918922649a0596bf3664ed257bfe2\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://b65e6db19cd244c9f3545695de5fd7573711c49fb306631ddbf0e1d2fa9fb589\",\"dweb:/ipfs/QmZeu5KYVMTbTx7h2BVUq52fpwL9Q44AUfzeVksucDohgf\"]},\"/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IWhitelist.sol\":{\"keccak256\":\"0x356ad553ceeaea04d7cb8f0d6a5663c47dfccb2bd82517348128f032416ee34a\",\"license\":\"SEE LICENSE IN LICENSE\",\"urls\":[\"bzz-raw://9ea3bbb9945144ead2c1392351f2f9f7444af78569f2b95da2e68bb6b919db52\",\"dweb:/ipfs/QmPyUAk44Kj7nJB4tzYqeSXWHyYP51mRNynEmWra9m4eKS\"]}},\"version\":1}",
"bytecode": "0x6080604052348015600f57600080fd5b5060828061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063d260529c14602d575b600080fd5b60336047565b604080519115158252519081900360200190f35b60019056fea26469706673582212201bd4eae8421fd6275338dbc4a9f4ce11231d4088a6f7a718a5101a8e73c0e6e564736f6c634300060c0033",
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063d260529c14602d575b600080fd5b60336047565b604080519115158252519081900360200190f35b60019056fea26469706673582212201bd4eae8421fd6275338dbc4a9f4ce11231d4088a6f7a718a5101a8e73c0e6e564736f6c634300060c0033",
"immutableReferences": {},
"sourceMap": "1012:133:36:-:0;;;;;;;;;;;;;;;;;;;",
"deployedSourceMap": "1012:133:36:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1063:80;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1132:4;1063:80;:::o",
"source": "// SPDX-License-Identifier: SEE LICENSE IN LICENSE\npragma solidity 0.6.12;\nimport \"../BancorNetwork.sol\";\n\ncontract OldConverter {\n uint256 private amount;\n\n constructor(uint256 _amount) public {\n amount = _amount;\n }\n\n function getReturn(IERC20Token _sourceToken, IERC20Token _targetToken, uint256 _amount) external view returns (uint256) {\n _sourceToken;\n _targetToken;\n _amount;\n return (amount);\n }\n}\n\ncontract NewConverter {\n uint256 private amount;\n uint256 private fee;\n\n constructor(uint256 _amount, uint256 _fee) public {\n amount = _amount;\n fee = _fee;\n }\n\n function getReturn(IERC20Token _sourceToken, IERC20Token _targetToken, uint256 _amount) external view returns (uint256, uint256) {\n _sourceToken;\n _targetToken;\n _amount;\n return (amount, fee);\n }\n}\n\ncontract ConverterV27OrLowerWithoutFallback {\n}\n\ncontract ConverterV27OrLowerWithFallback {\n receive() external payable {\n }\n}\n\ncontract ConverterV28OrHigherWithoutFallback {\n function isV28OrHigher() public pure returns (bool) {\n return true;\n }\n}\n\ncontract ConverterV28OrHigherWithFallback {\n function isV28OrHigher() public pure returns (bool) {\n return true;\n }\n\n receive() external payable {\n revert();\n }\n}\n\ncontract TestBancorNetwork is BancorNetwork {\n OldConverter private oldConverter;\n NewConverter private newConverter;\n\n constructor(uint256 _amount, uint256 _fee) public BancorNetwork(IContractRegistry(address(1))) {\n oldConverter = new OldConverter(_amount);\n newConverter = new NewConverter(_amount, _fee);\n }\n\n function isV28OrHigherConverterExternal(IConverter _converter) external view returns (bool) {\n return super.isV28OrHigherConverter(_converter);\n }\n\n function getReturnOld() external view returns (uint256, uint256) {\n return getReturn(IConverter(payable(address(oldConverter))), IERC20Token(0), IERC20Token(0), uint256(0));\n }\n\n function getReturnNew() external view returns (uint256, uint256) {\n return getReturn(IConverter(payable(address(newConverter))), IERC20Token(0), IERC20Token(0), uint256(0));\n }\n}\n",
"sourcePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/helpers/TestBancorNetwork.sol",
"ast": {
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/helpers/TestBancorNetwork.sol",
"exportedSymbols": {
"ConverterV27OrLowerWithFallback": [
19052
],
"ConverterV27OrLowerWithoutFallback": [
19047
],
"ConverterV28OrHigherWithFallback": [
19077
],
"ConverterV28OrHigherWithoutFallback": [
19061
],
"NewConverter": [
19046
],
"OldConverter": [
19001
],
"TestBancorNetwork": [
19188
]
},
"id": 19189,
"license": "SEE LICENSE IN LICENSE",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 18966,
"literals": [
"solidity",
"0.6",
".12"
],
"nodeType": "PragmaDirective",
"src": "51:23:36"
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/BancorNetwork.sol",
"file": "../BancorNetwork.sol",
"id": 18967,
"nodeType": "ImportDirective",
"scope": 19189,
"sourceUnit": 1977,
"src": "75:30:36",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19001,
"linearizedBaseContracts": [
19001
],
"name": "OldConverter",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 18969,
"mutability": "mutable",
"name": "amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19001,
"src": "135:22:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 18968,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "135:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 18978,
"nodeType": "Block",
"src": "200:33:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 18976,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 18974,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18969,
"src": "210:6:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 18975,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18971,
"src": "219:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "210:16:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 18977,
"nodeType": "ExpressionStatement",
"src": "210:16:36"
}
]
},
"documentation": null,
"id": 18979,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 18972,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 18971,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 18979,
"src": "176:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 18970,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "176:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "175:17:36"
},
"returnParameters": {
"id": 18973,
"nodeType": "ParameterList",
"parameters": [],
"src": "200:0:36"
},
"scope": 19001,
"src": "164:69:36",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 18999,
"nodeType": "Block",
"src": "359:93:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 18990,
"name": "_sourceToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18981,
"src": "369:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"id": 18991,
"nodeType": "ExpressionStatement",
"src": "369:12:36"
},
{
"expression": {
"argumentTypes": null,
"id": 18992,
"name": "_targetToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18983,
"src": "391:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"id": 18993,
"nodeType": "ExpressionStatement",
"src": "391:12:36"
},
{
"expression": {
"argumentTypes": null,
"id": 18994,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18985,
"src": "413:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 18995,
"nodeType": "ExpressionStatement",
"src": "413:7:36"
},
{
"expression": {
"argumentTypes": null,
"components": [
{
"argumentTypes": null,
"id": 18996,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18969,
"src": "438:6:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"id": 18997,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "437:8:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 18989,
"id": 18998,
"nodeType": "Return",
"src": "430:15:36"
}
]
},
"documentation": null,
"functionSelector": "1e1401f8",
"id": 19000,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getReturn",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 18986,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 18981,
"mutability": "mutable",
"name": "_sourceToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19000,
"src": "258:24:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 18980,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "258:11:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 18983,
"mutability": "mutable",
"name": "_targetToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19000,
"src": "284:24:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 18982,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "284:11:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 18985,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19000,
"src": "310:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 18984,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "310:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "257:69:36"
},
"returnParameters": {
"id": 18989,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 18988,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19000,
"src": "350:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 18987,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "350:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "349:9:36"
},
"scope": 19001,
"src": "239:213:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "107:347:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19046,
"linearizedBaseContracts": [
19046
],
"name": "NewConverter",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 19003,
"mutability": "mutable",
"name": "amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19046,
"src": "484:22:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19002,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "484:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 19005,
"mutability": "mutable",
"name": "fee",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19046,
"src": "512:19:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19004,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "512:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 19020,
"nodeType": "Block",
"src": "588:53:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19014,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19012,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19003,
"src": "598:6:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 19013,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19007,
"src": "607:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "598:16:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 19015,
"nodeType": "ExpressionStatement",
"src": "598:16:36"
},
{
"expression": {
"argumentTypes": null,
"id": 19018,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19016,
"name": "fee",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19005,
"src": "624:3:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 19017,
"name": "_fee",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19009,
"src": "630:4:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "624:10:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 19019,
"nodeType": "ExpressionStatement",
"src": "624:10:36"
}
]
},
"documentation": null,
"id": 19021,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19010,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19007,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19021,
"src": "550:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19006,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "550:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19009,
"mutability": "mutable",
"name": "_fee",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19021,
"src": "567:12:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19008,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "567:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "549:31:36"
},
"returnParameters": {
"id": 19011,
"nodeType": "ParameterList",
"parameters": [],
"src": "588:0:36"
},
"scope": 19046,
"src": "538:103:36",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 19044,
"nodeType": "Block",
"src": "776:98:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19034,
"name": "_sourceToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19023,
"src": "786:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"id": 19035,
"nodeType": "ExpressionStatement",
"src": "786:12:36"
},
{
"expression": {
"argumentTypes": null,
"id": 19036,
"name": "_targetToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19025,
"src": "808:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"id": 19037,
"nodeType": "ExpressionStatement",
"src": "808:12:36"
},
{
"expression": {
"argumentTypes": null,
"id": 19038,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19027,
"src": "830:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 19039,
"nodeType": "ExpressionStatement",
"src": "830:7:36"
},
{
"expression": {
"argumentTypes": null,
"components": [
{
"argumentTypes": null,
"id": 19040,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19003,
"src": "855:6:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 19041,
"name": "fee",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19005,
"src": "863:3:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"id": 19042,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "854:13:36",
"typeDescriptions": {
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
"typeString": "tuple(uint256,uint256)"
}
},
"functionReturnParameters": 19033,
"id": 19043,
"nodeType": "Return",
"src": "847:20:36"
}
]
},
"documentation": null,
"functionSelector": "1e1401f8",
"id": 19045,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getReturn",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19028,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19023,
"mutability": "mutable",
"name": "_sourceToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "666:24:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 19022,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "666:11:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19025,
"mutability": "mutable",
"name": "_targetToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "692:24:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 19024,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "692:11:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19027,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "718:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19026,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "718:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "665:69:36"
},
"returnParameters": {
"id": 19033,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19030,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "758:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19029,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "758:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19032,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "767:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19031,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "767:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "757:18:36"
},
"scope": 19046,
"src": "647:227:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "456:420:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19047,
"linearizedBaseContracts": [
19047
],
"name": "ConverterV27OrLowerWithoutFallback",
"nodeType": "ContractDefinition",
"nodes": [],
"scope": 19189,
"src": "878:47:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19052,
"linearizedBaseContracts": [
19052
],
"name": "ConverterV27OrLowerWithFallback",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 19050,
"nodeType": "Block",
"src": "1001:7:36",
"statements": []
},
"documentation": null,
"id": 19051,
"implemented": true,
"kind": "receive",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19048,
"nodeType": "ParameterList",
"parameters": [],
"src": "981:2:36"
},
"returnParameters": {
"id": 19049,
"nodeType": "ParameterList",
"parameters": [],
"src": "1001:0:36"
},
"scope": 19052,
"src": "974:34:36",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "927:83:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19061,
"linearizedBaseContracts": [
19061
],
"name": "ConverterV28OrHigherWithoutFallback",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 19059,
"nodeType": "Block",
"src": "1115:28:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 19057,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1132:4:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 19056,
"id": 19058,
"nodeType": "Return",
"src": "1125:11:36"
}
]
},
"documentation": null,
"functionSelector": "d260529c",
"id": 19060,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isV28OrHigher",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19053,
"nodeType": "ParameterList",
"parameters": [],
"src": "1085:2:36"
},
"returnParameters": {
"id": 19056,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19055,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19060,
"src": "1109:4:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 19054,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1109:4:36",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1108:6:36"
},
"scope": 19061,
"src": "1063:80:36",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
}
],
"scope": 19189,
"src": "1012:133:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19077,
"linearizedBaseContracts": [
19077
],
"name": "ConverterV28OrHigherWithFallback",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 19068,
"nodeType": "Block",
"src": "1247:28:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 19066,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1264:4:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 19065,
"id": 19067,
"nodeType": "Return",
"src": "1257:11:36"
}
]
},
"documentation": null,
"functionSelector": "d260529c",
"id": 19069,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isV28OrHigher",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19062,
"nodeType": "ParameterList",
"parameters": [],
"src": "1217:2:36"
},
"returnParameters": {
"id": 19065,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19064,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19069,
"src": "1241:4:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 19063,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1241:4:36",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1240:6:36"
},
"scope": 19077,
"src": "1195:80:36",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 19075,
"nodeType": "Block",
"src": "1308:25:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 19072,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
-19,
-19
],
"referencedDeclaration": -19,
"src": "1318:6:36",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$__$returns$__$",
"typeString": "function () pure"
}
},
"id": 19073,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1318:8:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19074,
"nodeType": "ExpressionStatement",
"src": "1318:8:36"
}
]
},
"documentation": null,
"id": 19076,
"implemented": true,
"kind": "receive",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19070,
"nodeType": "ParameterList",
"parameters": [],
"src": "1288:2:36"
},
"returnParameters": {
"id": 19071,
"nodeType": "ParameterList",
"parameters": [],
"src": "1308:0:36"
},
"scope": 19077,
"src": "1281:52:36",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "1147:188:36"
},
{
"abstract": false,
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 19078,
"name": "BancorNetwork",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1976,
"src": "1367:13:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_BancorNetwork_$1976",
"typeString": "contract BancorNetwork"
}
},
"id": 19079,
"nodeType": "InheritanceSpecifier",
"src": "1367:13:36"
}
],
"contractDependencies": [
1976,
19001,
19046,
21719,
21818,
22242,
22526,
22575,
22661,
22847,
22907
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19188,
"linearizedBaseContracts": [
19188,
1976,
22242,
21719,
22575,
22661,
21818,
22526,
22907,
22847
],
"name": "TestBancorNetwork",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 19081,
"mutability": "mutable",
"name": "oldConverter",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19188,
"src": "1387:33:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
},
"typeName": {
"contractScope": null,
"id": 19080,
"name": "OldConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19001,
"src": "1387:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 19083,
"mutability": "mutable",
"name": "newConverter",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19188,
"src": "1426:33:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
},
"typeName": {
"contractScope": null,
"id": 19082,
"name": "NewConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19046,
"src": "1426:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 19113,
"nodeType": "Block",
"src": "1561:113:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19103,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19098,
"name": "oldConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19081,
"src": "1571:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19101,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19085,
"src": "1603:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 19100,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "NewExpression",
"src": "1586:16:36",
"typeDescriptions": {
"typeIdentifier": "t_function_creation_nonpayable$_t_uint256_$returns$_t_contract$_OldConverter_$19001_$",
"typeString": "function (uint256) returns (contract OldConverter)"
},
"typeName": {
"contractScope": null,
"id": 19099,
"name": "OldConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19001,
"src": "1590:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
}
},
"id": 19102,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1586:25:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
},
"src": "1571:40:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
},
"id": 19104,
"nodeType": "ExpressionStatement",
"src": "1571:40:36"
},
{
"expression": {
"argumentTypes": null,
"id": 19111,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19105,
"name": "newConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19083,
"src": "1621:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19108,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19085,
"src": "1653:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 19109,
"name": "_fee",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19087,
"src": "1662:4:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 19107,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "NewExpression",
"src": "1636:16:36",
"typeDescriptions": {
"typeIdentifier": "t_function_creation_nonpayable$_t_uint256_$_t_uint256_$returns$_t_contract$_NewConverter_$19046_$",
"typeString": "function (uint256,uint256) returns (contract NewConverter)"
},
"typeName": {
"contractScope": null,
"id": 19106,
"name": "NewConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19046,
"src": "1640:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
}
},
"id": 19110,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1636:31:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
},
"src": "1621:46:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
},
"id": 19112,
"nodeType": "ExpressionStatement",
"src": "1621:46:36"
}
]
},
"documentation": null,
"id": 19114,
"implemented": true,
"kind": "constructor",
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "31",
"id": 19093,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1556:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
}
],
"id": 19092,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1548:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 19091,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1548:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19094,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1548:10:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 19090,
"name": "IContractRegistry",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 22831,
"src": "1530:17:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IContractRegistry_$22831_$",
"typeString": "type(contract IContractRegistry)"
}
},
"id": 19095,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1530:29:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IContractRegistry_$22831",
"typeString": "contract IContractRegistry"
}
}
],
"id": 19096,
"modifierName": {
"argumentTypes": null,
"id": 19089,
"name": "BancorNetwork",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1976,
"src": "1516:13:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_BancorNetwork_$1976_$",
"typeString": "type(contract BancorNetwork)"
}
},
"nodeType": "ModifierInvocation",
"src": "1516:44:36"
}
],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19088,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19085,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19114,
"src": "1478:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19084,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1478:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19087,
"mutability": "mutable",
"name": "_fee",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19114,
"src": "1495:12:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19086,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1495:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1477:31:36"
},
"returnParameters": {
"id": 19097,
"nodeType": "ParameterList",
"parameters": [],
"src": "1561:0:36"
},
"scope": 19188,
"src": "1466:208:36",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 19126,
"nodeType": "Block",
"src": "1772:64:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19123,
"name": "_converter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19116,
"src": "1818:10:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
],
"expression": {
"argumentTypes": null,
"id": 19121,
"name": "super",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -25,
"src": "1789:5:36",
"typeDescriptions": {
"typeIdentifier": "t_super$_TestBancorNetwork_$19188",
"typeString": "contract super TestBancorNetwork"
}
},
"id": 19122,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "isV28OrHigherConverter",
"nodeType": "MemberAccess",
"referencedDeclaration": 1719,
"src": "1789:28:36",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_contract$_IConverter_$13340_$returns$_t_bool_$",
"typeString": "function (contract IConverter) view returns (bool)"
}
},
"id": 19124,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1789:40:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 19120,
"id": 19125,
"nodeType": "Return",
"src": "1782:47:36"
}
]
},
"documentation": null,
"functionSelector": "03613f39",
"id": 19127,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isV28OrHigherConverterExternal",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19117,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19116,
"mutability": "mutable",
"name": "_converter",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19127,
"src": "1720:21:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
},
"typeName": {
"contractScope": null,
"id": 19115,
"name": "IConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 13340,
"src": "1720:10:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1719:23:36"
},
"returnParameters": {
"id": 19120,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19119,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19127,
"src": "1766:4:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 19118,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1766:4:36",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1765:6:36"
},
"scope": 19188,
"src": "1680:156:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 19156,
"nodeType": "Block",
"src": "1907:121:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19140,
"name": "oldConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19081,
"src": "1961:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
],
"id": 19139,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1953:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 19138,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1953:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19141,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1953:21:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 19137,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1945:8:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_payable_$",
"typeString": "type(address payable)"
},
"typeName": {
"id": 19136,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1945:8:36",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19142,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1945:30:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 19135,
"name": "IConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 13340,
"src": "1934:10:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IConverter_$13340_$",
"typeString": "type(contract IConverter)"
}
},
"id": 19143,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1934:42:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19145,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1990:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19144,
"name": "IERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21127,
"src": "1978:11:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IERC20Token_$21127_$",
"typeString": "type(contract IERC20Token)"
}
},
"id": 19146,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1978:14:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19148,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2006:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19147,
"name": "IERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21127,
"src": "1994:11:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IERC20Token_$21127_$",
"typeString": "type(contract IERC20Token)"
}
},
"id": 19149,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1994:14:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19152,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2018:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19151,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2010:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint256_$",
"typeString": "type(uint256)"
},
"typeName": {
"id": 19150,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2010:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19153,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2010:10:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
},
{
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
{
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 19134,
"name": "getReturn",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1664,
"src": "1924:9:36",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_contract$_IConverter_$13340_$_t_contract$_IERC20Token_$21127_$_t_contract$_IERC20Token_$21127_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
"typeString": "function (contract IConverter,contract IERC20Token,contract IERC20Token,uint256) view returns (uint256,uint256)"
}
},
"id": 19154,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1924:97:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
"typeString": "tuple(uint256,uint256)"
}
},
"functionReturnParameters": 19133,
"id": 19155,
"nodeType": "Return",
"src": "1917:104:36"
}
]
},
"documentation": null,
"functionSelector": "98e95740",
"id": 19157,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getReturnOld",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19128,
"nodeType": "ParameterList",
"parameters": [],
"src": "1863:2:36"
},
"returnParameters": {
"id": 19133,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19130,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19157,
"src": "1889:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19129,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1889:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19132,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19157,
"src": "1898:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19131,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1898:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1888:18:36"
},
"scope": 19188,
"src": "1842:186:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 19186,
"nodeType": "Block",
"src": "2099:121:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19170,
"name": "newConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19083,
"src": "2153:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
],
"id": 19169,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2145:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 19168,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2145:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19171,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2145:21:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 19167,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2137:8:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_payable_$",
"typeString": "type(address payable)"
},
"typeName": {
"id": 19166,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2137:8:36",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19172,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2137:30:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 19165,
"name": "IConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 13340,
"src": "2126:10:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IConverter_$13340_$",
"typeString": "type(contract IConverter)"
}
},
"id": 19173,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2126:42:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19175,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2182:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19174,
"name": "IERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21127,
"src": "2170:11:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IERC20Token_$21127_$",
"typeString": "type(contract IERC20Token)"
}
},
"id": 19176,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2170:14:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19178,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2198:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19177,
"name": "IERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21127,
"src": "2186:11:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IERC20Token_$21127_$",
"typeString": "type(contract IERC20Token)"
}
},
"id": 19179,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2186:14:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19182,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2210:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19181,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2202:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint256_$",
"typeString": "type(uint256)"
},
"typeName": {
"id": 19180,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2202:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19183,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2202:10:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
},
{
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
{
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 19164,
"name": "getReturn",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1664,
"src": "2116:9:36",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_contract$_IConverter_$13340_$_t_contract$_IERC20Token_$21127_$_t_contract$_IERC20Token_$21127_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
"typeString": "function (contract IConverter,contract IERC20Token,contract IERC20Token,uint256) view returns (uint256,uint256)"
}
},
"id": 19184,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2116:97:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
"typeString": "tuple(uint256,uint256)"
}
},
"functionReturnParameters": 19163,
"id": 19185,
"nodeType": "Return",
"src": "2109:104:36"
}
]
},
"documentation": null,
"functionSelector": "699e7546",
"id": 19187,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getReturnNew",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19158,
"nodeType": "ParameterList",
"parameters": [],
"src": "2055:2:36"
},
"returnParameters": {
"id": 19163,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19160,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19187,
"src": "2081:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19159,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2081:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19162,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19187,
"src": "2090:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19161,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2090:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2080:18:36"
},
"scope": 19188,
"src": "2034:186:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "1337:885:36"
}
],
"src": "51:2172:36"
},
"legacyAST": {
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/helpers/TestBancorNetwork.sol",
"exportedSymbols": {
"ConverterV27OrLowerWithFallback": [
19052
],
"ConverterV27OrLowerWithoutFallback": [
19047
],
"ConverterV28OrHigherWithFallback": [
19077
],
"ConverterV28OrHigherWithoutFallback": [
19061
],
"NewConverter": [
19046
],
"OldConverter": [
19001
],
"TestBancorNetwork": [
19188
]
},
"id": 19189,
"license": "SEE LICENSE IN LICENSE",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 18966,
"literals": [
"solidity",
"0.6",
".12"
],
"nodeType": "PragmaDirective",
"src": "51:23:36"
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/BancorNetwork.sol",
"file": "../BancorNetwork.sol",
"id": 18967,
"nodeType": "ImportDirective",
"scope": 19189,
"sourceUnit": 1977,
"src": "75:30:36",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19001,
"linearizedBaseContracts": [
19001
],
"name": "OldConverter",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 18969,
"mutability": "mutable",
"name": "amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19001,
"src": "135:22:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 18968,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "135:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 18978,
"nodeType": "Block",
"src": "200:33:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 18976,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 18974,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18969,
"src": "210:6:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 18975,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18971,
"src": "219:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "210:16:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 18977,
"nodeType": "ExpressionStatement",
"src": "210:16:36"
}
]
},
"documentation": null,
"id": 18979,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 18972,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 18971,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 18979,
"src": "176:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 18970,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "176:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "175:17:36"
},
"returnParameters": {
"id": 18973,
"nodeType": "ParameterList",
"parameters": [],
"src": "200:0:36"
},
"scope": 19001,
"src": "164:69:36",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 18999,
"nodeType": "Block",
"src": "359:93:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 18990,
"name": "_sourceToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18981,
"src": "369:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"id": 18991,
"nodeType": "ExpressionStatement",
"src": "369:12:36"
},
{
"expression": {
"argumentTypes": null,
"id": 18992,
"name": "_targetToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18983,
"src": "391:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"id": 18993,
"nodeType": "ExpressionStatement",
"src": "391:12:36"
},
{
"expression": {
"argumentTypes": null,
"id": 18994,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18985,
"src": "413:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 18995,
"nodeType": "ExpressionStatement",
"src": "413:7:36"
},
{
"expression": {
"argumentTypes": null,
"components": [
{
"argumentTypes": null,
"id": 18996,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18969,
"src": "438:6:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"id": 18997,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "437:8:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 18989,
"id": 18998,
"nodeType": "Return",
"src": "430:15:36"
}
]
},
"documentation": null,
"functionSelector": "1e1401f8",
"id": 19000,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getReturn",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 18986,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 18981,
"mutability": "mutable",
"name": "_sourceToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19000,
"src": "258:24:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 18980,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "258:11:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 18983,
"mutability": "mutable",
"name": "_targetToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19000,
"src": "284:24:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 18982,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "284:11:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 18985,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19000,
"src": "310:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 18984,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "310:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "257:69:36"
},
"returnParameters": {
"id": 18989,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 18988,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19000,
"src": "350:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 18987,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "350:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "349:9:36"
},
"scope": 19001,
"src": "239:213:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "107:347:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19046,
"linearizedBaseContracts": [
19046
],
"name": "NewConverter",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 19003,
"mutability": "mutable",
"name": "amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19046,
"src": "484:22:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19002,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "484:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 19005,
"mutability": "mutable",
"name": "fee",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19046,
"src": "512:19:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19004,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "512:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 19020,
"nodeType": "Block",
"src": "588:53:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19014,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19012,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19003,
"src": "598:6:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 19013,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19007,
"src": "607:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "598:16:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 19015,
"nodeType": "ExpressionStatement",
"src": "598:16:36"
},
{
"expression": {
"argumentTypes": null,
"id": 19018,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19016,
"name": "fee",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19005,
"src": "624:3:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 19017,
"name": "_fee",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19009,
"src": "630:4:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "624:10:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 19019,
"nodeType": "ExpressionStatement",
"src": "624:10:36"
}
]
},
"documentation": null,
"id": 19021,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19010,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19007,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19021,
"src": "550:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19006,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "550:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19009,
"mutability": "mutable",
"name": "_fee",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19021,
"src": "567:12:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19008,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "567:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "549:31:36"
},
"returnParameters": {
"id": 19011,
"nodeType": "ParameterList",
"parameters": [],
"src": "588:0:36"
},
"scope": 19046,
"src": "538:103:36",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 19044,
"nodeType": "Block",
"src": "776:98:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19034,
"name": "_sourceToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19023,
"src": "786:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"id": 19035,
"nodeType": "ExpressionStatement",
"src": "786:12:36"
},
{
"expression": {
"argumentTypes": null,
"id": 19036,
"name": "_targetToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19025,
"src": "808:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"id": 19037,
"nodeType": "ExpressionStatement",
"src": "808:12:36"
},
{
"expression": {
"argumentTypes": null,
"id": 19038,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19027,
"src": "830:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 19039,
"nodeType": "ExpressionStatement",
"src": "830:7:36"
},
{
"expression": {
"argumentTypes": null,
"components": [
{
"argumentTypes": null,
"id": 19040,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19003,
"src": "855:6:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 19041,
"name": "fee",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19005,
"src": "863:3:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"id": 19042,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "854:13:36",
"typeDescriptions": {
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
"typeString": "tuple(uint256,uint256)"
}
},
"functionReturnParameters": 19033,
"id": 19043,
"nodeType": "Return",
"src": "847:20:36"
}
]
},
"documentation": null,
"functionSelector": "1e1401f8",
"id": 19045,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getReturn",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19028,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19023,
"mutability": "mutable",
"name": "_sourceToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "666:24:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 19022,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "666:11:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19025,
"mutability": "mutable",
"name": "_targetToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "692:24:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 19024,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "692:11:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19027,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "718:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19026,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "718:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "665:69:36"
},
"returnParameters": {
"id": 19033,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19030,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "758:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19029,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "758:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19032,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19045,
"src": "767:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19031,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "767:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "757:18:36"
},
"scope": 19046,
"src": "647:227:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "456:420:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19047,
"linearizedBaseContracts": [
19047
],
"name": "ConverterV27OrLowerWithoutFallback",
"nodeType": "ContractDefinition",
"nodes": [],
"scope": 19189,
"src": "878:47:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19052,
"linearizedBaseContracts": [
19052
],
"name": "ConverterV27OrLowerWithFallback",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 19050,
"nodeType": "Block",
"src": "1001:7:36",
"statements": []
},
"documentation": null,
"id": 19051,
"implemented": true,
"kind": "receive",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19048,
"nodeType": "ParameterList",
"parameters": [],
"src": "981:2:36"
},
"returnParameters": {
"id": 19049,
"nodeType": "ParameterList",
"parameters": [],
"src": "1001:0:36"
},
"scope": 19052,
"src": "974:34:36",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "927:83:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19061,
"linearizedBaseContracts": [
19061
],
"name": "ConverterV28OrHigherWithoutFallback",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 19059,
"nodeType": "Block",
"src": "1115:28:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 19057,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1132:4:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 19056,
"id": 19058,
"nodeType": "Return",
"src": "1125:11:36"
}
]
},
"documentation": null,
"functionSelector": "d260529c",
"id": 19060,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isV28OrHigher",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19053,
"nodeType": "ParameterList",
"parameters": [],
"src": "1085:2:36"
},
"returnParameters": {
"id": 19056,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19055,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19060,
"src": "1109:4:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 19054,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1109:4:36",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1108:6:36"
},
"scope": 19061,
"src": "1063:80:36",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
}
],
"scope": 19189,
"src": "1012:133:36"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19077,
"linearizedBaseContracts": [
19077
],
"name": "ConverterV28OrHigherWithFallback",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 19068,
"nodeType": "Block",
"src": "1247:28:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 19066,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1264:4:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 19065,
"id": 19067,
"nodeType": "Return",
"src": "1257:11:36"
}
]
},
"documentation": null,
"functionSelector": "d260529c",
"id": 19069,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isV28OrHigher",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19062,
"nodeType": "ParameterList",
"parameters": [],
"src": "1217:2:36"
},
"returnParameters": {
"id": 19065,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19064,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19069,
"src": "1241:4:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 19063,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1241:4:36",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1240:6:36"
},
"scope": 19077,
"src": "1195:80:36",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 19075,
"nodeType": "Block",
"src": "1308:25:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 19072,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
-19,
-19
],
"referencedDeclaration": -19,
"src": "1318:6:36",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$__$returns$__$",
"typeString": "function () pure"
}
},
"id": 19073,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1318:8:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19074,
"nodeType": "ExpressionStatement",
"src": "1318:8:36"
}
]
},
"documentation": null,
"id": 19076,
"implemented": true,
"kind": "receive",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19070,
"nodeType": "ParameterList",
"parameters": [],
"src": "1288:2:36"
},
"returnParameters": {
"id": 19071,
"nodeType": "ParameterList",
"parameters": [],
"src": "1308:0:36"
},
"scope": 19077,
"src": "1281:52:36",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "1147:188:36"
},
{
"abstract": false,
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 19078,
"name": "BancorNetwork",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1976,
"src": "1367:13:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_BancorNetwork_$1976",
"typeString": "contract BancorNetwork"
}
},
"id": 19079,
"nodeType": "InheritanceSpecifier",
"src": "1367:13:36"
}
],
"contractDependencies": [
1976,
19001,
19046,
21719,
21818,
22242,
22526,
22575,
22661,
22847,
22907
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 19188,
"linearizedBaseContracts": [
19188,
1976,
22242,
21719,
22575,
22661,
21818,
22526,
22907,
22847
],
"name": "TestBancorNetwork",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 19081,
"mutability": "mutable",
"name": "oldConverter",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19188,
"src": "1387:33:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
},
"typeName": {
"contractScope": null,
"id": 19080,
"name": "OldConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19001,
"src": "1387:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 19083,
"mutability": "mutable",
"name": "newConverter",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19188,
"src": "1426:33:36",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
},
"typeName": {
"contractScope": null,
"id": 19082,
"name": "NewConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19046,
"src": "1426:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 19113,
"nodeType": "Block",
"src": "1561:113:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19103,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19098,
"name": "oldConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19081,
"src": "1571:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19101,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19085,
"src": "1603:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 19100,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "NewExpression",
"src": "1586:16:36",
"typeDescriptions": {
"typeIdentifier": "t_function_creation_nonpayable$_t_uint256_$returns$_t_contract$_OldConverter_$19001_$",
"typeString": "function (uint256) returns (contract OldConverter)"
},
"typeName": {
"contractScope": null,
"id": 19099,
"name": "OldConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19001,
"src": "1590:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
}
},
"id": 19102,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1586:25:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
},
"src": "1571:40:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
},
"id": 19104,
"nodeType": "ExpressionStatement",
"src": "1571:40:36"
},
{
"expression": {
"argumentTypes": null,
"id": 19111,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19105,
"name": "newConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19083,
"src": "1621:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19108,
"name": "_amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19085,
"src": "1653:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 19109,
"name": "_fee",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19087,
"src": "1662:4:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 19107,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "NewExpression",
"src": "1636:16:36",
"typeDescriptions": {
"typeIdentifier": "t_function_creation_nonpayable$_t_uint256_$_t_uint256_$returns$_t_contract$_NewConverter_$19046_$",
"typeString": "function (uint256,uint256) returns (contract NewConverter)"
},
"typeName": {
"contractScope": null,
"id": 19106,
"name": "NewConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19046,
"src": "1640:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
}
},
"id": 19110,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1636:31:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
},
"src": "1621:46:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
},
"id": 19112,
"nodeType": "ExpressionStatement",
"src": "1621:46:36"
}
]
},
"documentation": null,
"id": 19114,
"implemented": true,
"kind": "constructor",
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "31",
"id": 19093,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1556:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
}
],
"id": 19092,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1548:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 19091,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1548:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19094,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1548:10:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 19090,
"name": "IContractRegistry",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 22831,
"src": "1530:17:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IContractRegistry_$22831_$",
"typeString": "type(contract IContractRegistry)"
}
},
"id": 19095,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1530:29:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IContractRegistry_$22831",
"typeString": "contract IContractRegistry"
}
}
],
"id": 19096,
"modifierName": {
"argumentTypes": null,
"id": 19089,
"name": "BancorNetwork",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1976,
"src": "1516:13:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_BancorNetwork_$1976_$",
"typeString": "type(contract BancorNetwork)"
}
},
"nodeType": "ModifierInvocation",
"src": "1516:44:36"
}
],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19088,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19085,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19114,
"src": "1478:15:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19084,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1478:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19087,
"mutability": "mutable",
"name": "_fee",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19114,
"src": "1495:12:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19086,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1495:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1477:31:36"
},
"returnParameters": {
"id": 19097,
"nodeType": "ParameterList",
"parameters": [],
"src": "1561:0:36"
},
"scope": 19188,
"src": "1466:208:36",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 19126,
"nodeType": "Block",
"src": "1772:64:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19123,
"name": "_converter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19116,
"src": "1818:10:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
],
"expression": {
"argumentTypes": null,
"id": 19121,
"name": "super",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -25,
"src": "1789:5:36",
"typeDescriptions": {
"typeIdentifier": "t_super$_TestBancorNetwork_$19188",
"typeString": "contract super TestBancorNetwork"
}
},
"id": 19122,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "isV28OrHigherConverter",
"nodeType": "MemberAccess",
"referencedDeclaration": 1719,
"src": "1789:28:36",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_contract$_IConverter_$13340_$returns$_t_bool_$",
"typeString": "function (contract IConverter) view returns (bool)"
}
},
"id": 19124,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1789:40:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 19120,
"id": 19125,
"nodeType": "Return",
"src": "1782:47:36"
}
]
},
"documentation": null,
"functionSelector": "03613f39",
"id": 19127,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isV28OrHigherConverterExternal",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19117,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19116,
"mutability": "mutable",
"name": "_converter",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19127,
"src": "1720:21:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
},
"typeName": {
"contractScope": null,
"id": 19115,
"name": "IConverter",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 13340,
"src": "1720:10:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1719:23:36"
},
"returnParameters": {
"id": 19120,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19119,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19127,
"src": "1766:4:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 19118,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1766:4:36",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1765:6:36"
},
"scope": 19188,
"src": "1680:156:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 19156,
"nodeType": "Block",
"src": "1907:121:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19140,
"name": "oldConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19081,
"src": "1961:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_OldConverter_$19001",
"typeString": "contract OldConverter"
}
],
"id": 19139,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1953:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 19138,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1953:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19141,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1953:21:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 19137,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1945:8:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_payable_$",
"typeString": "type(address payable)"
},
"typeName": {
"id": 19136,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1945:8:36",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19142,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1945:30:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 19135,
"name": "IConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 13340,
"src": "1934:10:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IConverter_$13340_$",
"typeString": "type(contract IConverter)"
}
},
"id": 19143,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1934:42:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19145,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1990:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19144,
"name": "IERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21127,
"src": "1978:11:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IERC20Token_$21127_$",
"typeString": "type(contract IERC20Token)"
}
},
"id": 19146,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1978:14:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19148,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2006:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19147,
"name": "IERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21127,
"src": "1994:11:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IERC20Token_$21127_$",
"typeString": "type(contract IERC20Token)"
}
},
"id": 19149,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1994:14:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19152,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2018:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19151,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2010:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint256_$",
"typeString": "type(uint256)"
},
"typeName": {
"id": 19150,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2010:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19153,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2010:10:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
},
{
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
{
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 19134,
"name": "getReturn",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1664,
"src": "1924:9:36",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_contract$_IConverter_$13340_$_t_contract$_IERC20Token_$21127_$_t_contract$_IERC20Token_$21127_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
"typeString": "function (contract IConverter,contract IERC20Token,contract IERC20Token,uint256) view returns (uint256,uint256)"
}
},
"id": 19154,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1924:97:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
"typeString": "tuple(uint256,uint256)"
}
},
"functionReturnParameters": 19133,
"id": 19155,
"nodeType": "Return",
"src": "1917:104:36"
}
]
},
"documentation": null,
"functionSelector": "98e95740",
"id": 19157,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getReturnOld",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19128,
"nodeType": "ParameterList",
"parameters": [],
"src": "1863:2:36"
},
"returnParameters": {
"id": 19133,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19130,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19157,
"src": "1889:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19129,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1889:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19132,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19157,
"src": "1898:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19131,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1898:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1888:18:36"
},
"scope": 19188,
"src": "1842:186:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 19186,
"nodeType": "Block",
"src": "2099:121:36",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19170,
"name": "newConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19083,
"src": "2153:12:36",
"typeDescriptions": {
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_NewConverter_$19046",
"typeString": "contract NewConverter"
}
],
"id": 19169,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2145:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 19168,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2145:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19171,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2145:21:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 19167,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2137:8:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_payable_$",
"typeString": "type(address payable)"
},
"typeName": {
"id": 19166,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2137:8:36",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19172,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2137:30:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 19165,
"name": "IConverter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 13340,
"src": "2126:10:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IConverter_$13340_$",
"typeString": "type(contract IConverter)"
}
},
"id": 19173,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2126:42:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19175,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2182:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19174,
"name": "IERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21127,
"src": "2170:11:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IERC20Token_$21127_$",
"typeString": "type(contract IERC20Token)"
}
},
"id": 19176,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2170:14:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19178,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2198:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19177,
"name": "IERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21127,
"src": "2186:11:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IERC20Token_$21127_$",
"typeString": "type(contract IERC20Token)"
}
},
"id": 19179,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2186:14:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 19182,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2210:1:36",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 19181,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2202:7:36",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint256_$",
"typeString": "type(uint256)"
},
"typeName": {
"id": 19180,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2202:7:36",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
}
},
"id": 19183,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2202:10:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IConverter_$13340",
"typeString": "contract IConverter"
},
{
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
{
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 19164,
"name": "getReturn",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1664,
"src": "2116:9:36",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_contract$_IConverter_$13340_$_t_contract$_IERC20Token_$21127_$_t_contract$_IERC20Token_$21127_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
"typeString": "function (contract IConverter,contract IERC20Token,contract IERC20Token,uint256) view returns (uint256,uint256)"
}
},
"id": 19184,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2116:97:36",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
"typeString": "tuple(uint256,uint256)"
}
},
"functionReturnParameters": 19163,
"id": 19185,
"nodeType": "Return",
"src": "2109:104:36"
}
]
},
"documentation": null,
"functionSelector": "699e7546",
"id": 19187,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getReturnNew",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 19158,
"nodeType": "ParameterList",
"parameters": [],
"src": "2055:2:36"
},
"returnParameters": {
"id": 19163,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 19160,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19187,
"src": "2081:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19159,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2081:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 19162,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 19187,
"src": "2090:7:36",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19161,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2090:7:36",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2080:18:36"
},
"scope": 19188,
"src": "2034:186:36",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 19189,
"src": "1337:885:36"
}
],
"src": "51:2172:36"
},
"compiler": {
"name": "solc",
"version": "0.6.12+commit.27d51765.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.2.3",
"updatedAt": "2020-10-20T08:24:47.798Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}