{
  "abi": [
    {
      "inputs": [],
      "name": "deinvestAll",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "paymentAmount",
          "type": "uint256"
        }
      ],
      "name": "refillWallet",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "ast": {
    "absolutePath": "interfaces/IAssetManager.sol",
    "exportedSymbols": {
      "IAssetManager": [
        13
      ]
    },
    "id": 14,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 1,
        "literals": [
          "solidity",
          "^",
          "0.8",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "39:23:2"
      },
      {
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": {
          "id": 2,
          "nodeType": "StructuredDocumentation",
          "src": "64:152:2",
          "text": " @title IAssetManager interface\n @dev Interface for asset manager, that manages assets and refills pool wallet when needed\n @author Ensuro"
        },
        "fullyImplemented": false,
        "id": 13,
        "linearizedBaseContracts": [
          13
        ],
        "name": "IAssetManager",
        "nameLocation": "227:13:2",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "documentation": {
              "id": 3,
              "nodeType": "StructuredDocumentation",
              "src": "245:279:2",
              "text": " @dev This is called from PolicyPool when doesn't have enought money for payment.\n      After the call, there should be enought money in PolicyPool.currency().balanceOf(_policyPool) to\n      do the payment\n @param paymentAmount The amount of the payment"
            },
            "functionSelector": "1014a0c2",
            "id": 8,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "refillWallet",
            "nameLocation": "536:12:2",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5,
                  "mutability": "mutable",
                  "name": "paymentAmount",
                  "nameLocation": "557:13:2",
                  "nodeType": "VariableDeclaration",
                  "scope": 8,
                  "src": "549:21:2",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "549:7:2",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "548:23:2"
            },
            "returnParameters": {
              "id": 7,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "580:0:2"
            },
            "scope": 13,
            "src": "527:54:2",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "documentation": {
              "id": 9,
              "nodeType": "StructuredDocumentation",
              "src": "585:155:2",
              "text": " @dev Deinvest all the assets and return the cash back to the PolicyPool.\n      Called from PolicyPool when new asset manager is assigned"
            },
            "functionSelector": "cec16f3f",
            "id": 12,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "deinvestAll",
            "nameLocation": "752:11:2",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 10,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "763:2:2"
            },
            "returnParameters": {
              "id": 11,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "774:0:2"
            },
            "scope": 13,
            "src": "743:32:2",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          }
        ],
        "scope": 14,
        "src": "217:560:2",
        "usedErrors": []
      }
    ],
    "src": "39:739:2"
  },
  "contractName": "IAssetManager",
  "dependencies": [],
  "offset": [
    217,
    777
  ],
  "sha1": "3fd4ce15e40034dc8da4ba38b354edb814645d5e",
  "source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.0;\n\n/**\n * @title IAssetManager interface\n * @dev Interface for asset manager, that manages assets and refills pool wallet when needed\n * @author Ensuro\n */\ninterface IAssetManager {\n  /**\n   * @dev This is called from PolicyPool when doesn't have enought money for payment.\n   *      After the call, there should be enought money in PolicyPool.currency().balanceOf(_policyPool) to\n   *      do the payment\n   * @param paymentAmount The amount of the payment\n   */\n  function refillWallet(uint256 paymentAmount) external;\n\n  /**\n   * @dev Deinvest all the assets and return the cash back to the PolicyPool.\n   *      Called from PolicyPool when new asset manager is assigned\n   */\n  function deinvestAll() external;\n}\n",
  "type": "interface"
}