0 txs
0 calls
constructor
constructor(address _config)
functions
config
viewfunction config() view returns (address)
estimateReward
viewfunction estimateReward(address token0, address user) view returns (uint256)
getClaimable
viewfunction getClaimable(address token0, address user) view returns (uint256)
getRewardSupply
viewfunction getRewardSupply(address token0) view returns (uint256)
getUserClaimed
viewfunction getUserClaimed(address token0, address user) view returns (uint256)
PRECENT_DENOMINATOR
viewfunction PRECENT_DENOMINATOR() view returns (uint256)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
claim
nonpayablefunction claim(address token0, address user)
initialize
nonpayablefunction initialize()
startReward
nonpayablefunction startReward(address token0)
upgradeTo
nonpayablefunction upgradeTo(address newImplementation)
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
events
AdminChanged
event AdminChanged(address previousAdmin, address newAdmin)
BeaconUpgraded
event BeaconUpgraded(address indexed beacon)
Initialized
event Initialized(uint8 version)
RewardClaimed
event RewardClaimed(address indexed token0, address user, uint256 amount)
RewardStarted
event RewardStarted(address indexed token0, uint256 totalRewardAmount)
Upgraded
event Upgraded(address indexed implementation)
errors
No errors.
creation bytecode
0x60c06040523060805234801561001457600080fd5b506040516120a33803806120a383398101604081905261003391610044565b6001600160a01b031660a052610074565b60006020828403121561005657600080fd5b81516001600160a01b038116811461006d57600080fd5b9392505050565b60805160a051611faf6100f46000396000818161018b015281816105bb0152818161071b01528181610a0601528181610df901528181610f5901528181611063015281816111d20152818161135f015261145d015260008181610491015281816104d101528181610864015281816108a401526109200152611faf6000f3fe6080604052600436106100975760003560e01c806321c0b3421461009c57806323c4b423146100be5780633659cfe6146100f15780633fb81428146101115780634f1ef2861461013157806352d1902d1461014457806361be51411461015957806379502c55146101795780638129fc1c146101ba5780639cc182a4146101cf578063c676157a146101e8578063d2b7d96714610208575b600080fd5b3480156100a857600080fd5b506100bc6100b7366004611a50565b610228565b005b3480156100ca57600080fd5b506100de6100d9366004611a50565b61045a565b6040519081526020015b60405180910390f35b3480156100fd57600080fd5b506100bc61010c366004611a89565b610487565b34801561011d57600080fd5b506100de61012c366004611a50565b61054f565b6100bc61013f366004611b3b565b61085a565b34801561015057600080fd5b506100de610913565b34801561016557600080fd5b506100de610174366004611a89565b6109c1565b34801561018557600080fd5b506101ad7f000000000000000000000000000000000000000000000000000000000000000081565b6040516100e89190611bcd565b3480156101c657600080fd5b506100bc610cd0565b3480156101db57600080fd5b506100de6402540be40081565b3480156101f457600080fd5b506100de610203366004611a50565b610de7565b34801561021457600080fd5b506100bc610223366004611a89565b611061565b6001600160a01b03828116600090815260656020526040902054166102a25760405162461bcd60e51b815260206004820152602560248201527f52657761726444697374726962757465723a20726577617264206e6f74207374604482015264185c9d195960da1b60648201526084015b60405180910390fd5b6001600160a01b0382166000908152606560205260408120906102c5848461054f565b9050600081116103265760405162461bcd60e51b815260206004820152602660248201527f52657761726444697374726962757465723a206e6f20636c61696d61626c65206044820152651c995dd85c9960d21b6064820152608401610299565b8082600201600082825461033a9190611bf7565b9091555050815460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906103709086908590600401611c0a565b6020604051808303816000875af115801561038f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b39190611c38565b506001600160a01b038085166000908152606660209081526040808320938716835292905290812080548392906103eb908490611bf7565b90915550506002820154600183015460009161040691611c53565b101561041157600080fd5b836001600160a01b03167f0aa4d283470c904c551d18bb894d37e17674920f3261a7f854be501e25f421b7848360405161044c929190611c0a565b60405180910390a250505050565b6001600160a01b038083166000908152606660209081526040808320938516835292905220545b92915050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036104cf5760405162461bcd60e51b815260040161029990611c66565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610501611435565b6001600160a01b0316146105275760405162461bcd60e51b815260040161029990611ca0565b61053081611451565b6040805160008082526020820190925261054c9183919061153e565b50565b6001600160a01b0382811660009081526065602052604081205490911661057857506000610481565b6001600160a01b038316600090815260656020526040902060018101546002909101546105a58183611c53565b6000036105b757600092505050610481565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610617573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063b9190611cda565b6001600160a01b0316636dd652a2876040518263ffffffff1660e01b81526004016106669190611bcd565b600060405180830381865afa158015610683573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106ab9190810190611d6b565b9050600081604001516001600160a01b031663b52b33f36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107159190611e4c565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610777573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079b9190611cda565b6001600160a01b0316635529995189896040518363ffffffff1660e01b81526004016107c8929190611e65565b606060405180830381865afa1580156107e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108099190611e7f565b50509050600061081a8683856116ae565b6001600160a01b03808b166000908152606660209081526040808320938d168352929052205490915061084d9082611c53565b9998505050505050505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036108a25760405162461bcd60e51b815260040161029990611c66565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166108d4611435565b6001600160a01b0316146108fa5760405162461bcd60e51b815260040161029990611ca0565b61090382611451565b61090f8282600161153e565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109ae5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610299565b50600080516020611f3383398151915290565b6001600160a01b0381811660009081526065602052604081205490911615610a0257506001600160a01b031660009081526065602052604090206001015490565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a869190611cda565b6001600160a01b0316636dd652a2846040518263ffffffff1660e01b8152600401610ab19190611bcd565b600060405180830381865afa158015610ace573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610af69190810190611d6b565b90506000816040015190506000816001600160a01b0316639e72cfa16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b659190611cda565b90506000826001600160a01b031663b0aba0726040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ba7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcb9190611cda565b9050610cc66815af1d78b58c400000610c4e846001600160a01b031663deb15a736040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3f9190611e4c565b6801158e460913d00000611763565b610cc1846001600160a01b031663deb15a736040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb39190611e4c565b670de0b6b3a7640000611779565b6116ae565b9695505050505050565b600054610100900460ff1615808015610cf05750600054600160ff909116105b80610d115750610cff30611788565b158015610d11575060005460ff166001145b610d745760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610299565b6000805460ff191660011790558015610d97576000805461ff0019166101001790555b610d9f611797565b801561054c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b600080610df3846109c1565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e799190611cda565b6001600160a01b0316636dd652a2866040518263ffffffff1660e01b8152600401610ea49190611bcd565b600060405180830381865afa158015610ec1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ee99190810190611d6b565b9050600081604001516001600160a01b031663b52b33f36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f539190611e4c565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd99190611cda565b6001600160a01b0316635529995188886040518363ffffffff1660e01b8152600401611006929190611e65565b606060405180830381865afa158015611023573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110479190611e7f565b505090506110568482846116ae565b979650505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634a8027646040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e39190611cda565b6001600160a01b0316336001600160a01b0316146111545760405162461bcd60e51b815260206004820152602860248201527f494c61756e636865723a2063616c6c6572206973206e6f7420746865206465786044820152672630bab731b432b960c11b6064820152608401610299565b6001600160a01b0381811660009081526065602052604090205416156111ce5760405162461bcd60e51b815260206004820152602960248201527f52657761726444697374726962757465723a2072657761726420616c726561646044820152681e481cdd185c9d195960ba1b6064820152608401610299565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561122e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112529190611cda565b6001600160a01b0316636dd652a2836040518263ffffffff1660e01b815260040161127d9190611bcd565b600060405180830381865afa15801561129a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112c29190810190611d6b565b90506000816040015190506040518060800160405280826001600160a01b031663f7c618c16040518163ffffffff1660e01b8152600401602060405180830381865afa158015611316573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133a9190611cda565b6001600160a01b03168152602001611351856109c1565b8152602001600081526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663796b89b96040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113df9190611e4c565b90526001600160a01b03938416600090815260656020908152604091829020835181546001600160a01b031916971696909617865582015160018601558101516002850155606001516003909301929092555050565b600080516020611f33833981519152546001600160a01b031690565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114dd9190611cda565b6001600160a01b03161461054c5760405162461bcd60e51b815260206004820152602260248201527f494c61756e636865723a2063616c6c6572206973206e6f7420746865206f776e60448201526132b960f11b6064820152608401610299565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156115765761157183611804565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156115d0575060408051601f3d908101601f191682019092526115cd91810190611e4c565b60015b6116335760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610299565b600080516020611f3383398151915281146116a25760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610299565b5061157183838361189e565b60008080600019858709858702925082811083820303915050806000036116e8578382816116de576116de611ead565b049250505061175c565b8084116116f457600080fd5b600084868809851960019081018716968790049682860381900495909211909303600082900391909104909201919091029190911760038402600290811880860282030280860282030280860282030280860282030280860282030280860290910302029150505b9392505050565b6000818310611772578161175c565b5090919050565b6000818311611772578161175c565b6001600160a01b03163b151590565b600054610100900460ff166118025760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610299565b565b61180d81611788565b61186f5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610299565b600080516020611f3383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6118a7836118c9565b6000825111806118b45750805b15611571576118c38383611909565b50505050565b6118d281611804565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061175c8383604051806060016040528060278152602001611f53602791396060600080856001600160a01b0316856040516119469190611ec3565b600060405180830381855af49150503d8060008114611981576040519150601f19603f3d011682016040523d82523d6000602084013e611986565b606091505b5091509150610cc686838387606083156119ff5782516000036119f8576119ac85611788565b6119f85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610299565b5081611a09565b611a098383611a11565b949350505050565b815115611a215781518083602001fd5b8060405162461bcd60e51b81526004016102999190611edf565b6001600160a01b038116811461054c57600080fd5b60008060408385031215611a6357600080fd5b8235611a6e81611a3b565b91506020830135611a7e81611a3b565b809150509250929050565b600060208284031215611a9b57600080fd5b813561175c81611a3b565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715611ade57611ade611aa6565b60405290565b604051601f8201601f191681016001600160401b0381118282101715611b0c57611b0c611aa6565b604052919050565b60006001600160401b03821115611b2d57611b2d611aa6565b50601f01601f191660200190565b60008060408385031215611b4e57600080fd5b8235611b5981611a3b565b915060208301356001600160401b03811115611b7457600080fd5b8301601f81018513611b8557600080fd5b8035611b98611b9382611b14565b611ae4565b818152866020838501011115611bad57600080fd5b816020840160208301376000602083830101528093505050509250929050565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561048157610481611be1565b6001600160a01b03929092168252602082015260400190565b80518015158114611c3357600080fd5b919050565b600060208284031215611c4a57600080fd5b61175c82611c23565b8181038181111561048157610481611be1565b6020808252602c90820152600080516020611f1383398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c90820152600080516020611f1383398151915260408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215611cec57600080fd5b815161175c81611a3b565b8051611c3381611a3b565b60005b83811015611d1d578181015183820152602001611d05565b50506000910152565b600082601f830112611d3757600080fd5b8151611d45611b9382611b14565b818152846020838601011115611d5a57600080fd5b611a09826020830160208701611d02565b600060208284031215611d7d57600080fd5b81516001600160401b03811115611d9357600080fd5b820160e08185031215611da557600080fd5b611dad611abc565b611db682611cf7565b815260208281015190820152611dce60408301611cf7565b604082015260608201516001600160401b03811115611dec57600080fd5b611df886828501611d26565b60608301525060808201516001600160401b03811115611e1757600080fd5b611e2386828501611d26565b60808301525060a08281015190820152611e3f60c08301611c23565b60c0820152949350505050565b600060208284031215611e5e57600080fd5b5051919050565b6001600160a01b0392831681529116602082015260400190565b600080600060608486031215611e9457600080fd5b5050815160208301516040909301519094929350919050565b634e487b7160e01b600052601260045260246000fd5b60008251611ed5818460208701611d02565b9190910192915050565b6020815260008251806020840152611efe816040850160208701611d02565b601f01601f1916919091016040019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122002eab2103397362fa37fd3ad6b88d550424d2ca18def34f3e5da29e6c03cbbbe64736f6c634300081b00330000000000000000000000009b4acce8a041c51c7b4249754fd24c8e18a97f75