{
  "contractName": "VaultRecoverable",
  "abi": [
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "vault",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "token",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "amount",
          "type": "uint256"
        }
      ],
      "name": "RecoverToVault",
      "type": "event"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_token",
          "type": "address"
        }
      ],
      "name": "transferToVault",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "token",
          "type": "address"
        }
      ],
      "name": "allowRecoverability",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getRecoveryVault",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "metadata": "",
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "/*\n * SPDX-License-Identitifer:    MIT\n */\n\npragma solidity ^0.4.24;\n\nimport \"../lib/token/ERC20.sol\";\nimport \"./EtherTokenConstant.sol\";\nimport \"./IsContract.sol\";\nimport \"./IVaultRecoverable.sol\";\nimport \"./SafeERC20.sol\";\n\n\ncontract VaultRecoverable is IVaultRecoverable, EtherTokenConstant, IsContract {\n    using SafeERC20 for ERC20;\n\n    string private constant ERROR_DISALLOWED = \"RECOVER_DISALLOWED\";\n    string private constant ERROR_VAULT_NOT_CONTRACT = \"RECOVER_VAULT_NOT_CONTRACT\";\n    string private constant ERROR_TOKEN_TRANSFER_FAILED = \"RECOVER_TOKEN_TRANSFER_FAILED\";\n\n    /**\n     * @notice Send funds to recovery Vault. This contract should never receive funds,\n     *         but in case it does, this function allows one to recover them.\n     * @param _token Token balance to be sent to recovery vault.\n     */\n    function transferToVault(address _token) external {\n        require(allowRecoverability(_token), ERROR_DISALLOWED);\n        address vault = getRecoveryVault();\n        require(isContract(vault), ERROR_VAULT_NOT_CONTRACT);\n\n        uint256 balance;\n        if (_token == ETH) {\n            balance = address(this).balance;\n            vault.transfer(balance);\n        } else {\n            ERC20 token = ERC20(_token);\n            balance = token.staticBalanceOf(this);\n            require(token.safeTransfer(vault, balance), ERROR_TOKEN_TRANSFER_FAILED);\n        }\n\n        emit RecoverToVault(vault, _token, balance);\n    }\n\n    /**\n    * @dev By default deriving from AragonApp makes it recoverable\n    * @param token Token address that would be recovered\n    * @return bool whether the app allows the recovery\n    */\n    function allowRecoverability(address token) public view returns (bool) {\n        return true;\n    }\n\n    // Cast non-implemented interface to be public so we can use it internally\n    function getRecoveryVault() public view returns (address);\n}\n",
  "sourcePath": "@aragon/os/contracts/common/VaultRecoverable.sol",
  "ast": {
    "absolutePath": "@aragon/os/contracts/common/VaultRecoverable.sol",
    "exportedSymbols": {
      "VaultRecoverable": [
        7053
      ]
    },
    "id": 7054,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6939,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:38"
      },
      {
        "absolutePath": "@aragon/os/contracts/lib/token/ERC20.sol",
        "file": "../lib/token/ERC20.sol",
        "id": 6940,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 9926,
        "src": "70:32:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/common/EtherTokenConstant.sol",
        "file": "./EtherTokenConstant.sol",
        "id": 6941,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 6294,
        "src": "103:34:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/common/IsContract.sol",
        "file": "./IsContract.sol",
        "id": 6942,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 6470,
        "src": "138:26:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/common/IVaultRecoverable.sol",
        "file": "./IVaultRecoverable.sol",
        "id": 6943,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 6344,
        "src": "165:33:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/common/SafeERC20.sol",
        "file": "./SafeERC20.sol",
        "id": 6944,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 6785,
        "src": "199:25:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 6945,
              "name": "IVaultRecoverable",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 6343,
              "src": "256:17:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IVaultRecoverable_$6343",
                "typeString": "contract IVaultRecoverable"
              }
            },
            "id": 6946,
            "nodeType": "InheritanceSpecifier",
            "src": "256:17:38"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 6947,
              "name": "EtherTokenConstant",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 6293,
              "src": "275:18:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_EtherTokenConstant_$6293",
                "typeString": "contract EtherTokenConstant"
              }
            },
            "id": 6948,
            "nodeType": "InheritanceSpecifier",
            "src": "275:18:38"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 6949,
              "name": "IsContract",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 6469,
              "src": "295:10:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IsContract_$6469",
                "typeString": "contract IsContract"
              }
            },
            "id": 6950,
            "nodeType": "InheritanceSpecifier",
            "src": "295:10:38"
          }
        ],
        "contractDependencies": [
          6293,
          6343,
          6469
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 7053,
        "linearizedBaseContracts": [
          7053,
          6469,
          6293,
          6343
        ],
        "name": "VaultRecoverable",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "id": 6953,
            "libraryName": {
              "contractScope": null,
              "id": 6951,
              "name": "SafeERC20",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 6784,
              "src": "318:9:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_SafeERC20_$6784",
                "typeString": "library SafeERC20"
              }
            },
            "nodeType": "UsingForDirective",
            "src": "312:26:38",
            "typeName": {
              "contractScope": null,
              "id": 6952,
              "name": "ERC20",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 9925,
              "src": "332:5:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_ERC20_$9925",
                "typeString": "contract ERC20"
              }
            }
          },
          {
            "constant": true,
            "id": 6956,
            "name": "ERROR_DISALLOWED",
            "nodeType": "VariableDeclaration",
            "scope": 7053,
            "src": "344:63:38",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_memory",
              "typeString": "string"
            },
            "typeName": {
              "id": 6954,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "344:6:38",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "5245434f5645525f444953414c4c4f574544",
              "id": 6955,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "string",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "387:20:38",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_stringliteral_47aa147597a7b552a4e71045691780a16af5fd5e8d5d273726c17abe45b2d846",
                "typeString": "literal_string \"RECOVER_DISALLOWED\""
              },
              "value": "RECOVER_DISALLOWED"
            },
            "visibility": "private"
          },
          {
            "constant": true,
            "id": 6959,
            "name": "ERROR_VAULT_NOT_CONTRACT",
            "nodeType": "VariableDeclaration",
            "scope": 7053,
            "src": "413:79:38",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_memory",
              "typeString": "string"
            },
            "typeName": {
              "id": 6957,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "413:6:38",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "5245434f5645525f5641554c545f4e4f545f434f4e5452414354",
              "id": 6958,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "string",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "464:28:38",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_stringliteral_75ee4922bd8110ebf690d2268404281e15c05946c72e21f392a98d678433c1b8",
                "typeString": "literal_string \"RECOVER_VAULT_NOT_CONTRACT\""
              },
              "value": "RECOVER_VAULT_NOT_CONTRACT"
            },
            "visibility": "private"
          },
          {
            "constant": true,
            "id": 6962,
            "name": "ERROR_TOKEN_TRANSFER_FAILED",
            "nodeType": "VariableDeclaration",
            "scope": 7053,
            "src": "498:85:38",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_memory",
              "typeString": "string"
            },
            "typeName": {
              "id": 6960,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "498:6:38",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "5245434f5645525f544f4b454e5f5452414e534645525f4641494c4544",
              "id": 6961,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "string",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "552:31:38",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_stringliteral_50ced607ee32fa6b84ba381cb0e7349b0ffb77cff346ccdcab72221c40403f1a",
                "typeString": "literal_string \"RECOVER_TOKEN_TRANSFER_FAILED\""
              },
              "value": "RECOVER_TOKEN_TRANSFER_FAILED"
            },
            "visibility": "private"
          },
          {
            "body": {
              "id": 7036,
              "nodeType": "Block",
              "src": "886:573:38",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 6969,
                            "name": "_token",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6964,
                            "src": "924:6:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 6968,
                          "name": "allowRecoverability",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 7047,
                          "src": "904:19:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                            "typeString": "function (address) view returns (bool)"
                          }
                        },
                        "id": 6970,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "904:27:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6971,
                        "name": "ERROR_DISALLOWED",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6956,
                        "src": "933:16:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      ],
                      "id": 6967,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        10407,
                        10408
                      ],
                      "referencedDeclaration": 10408,
                      "src": "896:7:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 6972,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "896:54:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6973,
                  "nodeType": "ExpressionStatement",
                  "src": "896:54:38"
                },
                {
                  "assignments": [
                    6975
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6975,
                      "name": "vault",
                      "nodeType": "VariableDeclaration",
                      "scope": 7037,
                      "src": "960:13:38",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 6974,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "960:7:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6978,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 6976,
                      "name": "getRecoveryVault",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 7052,
                      "src": "976:16:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                        "typeString": "function () view returns (address)"
                      }
                    },
                    "id": 6977,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "976:18:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "960:34:38"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 6981,
                            "name": "vault",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6975,
                            "src": "1023:5:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 6980,
                          "name": "isContract",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 6468,
                          "src": "1012:10:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                            "typeString": "function (address) view returns (bool)"
                          }
                        },
                        "id": 6982,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1012:17:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6983,
                        "name": "ERROR_VAULT_NOT_CONTRACT",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6959,
                        "src": "1031:24:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      ],
                      "id": 6979,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        10407,
                        10408
                      ],
                      "referencedDeclaration": 10408,
                      "src": "1004:7:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 6984,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1004:52:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6985,
                  "nodeType": "ExpressionStatement",
                  "src": "1004:52:38"
                },
                {
                  "assignments": [],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6987,
                      "name": "balance",
                      "nodeType": "VariableDeclaration",
                      "scope": 7037,
                      "src": "1067:15:38",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6986,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "1067:7:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6988,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1067:15:38"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 6991,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 6989,
                      "name": "_token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6964,
                      "src": "1096:6:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "id": 6990,
                      "name": "ETH",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6292,
                      "src": "1106:3:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1096:13:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 7028,
                    "nodeType": "Block",
                    "src": "1210:189:38",
                    "statements": [
                      {
                        "assignments": [
                          7007
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 7007,
                            "name": "token",
                            "nodeType": "VariableDeclaration",
                            "scope": 7037,
                            "src": "1224:11:38",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_ERC20_$9925",
                              "typeString": "contract ERC20"
                            },
                            "typeName": {
                              "contractScope": null,
                              "id": 7006,
                              "name": "ERC20",
                              "nodeType": "UserDefinedTypeName",
                              "referencedDeclaration": 9925,
                              "src": "1224:5:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_ERC20_$9925",
                                "typeString": "contract ERC20"
                              }
                            },
                            "value": null,
                            "visibility": "internal"
                          }
                        ],
                        "id": 7011,
                        "initialValue": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 7009,
                              "name": "_token",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6964,
                              "src": "1244:6:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            ],
                            "id": 7008,
                            "name": "ERC20",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9925,
                            "src": "1238:5:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_contract$_ERC20_$9925_$",
                              "typeString": "type(contract ERC20)"
                            }
                          },
                          "id": 7010,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1238:13:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_ERC20_$9925",
                            "typeString": "contract ERC20"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "1224:27:38"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 7017,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 7012,
                            "name": "balance",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6987,
                            "src": "1265:7:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "id": 7015,
                                "name": "this",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10455,
                                "src": "1297:4:38",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_contract$_VaultRecoverable_$7053",
                                  "typeString": "contract VaultRecoverable"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_contract$_VaultRecoverable_$7053",
                                  "typeString": "contract VaultRecoverable"
                                }
                              ],
                              "expression": {
                                "argumentTypes": null,
                                "id": 7013,
                                "name": "token",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 7007,
                                "src": "1275:5:38",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_contract$_ERC20_$9925",
                                  "typeString": "contract ERC20"
                                }
                              },
                              "id": 7014,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "staticBalanceOf",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 6711,
                              "src": "1275:21:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_internal_view$_t_contract$_ERC20_$9925_$_t_address_$returns$_t_uint256_$bound_to$_t_contract$_ERC20_$9925_$",
                                "typeString": "function (contract ERC20,address) view returns (uint256)"
                              }
                            },
                            "id": 7016,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1275:27:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "1265:37:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 7018,
                        "nodeType": "ExpressionStatement",
                        "src": "1265:37:38"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "id": 7022,
                                  "name": "vault",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 6975,
                                  "src": "1343:5:38",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 7023,
                                  "name": "balance",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 6987,
                                  "src": "1350:7:38",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 7020,
                                  "name": "token",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 7007,
                                  "src": "1324:5:38",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_ERC20_$9925",
                                    "typeString": "contract ERC20"
                                  }
                                },
                                "id": 7021,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "safeTransfer",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 6616,
                                "src": "1324:18:38",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_ERC20_$9925_$_t_address_$_t_uint256_$returns$_t_bool_$bound_to$_t_contract$_ERC20_$9925_$",
                                  "typeString": "function (contract ERC20,address,uint256) returns (bool)"
                                }
                              },
                              "id": 7024,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "1324:34:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            {
                              "argumentTypes": null,
                              "id": 7025,
                              "name": "ERROR_TOKEN_TRANSFER_FAILED",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6962,
                              "src": "1360:27:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_string_memory",
                                "typeString": "string memory"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              },
                              {
                                "typeIdentifier": "t_string_memory",
                                "typeString": "string memory"
                              }
                            ],
                            "id": 7019,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              10407,
                              10408
                            ],
                            "referencedDeclaration": 10408,
                            "src": "1316:7:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                              "typeString": "function (bool,string memory) pure"
                            }
                          },
                          "id": 7026,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1316:72:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 7027,
                        "nodeType": "ExpressionStatement",
                        "src": "1316:72:38"
                      }
                    ]
                  },
                  "id": 7029,
                  "nodeType": "IfStatement",
                  "src": "1092:307:38",
                  "trueBody": {
                    "id": 7005,
                    "nodeType": "Block",
                    "src": "1111:93:38",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 6997,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 6992,
                            "name": "balance",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6987,
                            "src": "1125:7:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "id": 6994,
                                  "name": "this",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 10455,
                                  "src": "1143:4:38",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_VaultRecoverable_$7053",
                                    "typeString": "contract VaultRecoverable"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_contract$_VaultRecoverable_$7053",
                                    "typeString": "contract VaultRecoverable"
                                  }
                                ],
                                "id": 6993,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "1135:7:38",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_address_$",
                                  "typeString": "type(address)"
                                },
                                "typeName": "address"
                              },
                              "id": 6995,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "typeConversion",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "1135:13:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "id": 6996,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "balance",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "1135:21:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "1125:31:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 6998,
                        "nodeType": "ExpressionStatement",
                        "src": "1125:31:38"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 7002,
                              "name": "balance",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6987,
                              "src": "1185:7:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            ],
                            "expression": {
                              "argumentTypes": null,
                              "id": 6999,
                              "name": "vault",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6975,
                              "src": "1170:5:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "id": 7001,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "transfer",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "1170:14:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
                              "typeString": "function (uint256)"
                            }
                          },
                          "id": 7003,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1170:23:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 7004,
                        "nodeType": "ExpressionStatement",
                        "src": "1170:23:38"
                      }
                    ]
                  }
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 7031,
                        "name": "vault",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6975,
                        "src": "1429:5:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 7032,
                        "name": "_token",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6964,
                        "src": "1436:6:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 7033,
                        "name": "balance",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6987,
                        "src": "1444:7:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 7030,
                      "name": "RecoverToVault",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6325,
                      "src": "1414:14:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
                        "typeString": "function (address,address,uint256)"
                      }
                    },
                    "id": 7034,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1414:38:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 7035,
                  "nodeType": "EmitStatement",
                  "src": "1409:43:38"
                }
              ]
            },
            "documentation": "@notice Send funds to recovery Vault. This contract should never receive funds,\n        but in case it does, this function allows one to recover them.\n@param _token Token balance to be sent to recovery vault.",
            "id": 7037,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "transferToVault",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6965,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6964,
                  "name": "_token",
                  "nodeType": "VariableDeclaration",
                  "scope": 7037,
                  "src": "861:14:38",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 6963,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "861:7:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "860:16:38"
            },
            "payable": false,
            "returnParameters": {
              "id": 6966,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "886:0:38"
            },
            "scope": 7053,
            "src": "836:623:38",
            "stateMutability": "nonpayable",
            "superFunction": 6330,
            "visibility": "external"
          },
          {
            "body": {
              "id": 7046,
              "nodeType": "Block",
              "src": "1730:28:38",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 7044,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "1747:4:38",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 7043,
                  "id": 7045,
                  "nodeType": "Return",
                  "src": "1740:11:38"
                }
              ]
            },
            "documentation": "@dev By default deriving from AragonApp makes it recoverable\n@param token Token address that would be recovered\n@return bool whether the app allows the recovery",
            "id": 7047,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "allowRecoverability",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 7040,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7039,
                  "name": "token",
                  "nodeType": "VariableDeclaration",
                  "scope": 7047,
                  "src": "1688:13:38",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 7038,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1688:7:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1687:15:38"
            },
            "payable": false,
            "returnParameters": {
              "id": 7043,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7042,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 7047,
                  "src": "1724:4:38",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 7041,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1724:4:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1723:6:38"
            },
            "scope": 7053,
            "src": "1659:99:38",
            "stateMutability": "view",
            "superFunction": 6337,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 7052,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getRecoveryVault",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 7048,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1868:2:38"
            },
            "payable": false,
            "returnParameters": {
              "id": 7051,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7050,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 7052,
                  "src": "1892:7:38",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 7049,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1892:7:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1891:9:38"
            },
            "scope": 7053,
            "src": "1843:58:38",
            "stateMutability": "view",
            "superFunction": 6342,
            "visibility": "public"
          }
        ],
        "scope": 7054,
        "src": "227:1676:38"
      }
    ],
    "src": "44:1860:38"
  },
  "legacyAST": {
    "absolutePath": "@aragon/os/contracts/common/VaultRecoverable.sol",
    "exportedSymbols": {
      "VaultRecoverable": [
        7053
      ]
    },
    "id": 7054,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6939,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:38"
      },
      {
        "absolutePath": "@aragon/os/contracts/lib/token/ERC20.sol",
        "file": "../lib/token/ERC20.sol",
        "id": 6940,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 9926,
        "src": "70:32:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/common/EtherTokenConstant.sol",
        "file": "./EtherTokenConstant.sol",
        "id": 6941,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 6294,
        "src": "103:34:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/common/IsContract.sol",
        "file": "./IsContract.sol",
        "id": 6942,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 6470,
        "src": "138:26:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/common/IVaultRecoverable.sol",
        "file": "./IVaultRecoverable.sol",
        "id": 6943,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 6344,
        "src": "165:33:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@aragon/os/contracts/common/SafeERC20.sol",
        "file": "./SafeERC20.sol",
        "id": 6944,
        "nodeType": "ImportDirective",
        "scope": 7054,
        "sourceUnit": 6785,
        "src": "199:25:38",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 6945,
              "name": "IVaultRecoverable",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 6343,
              "src": "256:17:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IVaultRecoverable_$6343",
                "typeString": "contract IVaultRecoverable"
              }
            },
            "id": 6946,
            "nodeType": "InheritanceSpecifier",
            "src": "256:17:38"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 6947,
              "name": "EtherTokenConstant",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 6293,
              "src": "275:18:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_EtherTokenConstant_$6293",
                "typeString": "contract EtherTokenConstant"
              }
            },
            "id": 6948,
            "nodeType": "InheritanceSpecifier",
            "src": "275:18:38"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 6949,
              "name": "IsContract",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 6469,
              "src": "295:10:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IsContract_$6469",
                "typeString": "contract IsContract"
              }
            },
            "id": 6950,
            "nodeType": "InheritanceSpecifier",
            "src": "295:10:38"
          }
        ],
        "contractDependencies": [
          6293,
          6343,
          6469
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 7053,
        "linearizedBaseContracts": [
          7053,
          6469,
          6293,
          6343
        ],
        "name": "VaultRecoverable",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "id": 6953,
            "libraryName": {
              "contractScope": null,
              "id": 6951,
              "name": "SafeERC20",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 6784,
              "src": "318:9:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_SafeERC20_$6784",
                "typeString": "library SafeERC20"
              }
            },
            "nodeType": "UsingForDirective",
            "src": "312:26:38",
            "typeName": {
              "contractScope": null,
              "id": 6952,
              "name": "ERC20",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 9925,
              "src": "332:5:38",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_ERC20_$9925",
                "typeString": "contract ERC20"
              }
            }
          },
          {
            "constant": true,
            "id": 6956,
            "name": "ERROR_DISALLOWED",
            "nodeType": "VariableDeclaration",
            "scope": 7053,
            "src": "344:63:38",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_memory",
              "typeString": "string"
            },
            "typeName": {
              "id": 6954,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "344:6:38",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "5245434f5645525f444953414c4c4f574544",
              "id": 6955,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "string",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "387:20:38",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_stringliteral_47aa147597a7b552a4e71045691780a16af5fd5e8d5d273726c17abe45b2d846",
                "typeString": "literal_string \"RECOVER_DISALLOWED\""
              },
              "value": "RECOVER_DISALLOWED"
            },
            "visibility": "private"
          },
          {
            "constant": true,
            "id": 6959,
            "name": "ERROR_VAULT_NOT_CONTRACT",
            "nodeType": "VariableDeclaration",
            "scope": 7053,
            "src": "413:79:38",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_memory",
              "typeString": "string"
            },
            "typeName": {
              "id": 6957,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "413:6:38",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "5245434f5645525f5641554c545f4e4f545f434f4e5452414354",
              "id": 6958,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "string",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "464:28:38",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_stringliteral_75ee4922bd8110ebf690d2268404281e15c05946c72e21f392a98d678433c1b8",
                "typeString": "literal_string \"RECOVER_VAULT_NOT_CONTRACT\""
              },
              "value": "RECOVER_VAULT_NOT_CONTRACT"
            },
            "visibility": "private"
          },
          {
            "constant": true,
            "id": 6962,
            "name": "ERROR_TOKEN_TRANSFER_FAILED",
            "nodeType": "VariableDeclaration",
            "scope": 7053,
            "src": "498:85:38",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_memory",
              "typeString": "string"
            },
            "typeName": {
              "id": 6960,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "498:6:38",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "5245434f5645525f544f4b454e5f5452414e534645525f4641494c4544",
              "id": 6961,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "string",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "552:31:38",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_stringliteral_50ced607ee32fa6b84ba381cb0e7349b0ffb77cff346ccdcab72221c40403f1a",
                "typeString": "literal_string \"RECOVER_TOKEN_TRANSFER_FAILED\""
              },
              "value": "RECOVER_TOKEN_TRANSFER_FAILED"
            },
            "visibility": "private"
          },
          {
            "body": {
              "id": 7036,
              "nodeType": "Block",
              "src": "886:573:38",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 6969,
                            "name": "_token",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6964,
                            "src": "924:6:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 6968,
                          "name": "allowRecoverability",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 7047,
                          "src": "904:19:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                            "typeString": "function (address) view returns (bool)"
                          }
                        },
                        "id": 6970,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "904:27:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6971,
                        "name": "ERROR_DISALLOWED",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6956,
                        "src": "933:16:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      ],
                      "id": 6967,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        10407,
                        10408
                      ],
                      "referencedDeclaration": 10408,
                      "src": "896:7:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 6972,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "896:54:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6973,
                  "nodeType": "ExpressionStatement",
                  "src": "896:54:38"
                },
                {
                  "assignments": [
                    6975
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6975,
                      "name": "vault",
                      "nodeType": "VariableDeclaration",
                      "scope": 7037,
                      "src": "960:13:38",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 6974,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "960:7:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6978,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 6976,
                      "name": "getRecoveryVault",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 7052,
                      "src": "976:16:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                        "typeString": "function () view returns (address)"
                      }
                    },
                    "id": 6977,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "976:18:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "960:34:38"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 6981,
                            "name": "vault",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6975,
                            "src": "1023:5:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 6980,
                          "name": "isContract",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 6468,
                          "src": "1012:10:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                            "typeString": "function (address) view returns (bool)"
                          }
                        },
                        "id": 6982,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1012:17:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6983,
                        "name": "ERROR_VAULT_NOT_CONTRACT",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6959,
                        "src": "1031:24:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      ],
                      "id": 6979,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        10407,
                        10408
                      ],
                      "referencedDeclaration": 10408,
                      "src": "1004:7:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 6984,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1004:52:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6985,
                  "nodeType": "ExpressionStatement",
                  "src": "1004:52:38"
                },
                {
                  "assignments": [],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6987,
                      "name": "balance",
                      "nodeType": "VariableDeclaration",
                      "scope": 7037,
                      "src": "1067:15:38",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6986,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "1067:7:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6988,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1067:15:38"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 6991,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 6989,
                      "name": "_token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6964,
                      "src": "1096:6:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "id": 6990,
                      "name": "ETH",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6292,
                      "src": "1106:3:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1096:13:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 7028,
                    "nodeType": "Block",
                    "src": "1210:189:38",
                    "statements": [
                      {
                        "assignments": [
                          7007
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 7007,
                            "name": "token",
                            "nodeType": "VariableDeclaration",
                            "scope": 7037,
                            "src": "1224:11:38",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_ERC20_$9925",
                              "typeString": "contract ERC20"
                            },
                            "typeName": {
                              "contractScope": null,
                              "id": 7006,
                              "name": "ERC20",
                              "nodeType": "UserDefinedTypeName",
                              "referencedDeclaration": 9925,
                              "src": "1224:5:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_ERC20_$9925",
                                "typeString": "contract ERC20"
                              }
                            },
                            "value": null,
                            "visibility": "internal"
                          }
                        ],
                        "id": 7011,
                        "initialValue": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 7009,
                              "name": "_token",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6964,
                              "src": "1244:6:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            ],
                            "id": 7008,
                            "name": "ERC20",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 9925,
                            "src": "1238:5:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_contract$_ERC20_$9925_$",
                              "typeString": "type(contract ERC20)"
                            }
                          },
                          "id": 7010,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1238:13:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_ERC20_$9925",
                            "typeString": "contract ERC20"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "1224:27:38"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 7017,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 7012,
                            "name": "balance",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6987,
                            "src": "1265:7:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "id": 7015,
                                "name": "this",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 10455,
                                "src": "1297:4:38",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_contract$_VaultRecoverable_$7053",
                                  "typeString": "contract VaultRecoverable"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_contract$_VaultRecoverable_$7053",
                                  "typeString": "contract VaultRecoverable"
                                }
                              ],
                              "expression": {
                                "argumentTypes": null,
                                "id": 7013,
                                "name": "token",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 7007,
                                "src": "1275:5:38",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_contract$_ERC20_$9925",
                                  "typeString": "contract ERC20"
                                }
                              },
                              "id": 7014,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "staticBalanceOf",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 6711,
                              "src": "1275:21:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_internal_view$_t_contract$_ERC20_$9925_$_t_address_$returns$_t_uint256_$bound_to$_t_contract$_ERC20_$9925_$",
                                "typeString": "function (contract ERC20,address) view returns (uint256)"
                              }
                            },
                            "id": 7016,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1275:27:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "1265:37:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 7018,
                        "nodeType": "ExpressionStatement",
                        "src": "1265:37:38"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "id": 7022,
                                  "name": "vault",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 6975,
                                  "src": "1343:5:38",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 7023,
                                  "name": "balance",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 6987,
                                  "src": "1350:7:38",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 7020,
                                  "name": "token",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 7007,
                                  "src": "1324:5:38",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_ERC20_$9925",
                                    "typeString": "contract ERC20"
                                  }
                                },
                                "id": 7021,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "safeTransfer",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 6616,
                                "src": "1324:18:38",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_ERC20_$9925_$_t_address_$_t_uint256_$returns$_t_bool_$bound_to$_t_contract$_ERC20_$9925_$",
                                  "typeString": "function (contract ERC20,address,uint256) returns (bool)"
                                }
                              },
                              "id": 7024,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "1324:34:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            {
                              "argumentTypes": null,
                              "id": 7025,
                              "name": "ERROR_TOKEN_TRANSFER_FAILED",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6962,
                              "src": "1360:27:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_string_memory",
                                "typeString": "string memory"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              },
                              {
                                "typeIdentifier": "t_string_memory",
                                "typeString": "string memory"
                              }
                            ],
                            "id": 7019,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              10407,
                              10408
                            ],
                            "referencedDeclaration": 10408,
                            "src": "1316:7:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                              "typeString": "function (bool,string memory) pure"
                            }
                          },
                          "id": 7026,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1316:72:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 7027,
                        "nodeType": "ExpressionStatement",
                        "src": "1316:72:38"
                      }
                    ]
                  },
                  "id": 7029,
                  "nodeType": "IfStatement",
                  "src": "1092:307:38",
                  "trueBody": {
                    "id": 7005,
                    "nodeType": "Block",
                    "src": "1111:93:38",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 6997,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 6992,
                            "name": "balance",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6987,
                            "src": "1125:7:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "id": 6994,
                                  "name": "this",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 10455,
                                  "src": "1143:4:38",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_VaultRecoverable_$7053",
                                    "typeString": "contract VaultRecoverable"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_contract$_VaultRecoverable_$7053",
                                    "typeString": "contract VaultRecoverable"
                                  }
                                ],
                                "id": 6993,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "1135:7:38",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_address_$",
                                  "typeString": "type(address)"
                                },
                                "typeName": "address"
                              },
                              "id": 6995,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "typeConversion",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "1135:13:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "id": 6996,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "balance",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "1135:21:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "1125:31:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 6998,
                        "nodeType": "ExpressionStatement",
                        "src": "1125:31:38"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 7002,
                              "name": "balance",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6987,
                              "src": "1185:7:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            ],
                            "expression": {
                              "argumentTypes": null,
                              "id": 6999,
                              "name": "vault",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6975,
                              "src": "1170:5:38",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "id": 7001,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "transfer",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "1170:14:38",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
                              "typeString": "function (uint256)"
                            }
                          },
                          "id": 7003,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1170:23:38",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 7004,
                        "nodeType": "ExpressionStatement",
                        "src": "1170:23:38"
                      }
                    ]
                  }
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 7031,
                        "name": "vault",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6975,
                        "src": "1429:5:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 7032,
                        "name": "_token",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6964,
                        "src": "1436:6:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 7033,
                        "name": "balance",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6987,
                        "src": "1444:7:38",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 7030,
                      "name": "RecoverToVault",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6325,
                      "src": "1414:14:38",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
                        "typeString": "function (address,address,uint256)"
                      }
                    },
                    "id": 7034,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1414:38:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 7035,
                  "nodeType": "EmitStatement",
                  "src": "1409:43:38"
                }
              ]
            },
            "documentation": "@notice Send funds to recovery Vault. This contract should never receive funds,\n        but in case it does, this function allows one to recover them.\n@param _token Token balance to be sent to recovery vault.",
            "id": 7037,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "transferToVault",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6965,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6964,
                  "name": "_token",
                  "nodeType": "VariableDeclaration",
                  "scope": 7037,
                  "src": "861:14:38",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 6963,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "861:7:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "860:16:38"
            },
            "payable": false,
            "returnParameters": {
              "id": 6966,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "886:0:38"
            },
            "scope": 7053,
            "src": "836:623:38",
            "stateMutability": "nonpayable",
            "superFunction": 6330,
            "visibility": "external"
          },
          {
            "body": {
              "id": 7046,
              "nodeType": "Block",
              "src": "1730:28:38",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 7044,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "1747:4:38",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 7043,
                  "id": 7045,
                  "nodeType": "Return",
                  "src": "1740:11:38"
                }
              ]
            },
            "documentation": "@dev By default deriving from AragonApp makes it recoverable\n@param token Token address that would be recovered\n@return bool whether the app allows the recovery",
            "id": 7047,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "allowRecoverability",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 7040,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7039,
                  "name": "token",
                  "nodeType": "VariableDeclaration",
                  "scope": 7047,
                  "src": "1688:13:38",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 7038,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1688:7:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1687:15:38"
            },
            "payable": false,
            "returnParameters": {
              "id": 7043,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7042,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 7047,
                  "src": "1724:4:38",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 7041,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1724:4:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1723:6:38"
            },
            "scope": 7053,
            "src": "1659:99:38",
            "stateMutability": "view",
            "superFunction": 6337,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 7052,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getRecoveryVault",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 7048,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1868:2:38"
            },
            "payable": false,
            "returnParameters": {
              "id": 7051,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 7050,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 7052,
                  "src": "1892:7:38",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 7049,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1892:7:38",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1891:9:38"
            },
            "scope": 7053,
            "src": "1843:58:38",
            "stateMutability": "view",
            "superFunction": 6342,
            "visibility": "public"
          }
        ],
        "scope": 7054,
        "src": "227:1676:38"
      }
    ],
    "src": "44:1860:38"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.2.0",
  "updatedAt": "2020-06-07T23:27:00.581Z",
  "devdoc": {
    "methods": {
      "allowRecoverability(address)": {
        "details": "By default deriving from AragonApp makes it recoverable",
        "params": {
          "token": "Token address that would be recovered"
        },
        "return": "bool whether the app allows the recovery"
      },
      "transferToVault(address)": {
        "params": {
          "_token": "Token balance to be sent to recovery vault."
        }
      }
    }
  },
  "userdoc": {
    "methods": {
      "transferToVault(address)": {
        "notice": "Send funds to recovery Vault. This contract should never receive funds,        but in case it does, this function allows one to recover them."
      }
    }
  }
}