0 txs
0 calls
constructor
constructor(address _lbr)
functions
getRewards
viewfunction getRewards(address addr) view returns (uint256)
getUserUnlockInfo
viewfunction getUserUnlockInfo(address _addr) 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)
addWhitelistAddresses
nonpayablefunction addWhitelistAddresses(address addr, address[] addrs)
renounceOwnership
nonpayablefunction renounceOwnership()
setPause
nonpayablefunction setPause(address _user, bool val)
setUnlockRule
nonpayablefunction setUnlockRule(address _addr, uint256 _totalLocked, uint256 _duration, uint256 _unlockStartTime, uint256 _lastWithdrawTime, address[] _whitelist)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
withdraw
nonpayablefunction withdraw(address addr)
withdrawTokenEmergency
nonpayablefunction withdrawTokenEmergency(address token, uint256 amount)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SetUnlockRule
event SetUnlockRule(address indexed _addr, uint256 _totalLocked, uint256 _duration, uint256 _unlockStartTime, uint256 _lastWithdrawTime)
Withdraw
event Withdraw(address indexed _addr, uint256 _amount, uint256 _timestamp)
errors
No errors.
creation bytecode
0x60a060405234801561001057600080fd5b50604051610f71380380610f7183398101604081905261002f91610099565b61003833610049565b6001600160a01b03166080526100c9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100ab57600080fd5b81516001600160a01b03811681146100c257600080fd5b9392505050565b608051610e866100eb60003960008181610141015261043b0152610e866000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80637fbd1f61116100715780637fbd1f61146101a4578063816994e3146101b75780638da5cb5b146101d7578063ba824f96146101e8578063c22dc722146101fb578063f2fde38b1461020e57600080fd5b80633d61aba8146100b95780633efa4be1146100ce57806351cff8d914610129578063645022501461013c578063715018a61461017b57806379ee54f714610183575b600080fd5b6100cc6100c7366004610b17565b610221565b005b6101046100dc366004610b41565b6001602081905260009182526040909120805491810154600282015460039092015490919084565b6040805194855260208501939093529183015260608201526080015b60405180910390f35b6100cc610137366004610b41565b61029f565b6101637f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610120565b6100cc6104fb565b610196610191366004610b41565b61050f565b604051908152602001610120565b6100cc6101b2366004610baf565b610639565b6101ca6101c5366004610b41565b610684565b6040516101209190610c02565b6000546001600160a01b0316610163565b6100cc6101f6366004610c85565b610760565b6100cc610209366004610d0e565b6108ad565b6100cc61021c366004610b41565b6108e0565b610229610959565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610276573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029a9190610d45565b505050565b6001600160a01b038116600090815260026020526040902054819060ff16156103015760405162461bcd60e51b815260206004820152600f60248201526e2b32b9ba1034b9903830bab9b2b21760891b60448201526064015b60405180910390fd5b61030a826109b3565b6103265760405162461bcd60e51b81526004016102f890610d62565b6001600160a01b0382166000908152600160205260409020600201544210156103915760405162461bcd60e51b815260206004820152601d60248201527f5468652074696d6520686173206e6f742079657420617272697665642e00000060448201526064016102f8565b6001600160a01b03821660009081526001602081905260408220908101546002909101546103bf9190610dbc565b905060006103cc8461050f565b905080156104f557814211156103ff576001600160a01b038416600090815260016020526040902060030182905561041f565b6001600160a01b0384166000908152600160205260409020426003909101555b60405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af115801561048c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b09190610d45565b50604080518281524260208201526001600160a01b038616917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a25b50505050565b610503610959565b61050d6000610a33565b565b6001600160a01b0381166000908152600160205260408120600201544211158061055257506001600160a01b038216600090815260016020526040902060020154155b1561055f57506000919050565b6001600160a01b038216600090815260016020819052604082209081015460029091015461058d9190610dbc565b6001600160a01b0384166000908152600160208190526040822090810154905492935090916105bc9190610dd5565b905060008242116105fe576001600160a01b03851660009081526001602052604090206003015482906105ef9042610df7565b6105f99190610e0a565b610630565b6001600160a01b03851660009081526001602052604090206003015482906106269085610df7565b6106309190610e0a565b95945050505050565b610642836109b3565b61065e5760405162461bcd60e51b81526004016102f890610d62565b6001600160a01b03831660009081526001602052604090206104f5906004018383610a83565b6106b66040518060a0016040528060008152602001600081526020016000815260200160008152602001606081525090565b6001600160a01b038216600090815260016020818152604092839020835160a0810185528154815292810154838301526002810154838501526003810154606084015260048101805485518185028101850190965280865293949193608086019383018282801561075057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610732575b5050505050815250509050919050565b610768610959565b836000036107a75760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b60448201526064016102f8565b6001600160a01b038716600090815260016020526040902060030154156108105760405162461bcd60e51b815260206004820152601f60248201527f546869732072756c652068617320616c7265616479206265656e207365742e0060448201526064016102f8565b6001600160a01b03871660009081526001602081905260409091208781556002810186905560038101859055908101869055610850906004018383610a83565b506040805187815260208101879052908101859052606081018490526001600160a01b038816907f8acdb19073ac1d67479f464f9585162b49aac941719813bf09424bbe713366249060800160405180910390a250505050505050565b6108b5610959565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b6108e8610959565b6001600160a01b03811661094d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102f8565b61095681610a33565b50565b6000546001600160a01b0316331461050d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102f8565b6001600160a01b038116600090815260016020526040812060040181805b8254811015610a2b57336001600160a01b03168382815481106109f6576109f6610e21565b6000918252602090912001546001600160a01b031603610a195760019150610a2b565b80610a2381610e37565b9150506109d1565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215610ad6579160200282015b82811115610ad65781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190610aa3565b50610ae2929150610ae6565b5090565b5b80821115610ae25760008155600101610ae7565b80356001600160a01b0381168114610b1257600080fd5b919050565b60008060408385031215610b2a57600080fd5b610b3383610afb565b946020939093013593505050565b600060208284031215610b5357600080fd5b610b5c82610afb565b9392505050565b60008083601f840112610b7557600080fd5b50813567ffffffffffffffff811115610b8d57600080fd5b6020830191508360208260051b8501011115610ba857600080fd5b9250929050565b600080600060408486031215610bc457600080fd5b610bcd84610afb565b9250602084013567ffffffffffffffff811115610be957600080fd5b610bf586828701610b63565b9497909650939450505050565b6000602080835260c083018451828501528185015160408501526040850151606085015260608501516080850152608085015160a08086015281815180845260e0870191508483019350600092505b80831015610c7a5783516001600160a01b03168252928401926001929092019190840190610c51565b509695505050505050565b600080600080600080600060c0888a031215610ca057600080fd5b610ca988610afb565b96506020880135955060408801359450606088013593506080880135925060a088013567ffffffffffffffff811115610ce157600080fd5b610ced8a828b01610b63565b989b979a50959850939692959293505050565b801515811461095657600080fd5b60008060408385031215610d2157600080fd5b610d2a83610afb565b91506020830135610d3a81610d00565b809150509250929050565b600060208284031215610d5757600080fd5b8151610b5c81610d00565b60208082526024908201527f546865206163636f756e74206973206e6f7420696e207468652077686974656c60408201526334b9ba1760e11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610dcf57610dcf610da6565b92915050565b600082610df257634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610dcf57610dcf610da6565b8082028115828204841417610dcf57610dcf610da6565b634e487b7160e01b600052603260045260246000fd5b600060018201610e4957610e49610da6565b506001019056fea26469706673582212201e025355223a51c34ecc63bd6a784921d6997359402dff15fb50e9620171681664736f6c63430008110033000000000000000000000000ed1167b6dc64e8a366db86f2e952a482d0981ebd