@etherisc/depeg-contracts
Version:
Etherisc's smart contracts for a depeg insurance for stable coins.
1,677 lines • 138 kB
JSON
{
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "riskpoolId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
}
],
"name": "LogTreasuryCapitalFeesSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "riskpoolId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "bundleId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogTreasuryCapitalProcessed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "riskpoolWalletAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogTreasuryCapitalTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "instanceWalletAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogTreasuryFeesTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "walletAddress",
"type": "address"
}
],
"name": "LogTreasuryInstanceWalletSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "riskpoolId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogTreasuryPayoutProcessed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "riskpoolWalletAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogTreasuryPayoutTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "productId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
}
],
"name": "LogTreasuryPremiumFeesSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "processId",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogTreasuryPremiumProcessed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "riskpoolWalletAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogTreasuryPremiumTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "productId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "riskpoolId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "erc20Address",
"type": "address"
}
],
"name": "LogTreasuryProductTokenSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "LogTreasuryResumed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "riskpoolId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "walletAddress",
"type": "address"
}
],
"name": "LogTreasuryRiskpoolWalletSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "LogTreasurySuspended",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "riskpoolId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "bundleId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogTreasuryWithdrawalProcessed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "riskpoolWalletAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogTreasuryWithdrawalTransferred",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "feeCalculationData",
"type": "bytes"
}
],
"name": "createFeeSpecification",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "feeCalculationData",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
}
],
"internalType": "struct ITreasury.FeeSpecification",
"name": "feeSpec",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
}
],
"name": "getComponentToken",
"outputs": [
{
"internalType": "contract IERC20",
"name": "token",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
}
],
"name": "getFeeSpecification",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "feeCalculationData",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
}
],
"internalType": "struct ITreasury.FeeSpecification",
"name": "feeSpecification",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getFractionFullUnit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getInstanceWallet",
"outputs": [
{
"internalType": "address",
"name": "instanceWalletAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "riskpoolId",
"type": "uint256"
}
],
"name": "getRiskpoolWallet",
"outputs": [
{
"internalType": "address",
"name": "riskpoolWalletAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "bundleId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "capitalAmount",
"type": "uint256"
}
],
"name": "processCapital",
"outputs": [
{
"internalType": "uint256",
"name": "feeAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "netCapitalAmount",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "processId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "payoutId",
"type": "uint256"
}
],
"name": "processPayout",
"outputs": [
{
"internalType": "uint256",
"name": "feeAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "netPayoutAmount",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "processId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "processPremium",
"outputs": [
{
"internalType": "bool",
"name": "success",
"type": "bool"
},
{
"internalType": "uint256",
"name": "feeAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "netPremiumAmount",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "processId",
"type": "bytes32"
}
],
"name": "processPremium",
"outputs": [
{
"internalType": "bool",
"name": "success",
"type": "bool"
},
{
"internalType": "uint256",
"name": "feeAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "netPremiumAmount",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "bundleId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "processWithdrawal",
"outputs": [
{
"internalType": "uint256",
"name": "feeAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "netAmount",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "feeCalculationData",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
}
],
"internalType": "struct ITreasury.FeeSpecification",
"name": "feeSpec",
"type": "tuple"
}
],
"name": "setCapitalFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "instanceWalletAddress",
"type": "address"
}
],
"name": "setInstanceWallet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "feeCalculationData",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
}
],
"internalType": "struct ITreasury.FeeSpecification",
"name": "feeSpec",
"type": "tuple"
}
],
"name": "setPremiumFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "productId",
"type": "uint256"
},
{
"internalType": "address",
"name": "erc20Address",
"type": "address"
}
],
"name": "setProductToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "riskpoolId",
"type": "uint256"
},
{
"internalType": "address",
"name": "riskpoolWalletAddress",
"type": "address"
}
],
"name": "setRiskpoolWallet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"allSourcePaths": {
"39": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol",
"4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol"
},
"ast": {
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol",
"exportedSymbols": {
"IERC20": [
15820
],
"ITreasury": [
12909
]
},
"id": 12910,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 12651,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:39"
},
{
"absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol",
"file": "@openzeppelin/contracts/token/ERC20/IERC20.sol",
"id": 12652,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 12910,
"sourceUnit": 15821,
"src": "62:56:39",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 12909,
"linearizedBaseContracts": [
12909
],
"name": "ITreasury",
"nameLocation": "130:9:39",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 12654,
"name": "LogTreasurySuspended",
"nameLocation": "153:20:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12653,
"nodeType": "ParameterList",
"parameters": [],
"src": "173:2:39"
},
"src": "147:29:39"
},
{
"anonymous": false,
"id": 12656,
"name": "LogTreasuryResumed",
"nameLocation": "187:18:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12655,
"nodeType": "ParameterList",
"parameters": [],
"src": "205:2:39"
},
"src": "181:27:39"
},
{
"anonymous": false,
"id": 12664,
"name": "LogTreasuryProductTokenSet",
"nameLocation": "220:26:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12663,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12658,
"indexed": false,
"mutability": "mutable",
"name": "productId",
"nameLocation": "255:9:39",
"nodeType": "VariableDeclaration",
"scope": 12664,
"src": "247:17:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12657,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "247:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12660,
"indexed": false,
"mutability": "mutable",
"name": "riskpoolId",
"nameLocation": "274:10:39",
"nodeType": "VariableDeclaration",
"scope": 12664,
"src": "266:18:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12659,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "266:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12662,
"indexed": false,
"mutability": "mutable",
"name": "erc20Address",
"nameLocation": "294:12:39",
"nodeType": "VariableDeclaration",
"scope": 12664,
"src": "286:20:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12661,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "286:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "246:61:39"
},
"src": "214:94:39"
},
{
"anonymous": false,
"id": 12668,
"name": "LogTreasuryInstanceWalletSet",
"nameLocation": "319:28:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12667,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12666,
"indexed": false,
"mutability": "mutable",
"name": "walletAddress",
"nameLocation": "356:13:39",
"nodeType": "VariableDeclaration",
"scope": 12668,
"src": "348:21:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12665,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "348:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "347:23:39"
},
"src": "313:58:39"
},
{
"anonymous": false,
"id": 12674,
"name": "LogTreasuryRiskpoolWalletSet",
"nameLocation": "382:28:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12673,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12670,
"indexed": false,
"mutability": "mutable",
"name": "riskpoolId",
"nameLocation": "419:10:39",
"nodeType": "VariableDeclaration",
"scope": 12674,
"src": "411:18:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12669,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "411:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12672,
"indexed": false,
"mutability": "mutable",
"name": "walletAddress",
"nameLocation": "439:13:39",
"nodeType": "VariableDeclaration",
"scope": 12674,
"src": "431:21:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12671,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "431:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "410:43:39"
},
"src": "376:78:39"
},
{
"anonymous": false,
"id": 12682,
"name": "LogTreasuryPremiumFeesSet",
"nameLocation": "466:25:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12681,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12676,
"indexed": false,
"mutability": "mutable",
"name": "productId",
"nameLocation": "500:9:39",
"nodeType": "VariableDeclaration",
"scope": 12682,
"src": "492:17:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12675,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "492:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12678,
"indexed": false,
"mutability": "mutable",
"name": "fixedFee",
"nameLocation": "519:8:39",
"nodeType": "VariableDeclaration",
"scope": 12682,
"src": "511:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12677,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "511:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12680,
"indexed": false,
"mutability": "mutable",
"name": "fractionalFee",
"nameLocation": "537:13:39",
"nodeType": "VariableDeclaration",
"scope": 12682,
"src": "529:21:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12679,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "529:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "491:60:39"
},
"src": "460:92:39"
},
{
"anonymous": false,
"id": 12690,
"name": "LogTreasuryCapitalFeesSet",
"nameLocation": "563:25:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12689,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12684,
"indexed": false,
"mutability": "mutable",
"name": "riskpoolId",
"nameLocation": "597:10:39",
"nodeType": "VariableDeclaration",
"scope": 12690,
"src": "589:18:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12683,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "589:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12686,
"indexed": false,
"mutability": "mutable",
"name": "fixedFee",
"nameLocation": "617:8:39",
"nodeType": "VariableDeclaration",
"scope": 12690,
"src": "609:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12685,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "609:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12688,
"indexed": false,
"mutability": "mutable",
"name": "fractionalFee",
"nameLocation": "635:13:39",
"nodeType": "VariableDeclaration",
"scope": 12690,
"src": "627:21:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12687,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "627:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "588:61:39"
},
"src": "557:93:39"
},
{
"anonymous": false,
"id": 12698,
"name": "LogTreasuryPremiumTransferred",
"nameLocation": "662:29:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12697,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12692,
"indexed": false,
"mutability": "mutable",
"name": "from",
"nameLocation": "700:4:39",
"nodeType": "VariableDeclaration",
"scope": 12698,
"src": "692:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12691,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "692:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12694,
"indexed": false,
"mutability": "mutable",
"name": "riskpoolWalletAddress",
"nameLocation": "714:21:39",
"nodeType": "VariableDeclaration",
"scope": 12698,
"src": "706:29:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12693,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "706:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12696,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "745:6:39",
"nodeType": "VariableDeclaration",
"scope": 12698,
"src": "737:14:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12695,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "737:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "691:61:39"
},
"src": "656:97:39"
},
{
"anonymous": false,
"id": 12706,
"name": "LogTreasuryPayoutTransferred",
"nameLocation": "764:28:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12705,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12700,
"indexed": false,
"mutability": "mutable",
"name": "riskpoolWalletAddress",
"nameLocation": "801:21:39",
"nodeType": "VariableDeclaration",
"scope": 12706,
"src": "793:29:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12699,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "793:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12702,
"indexed": false,
"mutability": "mutable",
"name": "to",
"nameLocation": "832:2:39",
"nodeType": "VariableDeclaration",
"scope": 12706,
"src": "824:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12701,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "824:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12704,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "844:6:39",
"nodeType": "VariableDeclaration",
"scope": 12706,
"src": "836:14:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12703,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "836:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "792:59:39"
},
"src": "758:94:39"
},
{
"anonymous": false,
"id": 12714,
"name": "LogTreasuryCapitalTransferred",
"nameLocation": "863:29:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12713,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12708,
"indexed": false,
"mutability": "mutable",
"name": "from",
"nameLocation": "901:4:39",
"nodeType": "VariableDeclaration",
"scope": 12714,
"src": "893:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12707,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "893:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12710,
"indexed": false,
"mutability": "mutable",
"name": "riskpoolWalletAddress",
"nameLocation": "915:21:39",
"nodeType": "VariableDeclaration",
"scope": 12714,
"src": "907:29:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12709,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "907:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12712,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "946:6:39",
"nodeType": "VariableDeclaration",
"scope": 12714,
"src": "938:14:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12711,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "938:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "892:61:39"
},
"src": "857:97:39"
},
{
"anonymous": false,
"id": 12722,
"name": "LogTreasuryFeesTransferred",
"nameLocation": "965:26:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 12721,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12716,
"indexed": false,
"mutability": "mutable",
"name": "from",
"nameLocation": "1000:4:39",
"nodeType": "VariableDeclaration",
"scope": 12722,
"src": "992:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12715,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "992:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12718,
"indexed": false,
"mutability": "mutable",
"name": "instanceWalletAddress",
"nameLocation": "1014:21:39",
"nodeType": "VariableDeclaration",
"scope": 12722,
"src": "1006:29:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12717,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1006:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "i