0 txs
0 calls
constructor
constructor(uint256 _claimTime, address _token)
functions
claimTime
viewfunction claimTime() view returns (uint256)
getWithdrawableAmount
viewfunction getWithdrawableAmount(address _user) view returns (uint256)
owner
viewfunction owner() view returns (address)
rewardToken
viewfunction rewardToken() view returns (address)
totalAvailableAfter
viewfunction totalAvailableAfter() view returns (uint256)
totalRewards
viewfunction totalRewards() view returns (uint256)
totalWithdrawn
viewfunction totalWithdrawn() view returns (uint256)
userInfo
viewfunction userInfo(address) view returns (uint256 reward, uint256 withdrawn)
addClaimants
nonpayablefunction addClaimants(address[] _claimants, uint256[] _claimAmounts)
claim
nonpayablefunction claim()
emergencyWithdrawToken
nonpayablefunction emergencyWithdrawToken(address tokenAddress)
renounceOwnership
nonpayablefunction renounceOwnership()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
updateClaimTimestamp
nonpayablefunction updateClaimTimestamp(uint256 _claimTime)
events
ClaimantsAdded
event ClaimantsAdded(address[] indexed claimants, uint256[] indexed amounts)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
RewardClaimed
event RewardClaimed(address indexed user, uint256 indexed withdrawAmount, uint256 totalWithdrawn)
errors
No errors.
creation bytecode
0x60a060405234801561001057600080fd5b506040516114a43803806114a483398101604081905261002f916100a4565b808061003a33610054565b60601b6001600160601b03191660805250506002556100e1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156100b757600080fd5b825160208401519092506001600160a01b03811681146100d657600080fd5b809150509250929050565b60805160601c61139e61010660003960008181610216015261042d015261139e6000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806387a609f11161008c578063964ddbb211610066578063964ddbb2146101d8578063f2fde38b146101eb578063f6777175146101fe578063f7c618c11461021157600080fd5b806387a609f11461017e5780638a7d76b0146101865780638da5cb5b1461019957600080fd5b806327b3bf11116100c857806327b3bf111461015c5780634b319713146101655780634e71d92d1461016e578063715018a61461017657600080fd5b80630e15561a146100ef5780631959a0021461010b5780631af0320314610147575b600080fd5b6100f860035481565b6040519081526020015b60405180910390f35b610132610119366004610f13565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610102565b61015a610155366004610f13565b610238565b005b6100f860025481565b6100f860045481565b61015a610382565b61015a6104e7565b6100f8610574565b61015a610194366004610f30565b61058d565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610102565b61015a6101e636600461101b565b61072c565b61015a6101f9366004610f13565b6107b2565b6100f861020c366004610f13565b6108df565b6101b37f000000000000000000000000000000000000000000000000000000000000000081565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261037f90339073ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b15801561032957600080fd5b505afa15801561033d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103619190611034565b73ffffffffffffffffffffffffffffffffffffffff8416919061094c565b50565b336000818152600160205260409020546103f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4164647265737320686173206e6f20726577617264730000000000000000000060448201526064016102b5565b33600081815260016020526040812091610411906108df565b905061045473ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016338361094c565b600182015461046390826109de565b600183015560045461047590826109de565b60045581546001830154111561048d5761048d6112b3565b803373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e273174384600101546040516104da91815260200190565b60405180910390a3505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610568576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b5565b61057260006109f3565b565b60006002546302ce818061058891906111a3565b905090565b60005473ffffffffffffffffffffffffffffffffffffffff16331461060e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b5565b8051825114610679576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f41727261797320646f206e6f74206861766520657175616c206c656e6774680060448201526064016102b5565b60005b82518110156106d3576106c183828151811061069a5761069a611311565b60200260200101518383815181106106b4576106b4611311565b6020026020010151610a68565b806106cb8161127a565b91505061067c565b50806040516106e29190611099565b6040518091039020826040516106f8919061104d565b604051908190038120907f9e90b93ef585ec8fc3bef98ea72276d1068177358fc8071996f3ab9a18dedbe190600090a35050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b5565b600255565b60005473ffffffffffffffffffffffffffffffffffffffff163314610833576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b5565b73ffffffffffffffffffffffffffffffffffffffff81166108d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102b5565b61037f816109f3565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160208181526040808420815180830190925280548083529301549181019190915290829061092b9042610ab5565b9050610944826020015182610b8590919063ffffffff16565b949350505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526109d9908490610b91565b505050565b60006109ea82846111a3565b90505b92915050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604081208054909190610a9c90846109de565b600354909150610aac90846109de565b60035590555050565b6000600254821015610ac9575060006109ed565b6000610ae060025484610b8590919063ffffffff16565b905060006276a7008211610b0b57610b046064610afe876014610c9d565b90610ca9565b9050610944565b6302ce8180821115610b1e575083610944565b6000610b306064610afe886014610c9d565b90506000610b3e8783610b85565b9050600062015180610b53866276a700610b85565b610b5d91906111bb565b9050610b7983610b736101c7610afe8686610c9d565b906109de565b98975050505050505050565b60006109ea8284611233565b6000610bf3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610cb59092919063ffffffff16565b8051909150156109d95780806020019051810190610c119190610ff9565b6109d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102b5565b60006109ea82846111f6565b60006109ea82846111bb565b6060610cc48484600085610cce565b90505b9392505050565b606082471015610d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102b5565b843b610dc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b5565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610df191906110c3565b60006040518083038185875af1925050503d8060008114610e2e576040519150601f19603f3d011682016040523d82523d6000602084013e610e33565b606091505b5091509150610e43828286610e4e565b979650505050505050565b60608315610e5d575081610cc7565b825115610e6d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b591906110df565b600082601f830112610eb257600080fd5b81356020610ec7610ec28361117f565b611130565b80838252828201915082860187848660051b8901011115610ee757600080fd5b60005b85811015610f0657813584529284019290840190600101610eea565b5090979650505050505050565b600060208284031215610f2557600080fd5b8135610cc78161136f565b60008060408385031215610f4357600080fd5b823567ffffffffffffffff80821115610f5b57600080fd5b818501915085601f830112610f6f57600080fd5b81356020610f7f610ec28361117f565b8083825282820191508286018a848660051b8901011115610f9f57600080fd5b600096505b84871015610fcb578035610fb78161136f565b835260019690960195918301918301610fa4565b5096505086013592505080821115610fe257600080fd5b50610fef85828601610ea1565b9150509250929050565b60006020828403121561100b57600080fd5b81518015158114610cc757600080fd5b60006020828403121561102d57600080fd5b5035919050565b60006020828403121561104657600080fd5b5051919050565b815160009082906020808601845b8381101561108d57815173ffffffffffffffffffffffffffffffffffffffff168552938201939082019060010161105b565b50929695505050505050565b815160009082906020808601845b8381101561108d578151855293820193908201906001016110a7565b600082516110d581846020870161124a565b9190910192915050565b60208152600082518060208401526110fe81604085016020870161124a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561117757611177611340565b604052919050565b600067ffffffffffffffff82111561119957611199611340565b5060051b60200190565b600082198211156111b6576111b66112e2565b500190565b6000826111f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561122e5761122e6112e2565b500290565b600082821015611245576112456112e2565b500390565b60005b8381101561126557818101518382015260200161124d565b83811115611274576000848401525b50505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156112ac576112ac6112e2565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461037f57600080fdfea164736f6c6343000806000a00000000000000000000000000000000000000000000000000000000615c454800000000000000000000000066cafcf6c32315623c7ffd3f2ff690aa36ebed38