0 txs
0 calls
constructor
constructor(address _miningIncentives)
functions
esLBRLockSettings
viewfunction esLBRLockSettings(uint256) view returns (uint256 duration, uint256 miningBoost)
getAmountNeedLocked
viewfunction getAmountNeedLocked(address user) view returns (uint256)
getUnlockTime
viewfunction getUnlockTime(address user) view returns (uint256 unlockTime)
getUserBoost
viewfunction getUserBoost(address user, uint256 userUpdatedAt, uint256 finishAt) view returns (uint256)
miningIncentives
viewfunction miningIncentives() view returns (address)
owner
viewfunction owner() view returns (address)
userLockStatus
viewfunction userLockStatus(address) view returns (uint256 lockAmount, uint256 unlockTime, uint256 duration, uint256 miningBoost)
addLockSetting
nonpayablefunction addLockSetting(tuple setting)
renounceOwnership
nonpayablefunction renounceOwnership()
setLockStatus
nonpayablefunction setLockStatus(uint256 id, uint256 lbrAmount, bool useLBR)
setMiningIncentives
nonpayablefunction setMiningIncentives(address _addr)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
unlock
nonpayablefunction unlock()
events
NewLockSetting
event NewLockSetting(uint256 duration, uint256 miningBoost)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
StakeLBR
event StakeLBR(address indexed user, uint256 amount, uint256 time)
Unlock
event Unlock(address indexed user, uint256 unLockAmount, uint256 unlockTime)
UserLockStatus
event UserLockStatus(address indexed user, uint256 lockAmount, uint256 unlockTime, uint256 duration, uint256 miningBoost)
errors
No errors.
creation bytecode
0x608060405234801561001057600080fd5b5060405161134638038061134683398101604081905261002f916101da565b6100383361018a565b60408051808201825262278d008152674563918244f400006020808301918252600180548082018255600082815294517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf660029283028181019290925594517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf791820155865180880188526276a7008152678ac7230489e800008186019081528454808601865585895291519184028088019290925551908201558651808801885262ed4e00815268015af1d78b58c4000081860190815284548086018655858952915191840280880192909255519082015586518088019097526301e1338087526802b5e3af16b1880000938701938452825480840184559290955294519402918201939093559151910155600380546001600160a01b0319166001600160a01b039290921691909117905561020a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156101ec57600080fd5b81516001600160a01b038116811461020357600080fd5b9392505050565b61112d806102196000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063c8d236061161008c578063d989a53b11610066578063d989a53b146101a5578063dbed1e88146101b8578063f2ccf056146101e4578063f2fde38b1461023b57600080fd5b8063c8d2360614610157578063d16911ba1461017f578063d64545d91461019257600080fd5b806313ae1e5b146100d4578063715018a6146100fa5780638da5cb5b14610104578063a69df4b514610129578063b237faf914610131578063c67543e914610144575b600080fd5b6100e76100e2366004610f04565b61024e565b6040519081526020015b60405180910390f35b610102610523565b005b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100f1565b610102610537565b6100e761013f366004610f21565b6105c6565b610102610152366004610f04565b6106fe565b61016a610165366004610f56565b610728565b604080519283526020830191909152016100f1565b61010261018d366004610f6f565b610756565b6101026101a0366004610fda565b610808565b600354610111906001600160a01b031681565b6100e76101c6366004610f04565b6001600160a01b031660009081526002602052604090206001015490565b61021b6101f2366004610f04565b600260208190526000918252604090912080546001820154928201546003909201549092919084565b6040805194855260208501939093529183015260608201526080016100f1565b610102610249366004610f04565b610dcc565b60035460405163af500ba360e01b81526001600160a01b038381166004830152600092839291169063af500ba390602401602060405180830381865afa15801561029c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c09190611013565b90506000600360009054906101000a90046001600160a01b03166001600160a01b031663817b1cd26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610317573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033b9190611013565b9050811580610348575080155b15610357575060009392505050565b60035460408051639730875360e01b8152905183926001600160a01b03169163973087539160048083019260209291908290030181865afa1580156103a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c4919061102c565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610401573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104259190611013565b600360009054906101000a90046001600160a01b03166001600160a01b0316638afe540c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610478573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049c919061102c565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fd9190611013565b610507919061105f565b6105119084611078565b61051b919061108f565b949350505050565b61052b610e45565b6105356000610e9f565b565b336000908152600260205260409020600181015442116105845760405162461bcd60e51b8152602060048201526003602482015262544e4d60e81b60448201526064015b60405180910390fd5b80546040805191825242602083015233917ff7870c5b224cbc19873599e46ccfc7103934650509b1af0c3ce90138377c2004910160405180910390a260009055565b6001600160a01b038316600090815260026020818152604080842081516080810183528154815260018201549381018490529381015491840191909152600301546060830152808510158061061b5750838510155b8061062557508151155b15610635576000925050506106f7565b60006106408761024e565b90508060000361065657600093505050506106f7565b6001600160a01b038716600090815260026020526040902060030154828611801561068057508242115b156106c55760008642116106945742610696565b865b90506106a288826110b1565b826106ad8a876110b1565b6106b79190611078565b6106c1919061108f565b9150505b835182116106d85793506106f792505050565b835182906106e69083611078565b6106f0919061108f565b9450505050505b9392505050565b610706610e45565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001818154811061073857600080fd5b60009182526020909120600290910201805460019091015490915082565b61075e610e45565b600180548082018255600091909152815160029091027fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6810182905560208301517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf79091018190556040517ff243b3c3db48511c3a48b7d0662940ba673132d19f1bcd79d50ed445e0bce23b926107fd92908252602082015260400190565b60405180910390a150565b60015483106108595760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206c6f636b2073657474696e67204944000000000000000000604482015260640161057b565b60006001848154811061086e5761086e6110c4565b600091825260208083206040805180820182526002948502909201805483526001908101548385015233865284845294819020815160808101835281548152958101549386018490529384015490850152600390920154606084015290925042101561096a5781516040820151111561096a5760405162461bcd60e51b815260206004820152605260248201527f596f7572206c6f636b2d696e20706572696f6420686173206e6f7420656e646560448201527f642c20616e6420746865207465726d2063616e206f6e6c792062652065787465606482015271373232b216103737ba103932b23ab1b2b21760711b608482015260a40161057b565b8215610b8157600360009054906101000a90046001600160a01b03166001600160a01b0316638afe540c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e7919061102c565b604051632770a7eb60e21b8152336004820152602481018690526001600160a01b039190911690639dc29fac906044016020604051808303816000875af1158015610a36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5a91906110da565b50600360009054906101000a90046001600160a01b03166001600160a01b031663973087536040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad2919061102c565b6040516340c10f1960e01b8152336004820152602481018690526001600160a01b0391909116906340c10f19906044016020604051808303816000875af1158015610b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4591906110da565b506040805185815242602082015233917f0528cde2c67617f93e5ba994b14d34131c7027d844573ebbdb78ba556cbd94f6910160405180910390a25b8051610b8e90859061105f565b600360009054906101000a90046001600160a01b03166001600160a01b031663973087536040518163ffffffff1660e01b8152600401602060405180830381865afa158015610be1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c05919061102c565b6040516370a0823160e01b81523360048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015610c4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6f9190611013565b1015610ca25760405162461bcd60e51b815260206004820152600260248201526124a160f11b604482015260640161057b565b60035460405163fce67e0d60e01b81523360048201526001600160a01b039091169063fce67e0d90602401600060405180830381600087803b158015610ce757600080fd5b505af1158015610cfb573d6000803e3d6000fd5b505050506040518060800160405280858360000151610d1a919061105f565b8152602001836000015142610d2f919061105f565b8152835160208083019190915280850180516040938401523360008181526002808552908590208651808255878601516001830155878701519282018390556060978801516003909201919091558851935186519182529481019190915293840191909152928201527f70131146d6fec3f367c6f7d17364f2c1031793e4283e3bb57b2629a4aa45e7d99060800160405180910390a25050505050565b610dd4610e45565b6001600160a01b038116610e395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161057b565b610e4281610e9f565b50565b6000546001600160a01b031633146105355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161057b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114610e4257600080fd5b600060208284031215610f1657600080fd5b81356106f781610eef565b600080600060608486031215610f3657600080fd5b8335610f4181610eef565b95602085013595506040909401359392505050565b600060208284031215610f6857600080fd5b5035919050565b600060408284031215610f8157600080fd5b6040516040810181811067ffffffffffffffff82111715610fb257634e487b7160e01b600052604160045260246000fd5b604052823581526020928301359281019290925250919050565b8015158114610e4257600080fd5b600080600060608486031215610fef57600080fd5b8335925060208401359150604084013561100881610fcc565b809150509250925092565b60006020828403121561102557600080fd5b5051919050565b60006020828403121561103e57600080fd5b81516106f781610eef565b634e487b7160e01b600052601160045260246000fd5b8082018082111561107257611072611049565b92915050565b808202811582820484141761107257611072611049565b6000826110ac57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561107257611072611049565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156110ec57600080fd5b81516106f781610fcc56fea2646970667358221220e75a854c00919c1f72e1bc52fafb139c02f9aba7300f3ffde111335d26d9c52764736f6c634300081200330000000000000000000000000b2659734121feb636534213a159ac91691edbde