0 txs
0 calls
constructor
constructor(address _lbr)
functions
getRewards
viewfunction getRewards(address _user) view returns (uint256)
getTotalRewards
viewfunction getTotalRewards(address _user) view returns (uint256)
getUserUnlockInfo
viewfunction getUserUnlockInfo(address _user) view returns (tuple)
lbr
viewfunction lbr() view returns (address)
owner
viewfunction owner() view returns (address)
UnlockingInfo
viewfunction UnlockingInfo(address) view returns (uint256 totalLocked, uint256 duration, uint256 unlockStartTime, uint256 lastWithdrawTime, uint256 lastWithdrawRemain)
renounceOwnership
nonpayablefunction renounceOwnership()
setUnlockRule
nonpayablefunction setUnlockRule(address _user, uint256 _duration, uint256 _totalLocked, uint256 _unlockStartTime, uint256 _lastWithdrawTime)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
vest
nonpayablefunction vest(address _user, uint256 _amount)
withdrawTokenEmergency
nonpayablefunction withdrawTokenEmergency(address token, uint256 amount)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SetUnlockRule
event SetUnlockRule(address indexed _user, uint256 _totalLocked, uint256 _duration, uint256 _unlockStartTime, uint256 _lastWithdrawTime)
Vest
event Vest(address indexed _user, uint256 _amount, uint256 _timestamp)
errors
No errors.
creation bytecode
0x60a060405234801561001057600080fd5b50604051610de8380380610de883398101604081905261002f91610099565b61003833610049565b6001600160a01b03166080526100c9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100ab57600080fd5b81516001600160a01b03811681146100c257600080fd5b9392505050565b608051610cef6100f96000396000818161017801528181610392015281816104b001526105a40152610cef6000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806364502250116100715780636450225014610173578063715018a6146101b257806379ee54f7146101ba578063816994e3146101cd5780638da5cb5b14610222578063f2fde38b1461023357600080fd5b80632797c6c8146100ae5780632bcf161c146100c35780633d61aba8146100e95780633efa4be1146100fc5780634909b30614610160575b600080fd5b6100c16100bc366004610b94565b610246565b005b6100d66100d1366004610bbe565b6106ab565b6040519081526020015b60405180910390f35b6100c16100f7366004610b94565b6106e0565b61013861010a366004610bbe565b6001602081905260009182526040909120805491810154600282015460038301546004909301549192909185565b604080519586526020860194909452928401919091526060830152608082015260a0016100e0565b6100c161016e366004610be0565b61075e565b61019a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100e0565b6100c161088e565b6100d66101c8366004610bbe565b6108a2565b6101e06101db366004610bbe565b6109cc565b6040516100e09190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b6000546001600160a01b031661019a565b6100c1610241366004610bbe565b610a55565b6001600160a01b0382166000908152600160205260409020600201544210156102b65760405162461bcd60e51b815260206004820152601d60248201527f5468652074696d6520686173206e6f742079657420617272697665642e00000060448201526064015b60405180910390fd5b600081116102f85760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21030b6b7bab73a1760891b60448201526064016102ad565b6001600160a01b03821660009081526001602081905260408220908101546002909101546103269190610c38565b6001600160a01b038416600090815260016020526040902060040154909150808311610448576103568382610c4b565b6001600160a01b03858116600081815260016020526040908190206004908101949094555163a9059cbb60e01b815292830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156103db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ff9190610c5e565b50604080518481524260208201526001600160a01b038616917fa499197ed501de1424df2a7fb491b20a939468fbb6e47b99627aca4fe6fdb304910160405180910390a26106a5565b6000610453856108a2565b905060006104618284610c38565b9050808511610566576104748582610c4b565b6001600160a01b03878116600081815260016020526040908190206004908101949094555163a9059cbb60e01b815292830152602482018790527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156104f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051d9190610c5e565b50604080518681524260208201526001600160a01b038816917fa499197ed501de1424df2a7fb491b20a939468fbb6e47b99627aca4fe6fdb304910160405180910390a2610658565b6001600160a01b038681166000818152600160205260408082206004908101929092555163a9059cbb60e01b815290810191909152602481018390527f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb906044016020604051808303816000875af11580156105ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106139190610c5e565b50604080518281524260208201526001600160a01b038816917fa499197ed501de1424df2a7fb491b20a939468fbb6e47b99627aca4fe6fdb304910160405180910390a25b834210610682576001600160a01b03861660009081526001602052604090206003018490556106a2565b6001600160a01b0386166000908152600160205260409020426003909101555b50505b50505050565b6001600160a01b0381166000908152600160205260408120600401546106d0836108a2565b6106da9190610c38565b92915050565b6106e8610ace565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610735573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107599190610c5e565b505050565b610766610ace565b600082116107a55760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b60448201526064016102ad565b6001600160a01b0385166000908152600160205260409020600301541561080e5760405162461bcd60e51b815260206004820152601f60248201527f546869732072756c652068617320616c7265616479206265656e207365742e0060448201526064016102ad565b6001600160a01b0385166000818152600160208181526040928390208781559182018890556002820186905560039091018490558151868152908101879052908101849052606081018390527f8acdb19073ac1d67479f464f9585162b49aac941719813bf09424bbe713366249060800160405180910390a25050505050565b610896610ace565b6108a06000610b28565b565b6001600160a01b038116600090815260016020526040812060020154421115806108e557506001600160a01b038216600090815260016020526040902060020154155b156108f257506000919050565b6001600160a01b03821660009081526001602081905260408220908101546002909101546109209190610c38565b6001600160a01b03841660009081526001602081905260408220908101549054929350909161094f9190610c80565b90506000824211610991576001600160a01b03851660009081526001602052604090206003015482906109829042610c4b565b61098c9190610ca2565b6109c3565b6001600160a01b03851660009081526001602052604090206003015482906109b99085610c4b565b6109c39190610ca2565b95945050505050565b6109fe6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b506001600160a01b0316600090815260016020818152604092839020835160a08101855281548152928101549183019190915260028101549282019290925260038201546060820152600490910154608082015290565b610a5d610ace565b6001600160a01b038116610ac25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102ad565b610acb81610b28565b50565b6000546001600160a01b031633146108a05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ad565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610b8f57600080fd5b919050565b60008060408385031215610ba757600080fd5b610bb083610b78565b946020939093013593505050565b600060208284031215610bd057600080fd5b610bd982610b78565b9392505050565b600080600080600060a08688031215610bf857600080fd5b610c0186610b78565b97602087013597506040870135966060810135965060800135945092505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106da576106da610c22565b818103818111156106da576106da610c22565b600060208284031215610c7057600080fd5b81518015158114610bd957600080fd5b600082610c9d57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176106da576106da610c2256fea2646970667358221220c7a65b8b8372e0d1e3069066b76c0e2e1456b3bfc0bc10672a5cd8acd4ec76cd64736f6c63430008110033000000000000000000000000ed1167b6dc64e8a366db86f2e952a482d0981ebd