3k txs
3.1k calls
constructor
constructor(address _owner, address _stakeToken, address _points, address _pointsOperator, uint256 _lockTime, uint32 _percent)
functions
getRewardOf
viewfunction getRewardOf(address addr) view returns (uint256)
lockTime
viewfunction lockTime() view returns (uint256)
minBalance
viewfunction minBalance() view returns (uint256)
owner
viewfunction owner() view returns (address)
percent
viewfunction percent() view returns (uint32)
stakeToken
viewfunction stakeToken() view returns (address)
totalLocked
viewfunction totalLocked() view returns (uint256)
users
viewfunction users(address) view returns (uint256 balance, uint256 lastClaimTimestamp, uint256 unlockTimestamp, uint256 yearlyReward)
claim
nonpayablefunction claim() returns (uint256 reward)
renounceOwnership
nonpayablefunction renounceOwnership()
setLockTimeAndPercent
nonpayablefunction setLockTimeAndPercent(uint256 _lockTime, uint32 _percent)
setMinBalance
nonpayablefunction setMinBalance(uint256 _minBalance)
stake
nonpayablefunction stake(uint256 amount)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
withdraw
nonpayablefunction withdraw()
withdraw
nonpayablefunction withdraw(bool force)
withdrawFunds
nonpayablefunction withdrawFunds(address token, uint256 amount)
events
Claimed
event Claimed(address indexed user, uint256 amount)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Staked
event Staked(address indexed user, uint256 amount)
Withdrawn
event Withdrawn(address indexed user, uint256 amount)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
FailedInnerCall
error FailedInnerCall()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
creation bytecode
0x60a0346101b657601f6111e038819003918201601f19168301926001600160401b03929091838511838610176101bb578160c092849260409788528339810103126101b65761004d816101d1565b9161005a602083016101d1565b926100668584016101d1565b90610073606085016101d1565b9160a060808601519501519563ffffffff87168097036101b6576001600160a01b0392831696871561019e57600080546001600160a01b031981168a1782558a5199919886959486949093909285167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08c80a360025563ffffffff196003541617600355166080521691823b1561019a578585809482946024946336b91f2b60e01b85521660048401525af180156101905761016b575b8351610ffa90816101e6823960805181818161020f0152818161030b015281816104c6015281816106aa01528181610887015281816109430152610bb40152f35b821161017c5750815238808061012a565b634e487b7160e01b81526041600452602490fd5b84513d84823e3d90fd5b8480fd5b8851631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036101b65756fe6040608081526004908136101561001557600080fd5b600091823560e01c806301bd010114610a655780630d66808714610a465780633ccfd60b146108d35780634e71d92d146108b657806351ed6a3014610872578063568914121461085357806370ba11131461082e578063715018a6146107d15780638da5cb5b146107a95780639313d5051461077c578063a694fc3a146105b8578063a810a54c14610429578063a87430ba146103cf578063c1075329146101a8578063c5bb87581461018b578063c91d956c146101655763f2fde38b146100dc57600080fd5b34610161576020366003190112610161576100f5610aa5565b906100fe610e61565b6001600160a01b0391821692831561014b57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b83823461018757602036600319011261018757610180610e61565b8035905580f35b5080fd5b503461016157826003193601126101615760209250549051908152f35b5090346101615780600319360112610161576101c2610aa5565b6101ca610e61565b6001600160a01b039081168061030857508380808047335af16101eb610e21565b50156102c55760206024915b83516370a0823160e01b8152308682015292839182907f0000000000000000000000000000000000000000000000000000000000000000165afa9081156102bb578491610285575b506005541161024c578280f35b906020606492519162461bcd60e51b83528201526013602482015272426c61737455503a20696e736f6c76656e637960681b6044820152fd5b90506020813d6020116102b3575b816102a060209383610af2565b810103126102af57513861023f565b8380fd5b3d9150610293565b82513d86823e3d90fd5b815162461bcd60e51b8152602081850152601b60248201527f426c61737455503a206661696c656420746f2073656e642045544800000000006044820152606490fd5b907f000000000000000000000000000000000000000000000000000000000000000081168083146103ba575082516370a0823160e01b8152308582015291602083602481845afa9283156103b0578693610374575b509061036f6024936020933390610e8d565b6101f7565b9250906020833d6020116103a8575b8161039060209383610af2565b810103126103a4579151919061036f61035d565b8580fd5b3d9150610383565b84513d88823e3d90fd5b602492509061036f6020928435903390610e8d565b5050346101875760203660031901126101875760809181906001600160a01b036103f7610aa5565b168152600160205220908154916001810154916003600283015492015492815194855260208501528301526060820152f35b503461016157602090816003193601126102af5780358015908115036105b4573385526001835283852091600283015442106105615782541561050b5750907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d592916104fd575b54923385526001825284600382822082815582600182015582600282015501556104bc84600554610d16565b6005556104f384337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610e8d565b519283523392a280f35b610505610b37565b50610490565b845162461bcd60e51b8152908101849052602a60248201527f426c61737455503a20796f7520686176656e277420616e797468696e6720666f6044820152697220776974686472617760b01b6064820152608490fd5b845162461bcd60e51b8152908101849052602760248201527f426c61737455503a20796f75206d7573742077616974206d6f726520746f20776044820152666974686472617760c81b6064820152608490fd5b8480fd5b509190346101875760208060031936011261016157833591338452600182528084206105e5848254610e14565b86541161072d5783156106ea576105fa610b37565b5061060760025442610e14565b6002820155600361271061063061061f878554610e14565b80855563ffffffff84541690610d39565b0491015561064083600554610e14565b60055580516323b872dd60e01b838201523360248201523060448201526064808201859052815260a0810167ffffffffffffffff8111828210176106d75782527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9291906104f3907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610edf565b634e487b7160e01b865260418752602486fd5b815162461bcd60e51b8152808701849052601c60248201527f426c61737455503a20616d6f756e74206d7573742062652067742030000000006044820152606490fd5b815162461bcd60e51b81528087018490526024808201527f426c61737455503a20796f75206d7573742073656e64206d6f726520746f207360448201526374616b6560e01b6064820152608490fd5b505034610187576020366003190112610187576020906107a261079d610aa5565b610d4c565b9051908152f35b505034610187578160031936011261018757905490516001600160a01b039091168152602090f35b833461082b578060031936011261082b576107ea610e61565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b50503461018757816003193601126101875760209063ffffffff600354169051908152f35b5050346101875781600319360112610187576020906005549051908152f35b505034610187578160031936011261018757517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5050346101875781600319360112610187576020906107a2610b37565b5034610161578260031936011261016157338352600160205281832090600282015442106109f35781541561099d575061090b610b37565b5054903383526001602052826003828220828155826001820155826002820155015561093982600554610d16565b60055561097082337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610e8d565b519081527f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d560203392a280f35b608490602084519162461bcd60e51b8352820152602a60248201527f426c61737455503a20796f7520686176656e277420616e797468696e6720666f6044820152697220776974686472617760b01b6064820152fd5b608490602084519162461bcd60e51b8352820152602760248201527f426c61737455503a20796f75206d7573742077616974206d6f726520746f20776044820152666974686472617760c81b6064820152fd5b5050346101875781600319360112610187576020906002549051908152f35b50903461016157366003190112610187576024359063ffffffff821680920361016157610a90610e61565b3560025563ffffffff19600354161760035580f35b600435906001600160a01b0382168203610abb57565b600080fd5b6040810190811067ffffffffffffffff821117610adc57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610adc57604052565b805115610b215760200190565b634e487b7160e01b600052603260045260246000fd5b600090338252600160209080825260409081852094610b5533610d4c565b95824291015585610b67575b50505050565b8251610b7281610ac0565b82815284810185368237845193610b8885610ac0565b808552868501918736843733610b9d85610b14565b5289610ba887610b14565b526001600160a01b03957f0000000000000000000000000000000000000000000000000000000000000000871694853b15610d125793919092898796948a51998a976307233fbf60e51b895260448901908d60048b0152518091526064890195918a905b828210610cf357505050508684036003190160248801525180845292019291865b8b828210610cda5750505050508383809203925af18015610cce57610c81575b50505183815233917fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a91a238808080610b61565b67ffffffffffffffff8211610cba575081527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a38610c4d565b634e487b7160e01b81526041600452602490fd5b508251903d90823e3d90fd5b845186528998508a975094850194909301928201610c2d565b8351811688528c9b508d9a50968501968f959093019290860190610c0c565b8680fd5b91908203918211610d2357565b634e487b7160e01b600052601160045260246000fd5b81810292918115918404141715610d2357565b6001600160a01b03166000908152600160205260408082209051916080830167ffffffffffffffff811184821017610e0057916301e133809391610dcb9360405281548352600182015460208401908082526002840154606060036040880196838852015496019586528111600014610dcf5750509050905b51610d39565b0490565b90610ddd610de79242610d16565b9351905190610d16565b905080821015610df957505b90610dc5565b9050610df3565b634e487b7160e01b82526041600452602482fd5b91908201809211610d2357565b3d15610e5c573d9067ffffffffffffffff8211610adc5760405191610e50601f8201601f191660200184610af2565b82523d6000602084013e565b606090565b6000546001600160a01b03163303610e7557565b60405163118cdaa760e01b8152336004820152602490fd5b60405163a9059cbb60e01b60208201526001600160a01b039092166024830152604480830193909352918152608081019167ffffffffffffffff831182841017610adc57610edd92604052610edf565b565b60018060a01b031690610f09600080836020829551910182875af1610f02610e21565b9084610f61565b908151918215159283610f39575b505050610f215750565b60249060405190635274afe760e01b82526004820152fd5b81929350906020918101031261018757602001519081159182150361082b5750388080610f17565b90610f885750805115610f7657805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580610fbb575b610f99575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15610f9156fea26469706673582212207701226691d8bafba5675ad9294561550a2e6e4381d9f3c70752860285005faf64736f6c6343000819003300000000000000000000000066d69c003d095044b17a74a9874189c85b49af51000000000000000000000000f8a5d147a3a3416ab151758d969eff15c27ab7430000000000000000000000002536fe9ab3f511540f2f9e2ec2a805005c3dd800000000000000000000000000fdd5a3d40c7461ae718a5bd722517590035824e90000000000000000000000000000000000000000000000000000000000ed4e000000000000000000000000000000000000000000000000000000000000000708