{
  "abi": [
    {
      "inputs": [],
      "name": "asset",
      "outputs": [
        {
          "internalType": "contract IERC20Metadata",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "ensuroFee",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "maxScrPerPolicy",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "moc",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "name",
      "outputs": [
        {
          "internalType": "string",
          "name": "",
          "type": "string"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "triggerPrice",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "lower",
          "type": "bool"
        },
        {
          "internalType": "uint256",
          "name": "payout",
          "type": "uint256"
        },
        {
          "internalType": "uint40",
          "name": "expiration",
          "type": "uint40"
        }
      ],
      "name": "newPolicy",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "triggerPrice",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "lower",
          "type": "bool"
        },
        {
          "internalType": "uint256",
          "name": "payout",
          "type": "uint256"
        },
        {
          "internalType": "uint40",
          "name": "expiration",
          "type": "uint40"
        }
      ],
      "name": "pricePolicy",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "premium",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "lossProb",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "referenceCurrency",
      "outputs": [
        {
          "internalType": "contract IERC20Metadata",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "scrAmount",
          "type": "uint256"
        }
      ],
      "name": "releaseScr",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "scrInterestRate",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "scrLimit",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "scrPercentage",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "totalScr",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "policyId",
          "type": "uint256"
        }
      ],
      "name": "triggerPolicy",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "wallet",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "allSourcePaths": {
    "16": "contracts/extras/IPriceRiskModule.sol",
    "40": "interfaces/IRiskModule.sol",
    "98": "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"
  },
  "ast": {
    "absolutePath": "contracts/extras/IPriceRiskModule.sol",
    "exportedSymbols": {
      "IERC20Metadata": [
        16271
      ],
      "IPriceRiskModule": [
        11857
      ],
      "IRiskModule": [
        17857
      ]
    },
    "id": 11858,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 11803,
        "literals": [
          "solidity",
          "^",
          "0.8",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "39:23:16"
      },
      {
        "absolutePath": "interfaces/IRiskModule.sol",
        "file": "../../interfaces/IRiskModule.sol",
        "id": 11805,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 11858,
        "sourceUnit": 17858,
        "src": "64:61:16",
        "symbolAliases": [
          {
            "foreign": {
              "id": 11804,
              "name": "IRiskModule",
              "nodeType": "Identifier",
              "overloadedDeclarations": [],
              "src": "72:11:16",
              "typeDescriptions": {}
            },
            "nameLocation": "-1:-1:-1"
          }
        ],
        "unitAlias": ""
      },
      {
        "absolutePath": "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol",
        "file": "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol",
        "id": 11807,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 11858,
        "sourceUnit": 16272,
        "src": "126:97:16",
        "symbolAliases": [
          {
            "foreign": {
              "id": 11806,
              "name": "IERC20Metadata",
              "nodeType": "Identifier",
              "overloadedDeclarations": [],
              "src": "134:14:16",
              "typeDescriptions": {}
            },
            "nameLocation": "-1:-1:-1"
          }
        ],
        "unitAlias": ""
      },
      {
        "abstract": false,
        "baseContracts": [
          {
            "baseName": {
              "id": 11809,
              "name": "IRiskModule",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 17857,
              "src": "358:11:16"
            },
            "id": 11810,
            "nodeType": "InheritanceSpecifier",
            "src": "358:11:16"
          }
        ],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": {
          "id": 11808,
          "nodeType": "StructuredDocumentation",
          "src": "225:102:16",
          "text": " @title IPriceRiskModule interface\n @dev Interface for price risk module\n @author Ensuro"
        },
        "fullyImplemented": false,
        "id": 11857,
        "linearizedBaseContracts": [
          11857,
          17857
        ],
        "name": "IPriceRiskModule",
        "nameLocation": "338:16:16",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "documentation": {
              "id": 11811,
              "nodeType": "StructuredDocumentation",
              "src": "374:486:16",
              "text": " @dev Returns the premium and lossProb of the policy\n @param triggerPrice Price of the asset_ that will trigger the policy (expressed in _currency)\n @param lower If true -> triggers if the price is lower, If false -> triggers if the price is higher\n @param payout Expressed in policyPool.currency()\n @param expiration Expiration of the policy\n @return premium Premium that needs to be paid\n @return lossProb Probability of paying the maximum payout"
            },
            "functionSelector": "a5f8b2d6",
            "id": 11826,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "pricePolicy",
            "nameLocation": "872:11:16",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11820,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11813,
                  "mutability": "mutable",
                  "name": "triggerPrice",
                  "nameLocation": "897:12:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11826,
                  "src": "889:20:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11812,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "889:7:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11815,
                  "mutability": "mutable",
                  "name": "lower",
                  "nameLocation": "920:5:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11826,
                  "src": "915:10:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 11814,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "915:4:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11817,
                  "mutability": "mutable",
                  "name": "payout",
                  "nameLocation": "939:6:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11826,
                  "src": "931:14:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11816,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "931:7:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11819,
                  "mutability": "mutable",
                  "name": "expiration",
                  "nameLocation": "958:10:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11826,
                  "src": "951:17:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint40",
                    "typeString": "uint40"
                  },
                  "typeName": {
                    "id": 11818,
                    "name": "uint40",
                    "nodeType": "ElementaryTypeName",
                    "src": "951:6:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint40",
                      "typeString": "uint40"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "883:89:16"
            },
            "returnParameters": {
              "id": 11825,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11822,
                  "mutability": "mutable",
                  "name": "premium",
                  "nameLocation": "1004:7:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11826,
                  "src": "996:15:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11821,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "996:7:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11824,
                  "mutability": "mutable",
                  "name": "lossProb",
                  "nameLocation": "1021:8:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11826,
                  "src": "1013:16:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11823,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1013:7:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "995:35:16"
            },
            "scope": 11857,
            "src": "863:168:16",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "775ead48",
            "id": 11839,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "newPolicy",
            "nameLocation": "1044:9:16",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11835,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11828,
                  "mutability": "mutable",
                  "name": "triggerPrice",
                  "nameLocation": "1067:12:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11839,
                  "src": "1059:20:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11827,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1059:7:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11830,
                  "mutability": "mutable",
                  "name": "lower",
                  "nameLocation": "1090:5:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11839,
                  "src": "1085:10:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 11829,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "1085:4:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11832,
                  "mutability": "mutable",
                  "name": "payout",
                  "nameLocation": "1109:6:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11839,
                  "src": "1101:14:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11831,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1101:7:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11834,
                  "mutability": "mutable",
                  "name": "expiration",
                  "nameLocation": "1128:10:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11839,
                  "src": "1121:17:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint40",
                    "typeString": "uint40"
                  },
                  "typeName": {
                    "id": 11833,
                    "name": "uint40",
                    "nodeType": "ElementaryTypeName",
                    "src": "1121:6:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint40",
                      "typeString": "uint40"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1053:89:16"
            },
            "returnParameters": {
              "id": 11838,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11837,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 11839,
                  "src": "1161:7:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11836,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1161:7:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1160:9:16"
            },
            "scope": 11857,
            "src": "1035:135:16",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "377e1cc9",
            "id": 11844,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "triggerPolicy",
            "nameLocation": "1183:13:16",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11842,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11841,
                  "mutability": "mutable",
                  "name": "policyId",
                  "nameLocation": "1205:8:16",
                  "nodeType": "VariableDeclaration",
                  "scope": 11844,
                  "src": "1197:16:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11840,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1197:7:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1196:18:16"
            },
            "returnParameters": {
              "id": 11843,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1223:0:16"
            },
            "scope": 11857,
            "src": "1174:50:16",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "2c7a69fe",
            "id": 11850,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "referenceCurrency",
            "nameLocation": "1237:17:16",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11845,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1254:2:16"
            },
            "returnParameters": {
              "id": 11849,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11848,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 11850,
                  "src": "1280:14:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20Metadata_$16271",
                    "typeString": "contract IERC20Metadata"
                  },
                  "typeName": {
                    "id": 11847,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 11846,
                      "name": "IERC20Metadata",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 16271,
                      "src": "1280:14:16"
                    },
                    "referencedDeclaration": 16271,
                    "src": "1280:14:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20Metadata_$16271",
                      "typeString": "contract IERC20Metadata"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1279:16:16"
            },
            "scope": 11857,
            "src": "1228:68:16",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "38d52e0f",
            "id": 11856,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "asset",
            "nameLocation": "1309:5:16",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11851,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1314:2:16"
            },
            "returnParameters": {
              "id": 11855,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11854,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 11856,
                  "src": "1340:14:16",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20Metadata_$16271",
                    "typeString": "contract IERC20Metadata"
                  },
                  "typeName": {
                    "id": 11853,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 11852,
                      "name": "IERC20Metadata",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 16271,
                      "src": "1340:14:16"
                    },
                    "referencedDeclaration": 16271,
                    "src": "1340:14:16",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20Metadata_$16271",
                      "typeString": "contract IERC20Metadata"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1339:16:16"
            },
            "scope": 11857,
            "src": "1300:56:16",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          }
        ],
        "scope": 11858,
        "src": "328:1030:16",
        "usedErrors": []
      }
    ],
    "src": "39:1320:16"
  },
  "bytecode": "",
  "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
  "compiler": {
    "evm_version": "istanbul",
    "optimizer": {
      "enabled": true,
      "runs": 200
    },
    "version": "0.8.6+commit.11564f7e"
  },
  "contractName": "IPriceRiskModule",
  "coverageMap": {
    "branches": {},
    "statements": {}
  },
  "dependencies": [
    "IERC20Metadata",
    "IRiskModule"
  ],
  "deployedBytecode": "",
  "deployedSourceMap": "",
  "language": "Solidity",
  "natspec": {
    "author": "Ensuro",
    "details": "Interface for price risk module",
    "kind": "dev",
    "methods": {
      "pricePolicy(uint256,bool,uint256,uint40)": {
        "details": "Returns the premium and lossProb of the policy",
        "params": {
          "expiration": "Expiration of the policy",
          "lower": "If true -> triggers if the price is lower, If false -> triggers if the price is higher",
          "payout": "Expressed in policyPool.currency()",
          "triggerPrice": "Price of the asset_ that will trigger the policy (expressed in _currency)"
        },
        "returns": {
          "lossProb": "Probability of paying the maximum payout",
          "premium": "Premium that needs to be paid"
        }
      }
    },
    "title": "IPriceRiskModule interface",
    "version": 1
  },
  "offset": [
    328,
    1358
  ],
  "opcodes": "",
  "pcMap": {},
  "sha1": "7fd954887f1f3c3a46ae6d15604a892bb061ddcf",
  "source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.0;\n\nimport {IRiskModule} from \"../../interfaces/IRiskModule.sol\";\nimport {IERC20Metadata} from \"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\n\n/**\n * @title IPriceRiskModule interface\n * @dev Interface for price risk module\n * @author Ensuro\n */\ninterface IPriceRiskModule is IRiskModule {\n  /**\n   * @dev Returns the premium and lossProb of the policy\n   * @param triggerPrice Price of the asset_ that will trigger the policy (expressed in _currency)\n   * @param lower If true -> triggers if the price is lower, If false -> triggers if the price is higher\n   * @param payout Expressed in policyPool.currency()\n   * @param expiration Expiration of the policy\n   * @return premium Premium that needs to be paid\n   * @return lossProb Probability of paying the maximum payout\n   */\n  function pricePolicy(\n    uint256 triggerPrice,\n    bool lower,\n    uint256 payout,\n    uint40 expiration\n  ) external view returns (uint256 premium, uint256 lossProb);\n\n  function newPolicy(\n    uint256 triggerPrice,\n    bool lower,\n    uint256 payout,\n    uint40 expiration\n  ) external returns (uint256);\n\n  function triggerPolicy(uint256 policyId) external;\n\n  function referenceCurrency() external view returns (IERC20Metadata);\n\n  function asset() external view returns (IERC20Metadata);\n}\n",
  "sourceMap": "",
  "sourcePath": "contracts/extras/IPriceRiskModule.sol",
  "type": "interface"
}