UNPKG

@polycity/core

Version:

Core contracts for the PolyCityDex protocol

1,189 lines (1,188 loc) 54.3 kB
{ "id": "1aaa8247e3fd8cdc94274c702cc6b491", "_format": "hh-sol-build-info-1", "solcVersion": "0.6.12", "solcLongVersion": "0.6.12+commit.27d51765", "input": { "language": "Solidity", "sources": { "contracts/interfaces/IMiniChefV2.sol": { "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\npragma experimental ABIEncoderV2;\n\ninterface IMiniChefV2 {\n struct UserInfo {\n uint256 amount;\n uint256 rewardDebt;\n }\n\n struct PoolInfo {\n uint128 accPichiPerShare;\n uint64 lastRewardTime;\n uint64 allocPoint;\n }\n\n function poolLength() external view returns (uint256);\n\n function updatePool(uint256 pid) external returns (IMiniChefV2.PoolInfo memory);\n\n function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256);\n\n function deposit(\n uint256 pid,\n uint256 amount,\n address to\n ) external;\n\n function withdraw(\n uint256 pid,\n uint256 amount,\n address to\n ) external;\n\n function harvest(uint256 pid, address to) external;\n\n function withdrawAndHarvest(\n uint256 pid,\n uint256 amount,\n address to\n ) external;\n\n function emergencyWithdraw(uint256 pid, address to) external;\n}\n" } }, "settings": { "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "abi", "evm.bytecode", "evm.deployedBytecode", "evm.methodIdentifiers", "metadata", "devdoc", "userdoc", "storageLayout", "evm.gasEstimates" ], "": [ "ast" ] } }, "metadata": { "useLiteralContent": true } } }, "output": { "contracts": { "contracts/interfaces/IMiniChefV2.sol": { "IMiniChefV2": { "abi": [ { "inputs": [ { "internalType": "uint256", "name": "pid", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "deposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "pid", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "emergencyWithdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "pid", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "harvest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "poolLength", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "pid", "type": "uint256" } ], "name": "updatePool", "outputs": [ { "components": [ { "internalType": "uint128", "name": "accPichiPerShare", "type": "uint128" }, { "internalType": "uint64", "name": "lastRewardTime", "type": "uint64" }, { "internalType": "uint64", "name": "allocPoint", "type": "uint64" } ], "internalType": "struct IMiniChefV2.PoolInfo", "name": "", "type": "tuple" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_pid", "type": "uint256" }, { "internalType": "address", "name": "_user", "type": "address" } ], "name": "userInfo", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "pid", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "pid", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "withdrawAndHarvest", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "evm": { "bytecode": { "linkReferences": {}, "object": "", "opcodes": "", "sourceMap": "" }, "deployedBytecode": { "immutableReferences": {}, "linkReferences": {}, "object": "", "opcodes": "", "sourceMap": "" }, "gasEstimates": null, "methodIdentifiers": { "deposit(uint256,uint256,address)": "8dbdbe6d", "emergencyWithdraw(uint256,address)": "2f940c70", "harvest(uint256,address)": "18fccc76", "poolLength()": "081e3eda", "updatePool(uint256)": "51eb05a6", "userInfo(uint256,address)": "93f1a40b", "withdraw(uint256,uint256,address)": "0ad58d2f", "withdrawAndHarvest(uint256,uint256,address)": "d1abb907" } }, "metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"emergencyWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"harvest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"}],\"name\":\"updatePool\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"accPichiPerShare\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"lastRewardTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"allocPoint\",\"type\":\"uint64\"}],\"internalType\":\"struct IMiniChefV2.PoolInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdrawAndHarvest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IMiniChefV2.sol\":\"IMiniChefV2\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IMiniChefV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.6.12;\\npragma experimental ABIEncoderV2;\\n\\ninterface IMiniChefV2 {\\n struct UserInfo {\\n uint256 amount;\\n uint256 rewardDebt;\\n }\\n\\n struct PoolInfo {\\n uint128 accPichiPerShare;\\n uint64 lastRewardTime;\\n uint64 allocPoint;\\n }\\n\\n function poolLength() external view returns (uint256);\\n\\n function updatePool(uint256 pid) external returns (IMiniChefV2.PoolInfo memory);\\n\\n function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256);\\n\\n function deposit(\\n uint256 pid,\\n uint256 amount,\\n address to\\n ) external;\\n\\n function withdraw(\\n uint256 pid,\\n uint256 amount,\\n address to\\n ) external;\\n\\n function harvest(uint256 pid, address to) external;\\n\\n function withdrawAndHarvest(\\n uint256 pid,\\n uint256 amount,\\n address to\\n ) external;\\n\\n function emergencyWithdraw(uint256 pid, address to) external;\\n}\\n\",\"keccak256\":\"0x3221652b0c46429a81e572b9a1a505ccb02174a9038aad9cf84401359088c5eb\",\"license\":\"MIT\"}},\"version\":1}", "storageLayout": { "storage": [], "types": null }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } } } }, "sources": { "contracts/interfaces/IMiniChefV2.sol": { "ast": { "absolutePath": "contracts/interfaces/IMiniChefV2.sol", "exportedSymbols": { "IMiniChefV2": [ 79 ] }, "id": 80, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 1, "literals": [ "solidity", "0.6", ".12" ], "nodeType": "PragmaDirective", "src": "32:23:0" }, { "id": 2, "literals": [ "experimental", "ABIEncoderV2" ], "nodeType": "PragmaDirective", "src": "56:33:0" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 79, "linearizedBaseContracts": [ 79 ], "name": "IMiniChefV2", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "IMiniChefV2.UserInfo", "id": 7, "members": [ { "constant": false, "id": 4, "mutability": "mutable", "name": "amount", "nodeType": "VariableDeclaration", "overrides": null, "scope": 7, "src": "145:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "145:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6, "mutability": "mutable", "name": "rewardDebt", "nodeType": "VariableDeclaration", "overrides": null, "scope": 7, "src": "169:18:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "169:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "name": "UserInfo", "nodeType": "StructDefinition", "scope": 79, "src": "119:75:0", "visibility": "public" }, { "canonicalName": "IMiniChefV2.PoolInfo", "id": 14, "members": [ { "constant": false, "id": 9, "mutability": "mutable", "name": "accPichiPerShare", "nodeType": "VariableDeclaration", "overrides": null, "scope": 14, "src": "226:24:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" }, "typeName": { "id": 8, "name": "uint128", "nodeType": "ElementaryTypeName", "src": "226:7:0", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 11, "mutability": "mutable", "name": "lastRewardTime", "nodeType": "VariableDeclaration", "overrides": null, "scope": 14, "src": "260:21:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" }, "typeName": { "id": 10, "name": "uint64", "nodeType": "ElementaryTypeName", "src": "260:6:0", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 13, "mutability": "mutable", "name": "allocPoint", "nodeType": "VariableDeclaration", "overrides": null, "scope": 14, "src": "291:17:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" }, "typeName": { "id": 12, "name": "uint64", "nodeType": "ElementaryTypeName", "src": "291:6:0", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" } }, "value": null, "visibility": "internal" } ], "name": "PoolInfo", "nodeType": "StructDefinition", "scope": 79, "src": "200:115:0", "visibility": "public" }, { "body": null, "documentation": null, "functionSelector": "081e3eda", "id": 19, "implemented": false, "kind": "function", "modifiers": [], "name": "poolLength", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 15, "nodeType": "ParameterList", "parameters": [], "src": "340:2:0" }, "returnParameters": { "id": 18, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 17, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 19, "src": "366:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "366:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "365:9:0" }, "scope": 79, "src": "321:54:0", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "51eb05a6", "id": 26, "implemented": false, "kind": "function", "modifiers": [], "name": "updatePool", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 22, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21, "mutability": "mutable", "name": "pid", "nodeType": "VariableDeclaration", "overrides": null, "scope": 26, "src": "401:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "401:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "400:13:0" }, "returnParameters": { "id": 25, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 24, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 26, "src": "432:27:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_PoolInfo_$14_memory_ptr", "typeString": "struct IMiniChefV2.PoolInfo" }, "typeName": { "contractScope": null, "id": 23, "name": "IMiniChefV2.PoolInfo", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 14, "src": "432:20:0", "typeDescriptions": { "typeIdentifier": "t_struct$_PoolInfo_$14_storage_ptr", "typeString": "struct IMiniChefV2.PoolInfo" } }, "value": null, "visibility": "internal" } ], "src": "431:29:0" }, "scope": 79, "src": "381:80:0", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "93f1a40b", "id": 37, "implemented": false, "kind": "function", "modifiers": [], "name": "userInfo", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 31, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 28, "mutability": "mutable", "name": "_pid", "nodeType": "VariableDeclaration", "overrides": null, "scope": 37, "src": "485:12:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 27, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "485:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 30, "mutability": "mutable", "name": "_user", "nodeType": "VariableDeclaration", "overrides": null, "scope": 37, "src": "499:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 29, "name": "address", "nodeType": "ElementaryTypeName", "src": "499:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "484:29:0" }, "returnParameters": { "id": 36, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 33, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 37, "src": "537:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 32, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "537:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 35, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 37, "src": "546:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 34, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "546:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "536:18:0" }, "scope": 79, "src": "467:88:0", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "8dbdbe6d", "id": 46, "implemented": false, "kind": "function", "modifiers": [], "name": "deposit", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 44, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 39, "mutability": "mutable", "name": "pid", "nodeType": "VariableDeclaration", "overrides": null, "scope": 46, "src": "587:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 38, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "587:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 41, "mutability": "mutable", "name": "amount", "nodeType": "VariableDeclaration", "overrides": null, "scope": 46, "src": "608:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 40, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "608:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 43, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 46, "src": "632:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 42, "name": "address", "nodeType": "ElementaryTypeName", "src": "632:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "577:71:0" }, "returnParameters": { "id": 45, "nodeType": "ParameterList", "parameters": [], "src": "657:0:0" }, "scope": 79, "src": "561:97:0", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "0ad58d2f", "id": 55, "implemented": false, "kind": "function", "modifiers": [], "name": "withdraw", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 53, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 48, "mutability": "mutable", "name": "pid", "nodeType": "VariableDeclaration", "overrides": null, "scope": 55, "src": "691:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 47, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "691:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 50, "mutability": "mutable", "name": "amount", "nodeType": "VariableDeclaration", "overrides": null, "scope": 55, "src": "712:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 49, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "712:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 52, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 55, "src": "736:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 51, "name": "address", "nodeType": "ElementaryTypeName", "src": "736:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "681:71:0" }, "returnParameters": { "id": 54, "nodeType": "ParameterList", "parameters": [], "src": "761:0:0" }, "scope": 79, "src": "664:98:0", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "18fccc76", "id": 62, "implemented": false, "kind": "function", "modifiers": [], "name": "harvest", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 60, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 57, "mutability": "mutable", "name": "pid", "nodeType": "VariableDeclaration", "overrides": null, "scope": 62, "src": "785:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 56, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "785:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 59, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 62, "src": "798:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 58, "name": "address", "nodeType": "ElementaryTypeName", "src": "798:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "784:25:0" }, "returnParameters": { "id": 61, "nodeType": "ParameterList", "parameters": [], "src": "818:0:0" }, "scope": 79, "src": "768:51:0", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "d1abb907", "id": 71, "implemented": false, "kind": "function", "modifiers": [], "name": "withdrawAndHarvest", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 69, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 64, "mutability": "mutable", "name": "pid", "nodeType": "VariableDeclaration", "overrides": null, "scope": 71, "src": "862:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 63, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "862:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 66, "mutability": "mutable", "name": "amount", "nodeType": "VariableDeclaration", "overrides": null, "scope": 71, "src": "883:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 65, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "883:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 68, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 71, "src": "907:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 67, "name": "address", "nodeType": "ElementaryTypeName", "src": "907:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal"