[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "staker", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "AddStake", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "staker", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountStaked", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountReceived", "type": "uint256" } ], "name": "RemoveStake", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "addressToTimestamp", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_newAmount", "type": "uint256" } ], "name": "changeCooldown", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "compound", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "cooldown", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } ], "name": "decreaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_contract", "type": "address" } ], "name": "emergencyWithdrawERC20", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_staker", "type": "address" } ], "name": "getShareFor", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], "name": "increaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "bc", "type": "address" } ], "name": "setBC", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "stake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_staker", "type": "address" } ], "name": "timeLeftFor", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalView", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]
608060405262093a806007556009805460ff191690553480156200002257600080fd5b50604080518082018252601581527f5374616b656420427574746572666c79204361736800000000000000000000006020808301918252835180850190945260068452650e6c48682a6960d31b908401528151919291620000869160039162000142565b5080516200009c90600490602084019062000142565b505050620000b9620000b3620000ec60201b60201c565b620000f0565b600160065560098054610100600160a81b031916744ba16daf8ed418ded920c66e45cc3eaffde53ac70017905562000225565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200015090620001e8565b90600052602060002090601f016020900481019282620001745760008555620001bf565b82601f106200018f57805160ff1916838001178555620001bf565b82800160010185558215620001bf579182015b82811115620001bf578251825591602001919060010190620001a2565b50620001cd929150620001d1565b5090565b5b80821115620001cd5760008155600101620001d2565b600181811c90821680620001fd57607f821691505b602082108114156200021f57634e487b7160e01b600052602260045260246000fd5b50919050565b6118ac80620002356000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806382cd8c0c116100de578063a694fc3a11610097578063db11b97911610071578063db11b97914610329578063dd62ed3e1461033c578063f2fde38b1461034f578063f69e20461461036257600080fd5b8063a694fc3a146102e3578063a9059cbb146102f6578063bcb07d6c1461030957600080fd5b806382cd8c0c1461026a57806388392d0e1461027d5780638da5cb5b1461029a5780638e8fe583146102b557806395d89b41146102c8578063a457c2d7146102d057600080fd5b80633950935111610130578063395093511461020057806340c442de1461021357806370a0823114610228578063715018a61461025157806373cf575a14610259578063787a08a61461026157600080fd5b806306fdde0314610178578063095ea7b31461019657806318160ddd146101b95780631dee720a146101cb57806323b872dd146101de578063313ce567146101f1575b600080fd5b61018061036a565b60405161018d919061163e565b60405180910390f35b6101a96101a43660046115c0565b6103fc565b604051901515815260200161018d565b6002545b60405190815260200161018d565b6101bd6101d936600461152f565b610416565b6101a96101ec366004611584565b6104f6565b6040516012815260200161018d565b6101a961020e3660046115c0565b61051a565b61022661022136600461152f565b61053c565b005b6101bd61023636600461152f565b6001600160a01b031660009081526020819052604090205490565b61022661064a565b61022661065e565b6101bd60075481565b61022661027836600461160c565b61082c565b610285610839565b6040805192835260208301919091520161018d565b6005546040516001600160a01b03909116815260200161018d565b6102266102c336600461152f565b6108cc565b6101806108fc565b6101a96102de3660046115c0565b61090b565b6102266102f136600461160c565b610986565b6101a96103043660046115c0565b610b3b565b6101bd61031736600461152f565b60086020526000908152604090205481565b6101bd61033736600461152f565b610b49565b6101bd61034a366004611551565b610bb7565b61022661035d36600461152f565b610be2565b610226610c5b565b60606003805461037990611825565b80601f01602080910402602001604051908101604052809291908181526020018280546103a590611825565b80156103f25780601f106103c7576101008083540402835291602001916103f2565b820191906000526020600020905b8154815290600101906020018083116103d557829003601f168201915b5050505050905090565b60003361040a818585610dff565b60019150505b92915050565b6001600160a01b03811660009081526020819052604081205481906009546040516370a0823160e01b81523060048201529192506000916101009091046001600160a01b0316906370a082319060240160206040518083038186803b15801561047e57600080fd5b505afa158015610492573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b69190611625565b905060006104c360025490565b905080156104eb576002546104d883856117ef565b6104e291906116e2565b95945050505050565b506000949350505050565b600033610504858285610f23565b61050f858585610f9d565b506001949350505050565b60003361040a81858561052d8383610bb7565b61053791906116ca565b610dff565b610544610fe7565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b15801561058f57600080fd5b505afa1580156105a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c79190611625565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561060d57600080fd5b505af1158015610621573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064591906115ea565b505050565b610652610fe7565b61065c6000611041565b565b6002600654141561068a5760405162461bcd60e51b815260040161068190611693565b60405180910390fd5b60026006556007543360009081526008602052604090205442916106ad916116ca565b11156106f15760405162461bcd60e51b81526020600482015260136024820152725374616b65206e6f7420646f6e65207965742160681b6044820152606401610681565b60006106fc33610416565b9050600081116107445760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20756e5374616b652160681b6044820152606401610681565b336000818152602081905260409020549061075f9082611093565b60095460405163a9059cbb60e01b8152336004820152602481018490526101009091046001600160a01b03169063a9059cbb90604401602060405180830381600087803b1580156107af57600080fd5b505af11580156107c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e791906115ea565b50604080518281526020810184905233917f1fe15ea5d7dbc5d90323d1effa01c82150326aa1ecc0397d0624498f1d7eb4c8910160405180910390a250506001600655565b610834610fe7565b600755565b60008061084560025490565b6009546040516370a0823160e01b81523060048201526101009091046001600160a01b0316906370a082319060240160206040518083038186803b15801561088c57600080fd5b505afa1580156108a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c49190611625565b915091509091565b6108d4610fe7565b600980546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60606004805461037990611825565b600033816109198286610bb7565b9050838110156109795760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610681565b61050f8286868403610dff565b600260065414156109a95760405162461bcd60e51b815260040161068190611693565b600260065569021e19e0c9bab2400000811015610a085760405162461bcd60e51b815260206004820152601c60248201527f4d696e696d756d207374616b652069732031306b2024624341534821000000006044820152606401610681565b6009546040516323b872dd60e01b8152336004820152306024820152604481018390526101009091046001600160a01b0316906323b872dd90606401602060405180830381600087803b158015610a5e57600080fd5b505af1158015610a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9691906115ea565b610ae25760405162461bcd60e51b815260206004820152601a60248201527f4661696c656420746f207472616e7366657220246243415348210000000000006044820152606401610681565b336000818152600860205260409020429055610afe90826111e1565b60405181815233907fef4919d049fef8ef69d1c2520df0e53841a2cc408d33a3ea5db9b63f1a80051c9060200160405180910390a2506001600655565b60003361040a818585610f9d565b6007546001600160a01b03821660009081526008602052604081205490914291610b7391906116ca565b1015610b8157506000919050565b6007546001600160a01b0383166000908152600860205260409020544291610ba8916116ca565b610410919061180e565b919050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610bea610fe7565b6001600160a01b038116610c4f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610681565b610c5881611041565b50565b60026006541415610c7e5760405162461bcd60e51b815260040161068190611693565b6002600655600754336000908152600860205260409020544291610ca1916116ca565b1115610ce55760405162461bcd60e51b81526020600482015260136024820152725374616b65206e6f7420646f6e65207965742160681b6044820152606401610681565b6000610cf033610416565b905060008111610d385760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20756e5374616b652160681b6044820152606401610681565b336000908152602081905260408120549081831115610d5e57610d5b828461180e565b90505b60008111610da45760405162461bcd60e51b8152602060048201526013602482015272139bdd1a1a5b99c81d1bc818dbdb5c1bdd5b99606a1b6044820152606401610681565b336000818152600860205260409020429055610dc090826111e1565b60405181815233907fef4919d049fef8ef69d1c2520df0e53841a2cc408d33a3ea5db9b63f1a80051c9060200160405180910390a25050600160065550565b6001600160a01b038316610e615760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610681565b6001600160a01b038216610ec25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610681565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610f2f8484610bb7565b90506000198114610f975781811015610f8a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610681565b610f978484848403610dff565b50505050565b60095460ff16610fdc5760405162461bcd60e51b815260206004820152600a60248201526927379031b0b71032379760b11b6044820152606401610681565b61064583838361126b565b6005546001600160a01b0316331461065c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610681565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166110f35760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610681565b6001600160a01b038216600090815260208190526040902054818110156111675760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610681565b6001600160a01b038316600090815260208190526040812083830390556002805484929061119690849061180e565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6111ed6012600a611747565b6111fb906305f5e1006117ef565b8161120560025490565b61120f91906116ca565b111561125d5760405162461bcd60e51b815260206004820152601b60248201527f4d6178206e756d626572206f6620746f6b656e73206d696e74656400000000006044820152606401610681565b6112678282611439565b5050565b6001600160a01b0383166112cf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610681565b6001600160a01b0382166113315760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610681565b6001600160a01b038316600090815260208190526040902054818110156113a95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610681565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906113e09084906116ca565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161142c91815260200190565b60405180910390a3610f97565b6001600160a01b03821661148f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610681565b80600260008282546114a191906116ca565b90915550506001600160a01b038216600090815260208190526040812080548392906114ce9084906116ca565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b80356001600160a01b0381168114610bb257600080fd5b60006020828403121561154157600080fd5b61154a82611518565b9392505050565b6000806040838503121561156457600080fd5b61156d83611518565b915061157b60208401611518565b90509250929050565b60008060006060848603121561159957600080fd5b6115a284611518565b92506115b060208501611518565b9150604084013590509250925092565b600080604083850312156115d357600080fd5b6115dc83611518565b946020939093013593505050565b6000602082840312156115fc57600080fd5b8151801515811461154a57600080fd5b60006020828403121561161e57600080fd5b5035919050565b60006020828403121561163757600080fd5b5051919050565b600060208083528351808285015260005b8181101561166b5785810183015185820160400152820161164f565b8181111561167d576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600082198211156116dd576116dd611860565b500190565b6000826116ff57634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561173f57816000190482111561172557611725611860565b8085161561173257918102915b93841c9390800290611709565b509250929050565b600061154a838360008261175d57506001610410565b8161176a57506000610410565b8160018114611780576002811461178a576117a6565b6001915050610410565b60ff84111561179b5761179b611860565b50506001821b610410565b5060208310610133831016604e8410600b84101617156117c9575081810a610410565b6117d38383611704565b80600019048211156117e7576117e7611860565b029392505050565b600081600019048311821515161561180957611809611860565b500290565b60008282101561182057611820611860565b500390565b600181811c9082168061183957607f821691505b6020821081141561185a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122026479ec08d58adba482be62d3e25d083331beded56344892e5985b9e89250bf264736f6c63430008070033