Reaper.vy #
vyper:
0.2.10
Events #
CommitOwnership
owner
: address, notIndexed
ApplyOwnership
owner
: address, notIndexed
Methods #
ABI #
[
{
"name": "CommitOwnership",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "ApplyOwnership",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"stateMutability": "nonpayable",
"type": "constructor",
"inputs": [
{
"name": "_lpToken",
"type": "address"
},
{
"name": "_farmToken",
"type": "address"
},
{
"name": "_controller",
"type": "address"
},
{
"name": "_votingController",
"type": "address"
},
{
"name": "_adminFee",
"type": "uint256"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "depositApprove",
"inputs": [
{
"name": "_spender",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"outputs": [],
"gas": 36772
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "deposit",
"inputs": [
{
"name": "_amount",
"type": "uint256"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "deposit",
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_account",
"type": "address"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "deposit",
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_account",
"type": "address"
},
{
"name": "_feeOptimization",
"type": "bool"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "deposit",
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_account",
"type": "address"
},
{
"name": "_feeOptimization",
"type": "bool"
},
{
"name": "_gasToken",
"type": "address"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "invest",
"inputs": [],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "invest",
"inputs": [
{
"name": "_gasToken",
"type": "address"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "reap",
"inputs": [],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "reap",
"inputs": [
{
"name": "_gasToken",
"type": "address"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "withdraw",
"inputs": [
{
"name": "_amount",
"type": "uint256"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "withdraw",
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_gasToken",
"type": "address"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "snapshot",
"inputs": [],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "snapshot",
"inputs": [
{
"name": "_account",
"type": "address"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "snapshot",
"inputs": [
{
"name": "_account",
"type": "address"
},
{
"name": "_gasToken",
"type": "address"
}
],
"outputs": []
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "setGasToken",
"inputs": [
{
"name": "_gasToken",
"type": "address"
},
{
"name": "_value",
"type": "bool"
}
],
"outputs": [],
"gas": 36783
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "setReaperStrategy",
"inputs": [
{
"name": "_reaperStrategy",
"type": "address"
}
],
"outputs": [],
"gas": 73487
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "kill",
"inputs": [],
"outputs": [],
"gas": 36411
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "setAdminFee",
"inputs": [
{
"name": "_percent",
"type": "uint256"
}
],
"outputs": [],
"gas": 36562
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "_futureOwner",
"type": "address"
}
],
"outputs": [],
"gas": 37921
},
{
"stateMutability": "nonpayable",
"type": "function",
"name": "applyOwnership",
"inputs": [],
"outputs": [],
"gas": 38777
},
{
"stateMutability": "view",
"type": "function",
"name": "lpToken",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"gas": 1448
},
{
"stateMutability": "view",
"type": "function",
"name": "farmToken",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"gas": 1478
},
{
"stateMutability": "view",
"type": "function",
"name": "controller",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"gas": 1508
},
{
"stateMutability": "view",
"type": "function",
"name": "reaperStrategy",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"gas": 1538
},
{
"stateMutability": "view",
"type": "function",
"name": "votingController",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"gas": 1568
},
{
"stateMutability": "view",
"type": "function",
"name": "balances",
"inputs": [
{
"name": "arg0",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 1813
},
{
"stateMutability": "view",
"type": "function",
"name": "depositAllowance",
"inputs": [
{
"name": "arg0",
"type": "address"
},
{
"name": "arg1",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 2058
},
{
"stateMutability": "view",
"type": "function",
"name": "totalBalances",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 1658
},
{
"stateMutability": "view",
"type": "function",
"name": "isKilled",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"gas": 1688
},
{
"stateMutability": "view",
"type": "function",
"name": "reapIntegral",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 1718
},
{
"stateMutability": "view",
"type": "function",
"name": "reapIntegralFor",
"inputs": [
{
"name": "arg0",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 1963
},
{
"stateMutability": "view",
"type": "function",
"name": "unitCostIntegral",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 1778
},
{
"stateMutability": "view",
"type": "function",
"name": "lastReapTimestampFor",
"inputs": [
{
"name": "arg0",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 2023
},
{
"stateMutability": "view",
"type": "function",
"name": "lastUnitCostIntegralFor",
"inputs": [
{
"name": "arg0",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 2053
},
{
"stateMutability": "view",
"type": "function",
"name": "emissionIntegral",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 1868
},
{
"stateMutability": "view",
"type": "function",
"name": "voteIntegral",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 1898
},
{
"stateMutability": "view",
"type": "function",
"name": "adminFee",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"gas": 1928
},
{
"stateMutability": "view",
"type": "function",
"name": "gasTokens",
"inputs": [
{
"name": "arg0",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"gas": 2173
},
{
"stateMutability": "view",
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"gas": 1988
},
{
"stateMutability": "view",
"type": "function",
"name": "futureOwner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"gas": 2018
}
]
Byte code #
0x60a0611bd0610140396020611bd060c03960c05160a01c1561002057600080fd5b60206020611bd00160c03960c05160a01c1561003b57600080fd5b60206040611bd00160c03960c05160a01c1561005657600080fd5b60206060611bd00160c03960c05160a01c1561007157600080fd5b600061014051141515156100c4576308c379a06101e0526020610200526013610220527f5f6c70546f6b656e206973206e6f742073657400000000000000000000000000610240526102205060646101fcfd5b60006101805114151515610117576308c379a06101e0526020610200526016610220527f5f636f6e74726f6c6c6572206973206e6f742073657400000000000000000000610240526102205060646101fcfd5b60006101a0511415151561016a576308c379a06101e052602061020052601c610220527f5f766f74696e67436f6e74726f6c6c6572206973206e6f742073657400000000610240526102205060646101fcfd5b600061016051141515156101bd576308c379a06101e0526020610200526015610220527f5f6661726d546f6b656e206973206e6f74207365740000000000000000000000610240526102205060646101fcfd5b6103e86101c05111151515610211576308c379a06101e0526020610200526010610220527f5f61646d696e466565203e203130302500000000000000000000000000000000610240526102205060646101fcfd5b61014051600055610180516002556101a051600455610160516001556101c051601055336012556020610280604463095ea7b36101e05261018051610200527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610220526101fc6000610160515af161028957600080fd5b601f3d1161029657600080fd5b60005061028050611bb856600436101561000d576113ad565b600035601c52600051341561002157600080fd5b63adc1ab748114156100d95760043560a01c1561003d57600080fd5b602435151561004d57600161006c565b60063360e05260c052604060c02060043560e05260c052604060c02054155b15156100b7576308c379a0610140526020610160526010610180527f616c726561647920617070726f766564000000000000000000000000000000006101a05261018050606461015cfd5b60243560063360e05260c052604060c02060043560e05260c052604060c02055005b63b6b55f258114156100fb5733610140526000610160526000610180526101de565b636e553f658114156101335760006101605260006101805260243560a01c1561012357600080fd5b60206024610140376000506101de565b6383df674781141561017d5760006101805260243560a01c1561015557600080fd5b602060246101403760443560011c1561016d57600080fd5b60206044610160376000506101de565b63c22f94068114156101d95760243560a01c1561019957600080fd5b602060246101403760443560011c156101b157600080fd5b602060446101603760643560a01c156101c957600080fd5b60206064610180376000506101de565b610549565b601454156101eb57600080fd5b60016014556000600435111515610241576308c379a06101a05260206101c05260186101e0527f616d6f756e74206d757374206265206772656174657220300000000000000000610200526101e05060646101bcfd5b5a6101a052336101405118156102d85760066101405160e05260c052604060c0203360e05260c052604060c020546101c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101c05118156102d8576101c051600435808210156102b257600080fd5b8082039050905060066101405160e05260c052604060c0203360e05260c052604060c020555b6101405161016051610180516101a051610140516101c0526101c05160065801611512565b6101a052610180526101605261014052600050602061028060646323b872dd6101c052336101e0523061020052600435610220526101dc60006000545af161034457600080fd5b601f3d1161035157600080fd5b600050610280506007805460043581818301101561036e57600080fd5b808201905090508155506003546101c05260006101c05118156104b35760206102a0604463b5ec3e406102005260043561022052610140516102405261021c6101c0515afa6103bc57600080fd5b601f3d116103c957600080fd5b6000506102a0516101e05260056101405160e05260c052604060c02080546101e0518181830110156103fa57600080fd5b8082019050905081555060006004356101e0518082101561041a57600080fd5b80820390509050111561046c5760053060e05260c052604060c02080546004356101e0518082101561044b57600080fd5b8082039050905081818301101561046157600080fd5b808201905090508155505b6101605115156104ae576101c0513b61048457600080fd5b60006000602463b6b55f25610200526004356102205261021c60006101c0515af16104ae57600080fd5b6104e3565b60056101405160e05260c052604060c02080546004358181830110156104d857600080fd5b808201905090508155505b6101405161016051610180516101a0516101c051610180516101e05233610200526101a051610220526084610240526102405161022051610200516101e051600658016113b3565b6101c0526101a0526101805261016052610140526000506000601455005b63e8b5e51f81141561056057600061014052610591565b6303f9c79381141561058c5760043560a01c1561057c57600080fd5b6020600461014037600050610591565b610688565b6014541561059e57600080fd5b60016014555a61016052602061022060246370a082316101a052306101c0526101bc6000545afa6105ce57600080fd5b601f3d116105db57600080fd5b60005061022051610180526101805115156105fb57600060145560006000f35b6003543b61060857600080fd5b600060006024632afcf4806101a052610180516101c0526101bc60006003545af161063257600080fd5b610140516101605161018051610140516101a052336101c052610160516101e052602461020052610200516101e0516101c0516101a051600658016113b3565b6101805261016052610140526000506000601455005b63c72896ac81141561069f576000610140526106d0565b638af9f4938114156106cb5760043560a01c156106bb57600080fd5b60206004610140376000506106d0565b61076c565b601454156106dd57600080fd5b60016014555a6101605260206101e0600463c72896ac6101805261019c60006003545af161070a57600080fd5b601f3d1161071757600080fd5b6000506101e05061014051610160516101405161018052336101a052610160516101c05260246101e0526101e0516101c0516101a05161018051600658016113b3565b61016052610140526000506000601455005b632e1a7d4d811415610783576000610140526107b3565b62f714ce8114156107ae5760243560a01c1561079e57600080fd5b60206024610140376000506107b3565b610b39565b601454156107c057600080fd5b60016014555a61016052610140516101605133610180526101805160065801611512565b6101605261014052600050600435610180526003546101a05260006101a0511815610a4d576020610260604463917564b56101c0526004356101e05233610200526101dc6101a0515afa61083757600080fd5b601f3d1161084457600080fd5b60005061026051610180526000610180511115610a48576000546101c052602061028060246370a0823161020052306102205261021c6101c0515afa61088957600080fd5b601f3d1161089657600080fd5b600050610280516101e052610180516101e0511015156108f95760206102a0604463a9059cbb610200523361022052610180516102405261021c60006000545af16108e057600080fd5b601f3d116108ed57600080fd5b6000506102a0506109e0565b60006101e05111156109a35760206102a0604463a9059cbb6102005233610220526101e0516102405261021c60006000545af161093557600080fd5b601f3d1161094257600080fd5b6000506102a0506101a0513b61095757600080fd5b60006000604462f714ce61020052610180516101e0518082101561097a57600080fd5b8082039050905061022052336102405261021c60006101a0515af161099e57600080fd5b6109e0565b6101a0513b6109b157600080fd5b60006000604462f714ce610200526101805161022052336102405261021c60006101a0515af16109e057600080fd5b600060043561018051808210156109f657600080fd5b808203905090501115610a485760053060e05260c052604060c02080546004356101805180821015610a2757600080fd5b80820390509050818183011015610a3d57600080fd5b808201905090508155505b610a91565b6020610260604463a9059cbb6101c052336101e052600435610200526101dc60006000545af1610a7c57600080fd5b601f3d11610a8957600080fd5b600050610260505b60053360e05260c052604060c02080546101805180821015610ab257600080fd5b80820390509050815550600780546101805180821015610ad157600080fd5b808203905090508155506101405161016051610180516101a051610140516101c052336101e052610160516102005260446102205261022051610200516101e0516101c051600658016113b3565b6101a0526101805261016052610140526000506000601455005b639711715a811415610b55573361014052600061016052610bd0565b6326512160811415610b875760006101605260043560a01c15610b7757600080fd5b6020600461014037600050610bd0565b63204e94b0811415610bcb5760043560a01c15610ba357600080fd5b602060046101403760243560a01c15610bbb57600080fd5b6020602461016037600050610bd0565b610c56565b5a61018052610140516101605161018051610140516101a0526101a05160065801611512565b610180526101605261014052600050610140516101605161018051610160516101a052336101c052610180516101e052604461020052610200516101e0516101c0516101a051600658016113b3565b610180526101605261014052600050005b636ba7ae64811415610d3a5760043560a01c15610c7257600080fd5b60243560011c15610c8257600080fd5b60125433141515610cd2576308c379a061014052602061016052600a610180527f6f776e6572206f6e6c79000000000000000000000000000000000000000000006101a05261018050606461015cfd5b600060043514151515610d24576308c379a0610140526020610160526014610180527f5f676173546f6b656e206973206e6f74207365740000000000000000000000006101a05261018050606461015cfd5b602435601160043560e05260c052604060c02055005b63be7621f3811415610e4f5760043560a01c15610d5657600080fd5b60125433141515610da6576308c379a061014052602061016052600a610180527f6f776e6572206f6e6c79000000000000000000000000000000000000000000006101a05261018050606461015cfd5b60206101e0604463095ea7b361014052600435610160527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101805261015c60006000545af1610df557600080fd5b601f3d11610e0257600080fd5b6000506101e0507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60063060e05260c052604060c02060043560e05260c052604060c02055600435600355005b6341c0e1b5811415610eb25760125433141515610eab576308c379a061014052602061016052600a610180527f6f776e6572206f6e6c79000000000000000000000000000000000000000000006101a05261018050606461015cfd5b6001600855005b638beb60b6811415610f695760125433141515610f0e576308c379a061014052602061016052600a610180527f6f776e6572206f6e6c79000000000000000000000000000000000000000000006101a05261018050606461015cfd5b6103e860043511151515610f61576308c379a0610140526020610160526010610180527f5f61646d696e466565203e2031303025000000000000000000000000000000006101a05261018050606461015cfd5b600435601055005b63f2fde38b81141561100b5760043560a01c15610f8557600080fd5b60125433141515610fd5576308c379a061014052602061016052600a610180527f6f776e6572206f6e6c79000000000000000000000000000000000000000000006101a05261018050606461015cfd5b600435601355600435610140527f2f56810a6bf40af059b96d3aea4db54081f378029a518390491093a7b67032e96020610140a1005b63011902078114156110f95760125433141515611067576308c379a061014052602061016052600a610180527f6f776e6572206f6e6c79000000000000000000000000000000000000000000006101a05261018050606461015cfd5b60135461014052600061014051141515156110c1576308c379a061016052602061018052600d6101a0527f6f776e6572206e6f7420736574000000000000000000000000000000000000006101c0526101a050606461017cfd5b6101405160125561014051610160527febee2d5739011062cb4f14113f3b36bf0ffe3da5c0568f64189d1012a11891056020610160a1005b635fcbd2858114156111115760005460005260206000f35b63c2442f938114156111295760015460005260206000f35b63f77c47918114156111415760025460005260206000f35b637e6c55a18114156111595760035460005260206000f35b63517afbcf8114156111715760045460005260206000f35b6327e235e38114156111a75760043560a01c1561118d57600080fd5b600560043560e05260c052604060c0205460005260206000f35b6363435f108114156111fb5760043560a01c156111c357600080fd5b60243560a01c156111d357600080fd5b600660043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b63a69a2ad18114156112135760075460005260206000f35b638fe8a10181141561122b5760085460005260206000f35b63a006e8518114156112435760095460005260206000f35b63e50da4c98114156112795760043560a01c1561125f57600080fd5b600a60043560e05260c052604060c0205460005260206000f35b632265c8ec81141561129157600b5460005260206000f35b63bc93934e8114156112c75760043560a01c156112ad57600080fd5b600c60043560e05260c052604060c0205460005260206000f35b63f95459ba8114156112fd5760043560a01c156112e357600080fd5b600d60043560e05260c052604060c0205460005260206000f35b6314fe1c0481141561131557600e5460005260206000f35b6355f4563581141561132d57600f5460005260206000f35b63a0be06f98114156113455760105460005260206000f35b63612b997181141561137b5760043560a01c1561136157600080fd5b601160043560e05260c052604060c0205460005260206000f35b638da5cb5b8114156113935760125460005260206000f35b63b9e9d1aa8114156113ab5760135460005260206000f35b505b60006000fd5b6101c0526101405261016052610180526101a0526101405115156113d7576101c051565b60116101405160e05260c052604060c020541515611434576308c379a06101e0526020610200526015610220527f756e737570706f727465642067617320746f6b656e0000000000000000000000610240526102205060646101fcfd5b6152086101805181818301101561144a57600080fd5b808201905090505a8082101561145f57600080fd5b8082039050905060106101a051808202821582848304141761148057600080fd5b8090509050905081818301101561149657600080fd5b808201905090506101e05260206102a0604463079d229f6102005261016051610220526101e05161374a8181830110156114cf57600080fd5b8082019050905061a0aa808204905090506102405261021c6000610140515af16114f857600080fd5b601f3d1161150557600080fd5b6000506102a0506101c051565b6101605261014052602061020060046314fe1c046101a0526101bc6001545afa61153b57600080fd5b601f3d1161154857600080fd5b6000506102005161018052602061024060246302cb92db6101c052306101e0526101dc6004545afa61157957600080fd5b601f3d1161158657600080fd5b600050610240516101a0526040366101c037600b5461020052600854151561166a5761018051600e54808210156115bc57600080fd5b808203905090506101a051600f54808210156115d757600080fd5b8082039050905080820282158284830414176115f257600080fd5b809050905090506101c05261020080516101c051600754808061161457600080fd5b82049050905081818301101561162957600080fd5b8082019050905081525061018051600e556101a051600f55600980546101c05181818301101561165857600080fd5b8082019050905081555061020051600b555b60056101405160e05260c052604060c0205461020051600d6101405160e05260c052604060c020548082101561169f57600080fd5b8082039050905080820282158284830414176116ba57600080fd5b80905090509050670de0b6b3a76400008082049050905042600c6101405160e05260c052604060c02054808210156116f157600080fd5b80820390509050808061170357600080fd5b820490509050610220526010546102405260006102405118156117eb57600a6101405160e05260c052604060c0208054610220516103e8610240518082101561174b57600080fd5b80820390509050808202821582848304141761176657600080fd5b809050905090506103e88082049050905081818301101561178657600080fd5b80820190509050815550600a3060e05260c052604060c0208054610220516102405180820282158284830414176117bc57600080fd5b809050905090506103e8808204905090508181830110156117dc57600080fd5b8082019050905081555061181c565b600a6101405160e05260c052604060c02080546102205181818301101561181157600080fd5b808201905090508155505b600a6101405160e05260c052604060c020805460056101405160e05260c052604060c0205461020051600d6101405160e05260c052604060c020548082101561186457600080fd5b80820390509050808202821582848304141761187f57600080fd5b80905090509050670de0b6b3a76400008082049050905042600c6101405160e05260c052604060c02054808210156118b657600080fd5b8082039050905080806118c857600080fd5b8204905090508181830110156118dd57600080fd5b8082019050905081555042600c6101405160e05260c052604060c0205561020051600d6101405160e05260c052604060c0205561016051565b6102a2611bb8036102a26000396102a2611bb8036000f3