UNPKG

@luckyfinance/core

Version:

Core contracts for the LuckySwap protocol

1,195 lines 54 kB
{ "id": "8a1809b8545677e95a44e107b2c73e2c", "_format": "hh-sol-build-info-1", "solcVersion": "0.6.12", "solcLongVersion": "0.6.12+commit.27d51765", "input": { "language": "Solidity", "sources": { "contracts/interfaces/IMiniMinerV2.sol": { "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\npragma experimental ABIEncoderV2;\n\ninterface IMiniMinerV2 {\n struct UserInfo {\n uint256 amount;\n uint256 rewardDebt;\n }\n\n struct PoolInfo {\n uint128 accGoldNuggetPerShare;\n uint64 lastRewardTime;\n uint64 allocPoint;\n }\n\n function poolLength() external view returns (uint256);\n function updatePool(uint256 pid) external returns (IMiniMinerV2.PoolInfo memory);\n function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256);\n function deposit(uint256 pid, uint256 amount, address to) external;\n function withdraw(uint256 pid, uint256 amount, address to) external;\n function harvest(uint256 pid, address to) external;\n function withdrawAndHarvest(uint256 pid, uint256 amount, address to) external;\n function emergencyWithdraw(uint256 pid, address to) external;\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/IMiniMinerV2.sol": { "IMiniMinerV2": { "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": "accGoldNuggetPerShare", "type": "uint128" }, { "internalType": "uint64", "name": "lastRewardTime", "type": "uint64" }, { "internalType": "uint64", "name": "allocPoint", "type": "uint64" } ], "internalType": "struct IMiniMinerV2.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\":\"accGoldNuggetPerShare\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"lastRewardTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"allocPoint\",\"type\":\"uint64\"}],\"internalType\":\"struct IMiniMinerV2.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/IMiniMinerV2.sol\":\"IMiniMinerV2\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IMiniMinerV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.6.12;\\npragma experimental ABIEncoderV2;\\n\\ninterface IMiniMinerV2 {\\n struct UserInfo {\\n uint256 amount;\\n uint256 rewardDebt;\\n }\\n\\n struct PoolInfo {\\n uint128 accGoldNuggetPerShare;\\n uint64 lastRewardTime;\\n uint64 allocPoint;\\n }\\n\\n function poolLength() external view returns (uint256);\\n function updatePool(uint256 pid) external returns (IMiniMinerV2.PoolInfo memory);\\n function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256);\\n function deposit(uint256 pid, uint256 amount, address to) external;\\n function withdraw(uint256 pid, uint256 amount, address to) external;\\n function harvest(uint256 pid, address to) external;\\n function withdrawAndHarvest(uint256 pid, uint256 amount, address to) external;\\n function emergencyWithdraw(uint256 pid, address to) external;\\n}\",\"keccak256\":\"0xe67457886345932726cb372ceb4aa922cc9212a33c27e6a66346120ed17f8dbc\",\"license\":\"MIT\"}},\"version\":1}", "storageLayout": { "storage": [], "types": null }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } } } }, "sources": { "contracts/interfaces/IMiniMinerV2.sol": { "ast": { "absolutePath": "contracts/interfaces/IMiniMinerV2.sol", "exportedSymbols": { "IMiniMinerV2": [ 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": "IMiniMinerV2", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "IMiniMinerV2.UserInfo", "id": 7, "members": [ { "constant": false, "id": 4, "mutability": "mutable", "name": "amount", "nodeType": "VariableDeclaration", "overrides": null, "scope": 7, "src": "146:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "146: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": "170:18:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "170:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "name": "UserInfo", "nodeType": "StructDefinition", "scope": 79, "src": "120:75:0", "visibility": "public" }, { "canonicalName": "IMiniMinerV2.PoolInfo", "id": 14, "members": [ { "constant": false, "id": 9, "mutability": "mutable", "name": "accGoldNuggetPerShare", "nodeType": "VariableDeclaration", "overrides": null, "scope": 14, "src": "227:29:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" }, "typeName": { "id": 8, "name": "uint128", "nodeType": "ElementaryTypeName", "src": "227: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": "266:21:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" }, "typeName": { "id": 10, "name": "uint64", "nodeType": "ElementaryTypeName", "src": "266: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": "297:17:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" }, "typeName": { "id": 12, "name": "uint64", "nodeType": "ElementaryTypeName", "src": "297:6:0", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" } }, "value": null, "visibility": "internal" } ], "name": "PoolInfo", "nodeType": "StructDefinition", "scope": 79, "src": "201:120: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": "346:2:0" }, "returnParameters": { "id": 18, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 17, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 19, "src": "372:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "372:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "371:9:0" }, "scope": 79, "src": "327: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": "406:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "406:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "405:13:0" }, "returnParameters": { "id": 25, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 24, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 26, "src": "437:28:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_PoolInfo_$14_memory_ptr", "typeString": "struct IMiniMinerV2.PoolInfo" }, "typeName": { "contractScope": null, "id": 23, "name": "IMiniMinerV2.PoolInfo", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 14, "src": "437:21:0", "typeDescriptions": { "typeIdentifier": "t_struct$_PoolInfo_$14_storage_ptr", "typeString": "struct IMiniMinerV2.PoolInfo" } }, "value": null, "visibility": "internal" } ], "src": "436:30:0" }, "scope": 79, "src": "386:81: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": "490:12:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 27, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "490: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": "504:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 29, "name": "address", "nodeType": "ElementaryTypeName", "src": "504:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "489:29:0" }, "returnParameters": { "id": 36, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 33, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 37, "src": "542:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 32, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "542: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": "551:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 34, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "551:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "541:18:0" }, "scope": 79, "src": "472: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": "582:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 38, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "582: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": "595:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 40, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "595: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": "611:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 42, "name": "address", "nodeType": "ElementaryTypeName", "src": "611:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "581:41:0" }, "returnParameters": { "id": 45, "nodeType": "ParameterList", "parameters": [], "src": "631:0:0" }, "scope": 79, "src": "565:67: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": "655:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 47, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "655: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": "668:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 49, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "668: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": "684:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 51, "name": "address", "nodeType": "ElementaryTypeName", "src": "684:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "654:41:0" }, "returnParameters": { "id": 54, "nodeType": "ParameterList", "parameters": [], "src": "704:0:0" }, "scope": 79, "src": "637:68: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": "727:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 56, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "727: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": "740:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 58, "name": "address", "nodeType": "ElementaryTypeName", "src": "740:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "726:25:0" }, "returnParameters": { "id": 61, "nodeType": "ParameterList", "parameters": [], "src": "760:0:0" }, "scope": 79, "src": "710: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": "794:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 63, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "794: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": "807:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 65, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "807: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": "823:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 67, "name": "address", "nodeType": "ElementaryTypeName", "src": "823:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "793:41:0" }, "returnParameters": { "id": 70, "nodeType": "ParameterL