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)
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
0x60c06040523060805234801561001457600080fd5b50604051611f13380380611f1383398101604081905261003391610044565b6001600160a01b031660a052610074565b60006020828403121561005657600080fd5b81516001600160a01b038116811461006d57600080fd5b9392505050565b60805160a051611e266100ed6000396000818161016001528181610563015281816106c30152818161097001528181610d6301528181610ec301528181611049015281816111d601526112d4015260008181610439015281816104790152818161080e0152818161084e01526108ca0152611e266000f3fe60806040526004361061008c5760003560e01c806321c0b342146100915780633659cfe6146100b35780633fb81428146100d35780634f1ef2861461010657806352d1902d1461011957806361be51411461012e57806379502c551461014e5780638129fc1c1461018f5780639cc182a4146101a4578063c676157a146101bd578063d2b7d967146101dd575b600080fd5b34801561009d57600080fd5b506100b16100ac3660046118c7565b6101fd565b005b3480156100bf57600080fd5b506100b16100ce366004611900565b61042f565b3480156100df57600080fd5b506100f36100ee3660046118c7565b6104f7565b6040519081526020015b60405180910390f35b6100b16101143660046119b2565b610804565b34801561012557600080fd5b506100f36108bd565b34801561013a57600080fd5b506100f3610149366004611900565b61096b565b34801561015a57600080fd5b506101827f000000000000000000000000000000000000000000000000000000000000000081565b6040516100fd9190611a44565b34801561019b57600080fd5b506100b1610c3a565b3480156101b057600080fd5b506100f36402540be40081565b3480156101c957600080fd5b506100f36101d83660046118c7565b610d51565b3480156101e957600080fd5b506100b16101f8366004611900565b610fcb565b6001600160a01b03828116600090815260656020526040902054166102775760405162461bcd60e51b815260206004820152602560248201527f52657761726444697374726962757465723a20726577617264206e6f74207374604482015264185c9d195960da1b60648201526084015b60405180910390fd5b6001600160a01b03821660009081526065602052604081209061029a84846104f7565b9050600081116102fb5760405162461bcd60e51b815260206004820152602660248201527f52657761726444697374726962757465723a206e6f20636c61696d61626c65206044820152651c995dd85c9960d21b606482015260840161026e565b8082600201600082825461030f9190611a6e565b9091555050815460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906103459086908590600401611a81565b6020604051808303816000875af1158015610364573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103889190611aaf565b506001600160a01b038085166000908152606660209081526040808320938716835292905290812080548392906103c0908490611a6e565b9091555050600282015460018301546000916103db91611aca565b10156103e657600080fd5b836001600160a01b03167f0aa4d283470c904c551d18bb894d37e17674920f3261a7f854be501e25f421b78483604051610421929190611a81565b60405180910390a250505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036104775760405162461bcd60e51b815260040161026e90611add565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166104a96112ac565b6001600160a01b0316146104cf5760405162461bcd60e51b815260040161026e90611b17565b6104d8816112c8565b604080516000808252602082019092526104f4918391906113b5565b50565b6001600160a01b03828116600090815260656020526040812054909116610520575060006107fe565b6001600160a01b0383166000908152606560205260409020600181015460029091015461054d8183611aca565b60000361055f576000925050506107fe565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e39190611b51565b6001600160a01b0316636dd652a2876040518263ffffffff1660e01b815260040161060e9190611a44565b600060405180830381865afa15801561062b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106539190810190611be2565b9050600081604001516001600160a01b031663b52b33f36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610699573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bd9190611cc3565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561071f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107439190611b51565b6001600160a01b0316635529995189896040518363ffffffff1660e01b8152600401610770929190611cdc565b606060405180830381865afa15801561078d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b19190611cf6565b5050905060006107c2868385611525565b6001600160a01b03808b166000908152606660209081526040808320938d16835292905220549091506107f59082611aca565b96505050505050505b92915050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361084c5760405162461bcd60e51b815260040161026e90611add565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661087e6112ac565b6001600160a01b0316146108a45760405162461bcd60e51b815260040161026e90611b17565b6108ad826112c8565b6108b9828260016113b5565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109585760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b606482015260840161026e565b50600080516020611daa83398151915290565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f09190611b51565b6001600160a01b0316636dd652a2846040518263ffffffff1660e01b8152600401610a1b9190611a44565b600060405180830381865afa158015610a38573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a609190810190611be2565b90506000816040015190506000816001600160a01b0316639e72cfa16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acf9190611b51565b90506000826001600160a01b031663b0aba0726040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b359190611b51565b9050610c306815af1d78b58c400000610bb8846001600160a01b031663deb15a736040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba99190611cc3565b6801158e460913d000006115da565b610c2b846001600160a01b031663deb15a736040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1d9190611cc3565b670de0b6b3a76400006115f0565b611525565b9695505050505050565b600054610100900460ff1615808015610c5a5750600054600160ff909116105b80610c7b5750610c69306115ff565b158015610c7b575060005460ff166001145b610cde5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161026e565b6000805460ff191660011790558015610d01576000805461ff0019166101001790555b610d0961160e565b80156104f4576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b600080610d5d8461096b565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610dbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de39190611b51565b6001600160a01b0316636dd652a2866040518263ffffffff1660e01b8152600401610e0e9190611a44565b600060405180830381865afa158015610e2b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e539190810190611be2565b9050600081604001516001600160a01b031663b52b33f36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebd9190611cc3565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f439190611b51565b6001600160a01b0316635529995188886040518363ffffffff1660e01b8152600401610f70929190611cdc565b606060405180830381865afa158015610f8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb19190611cf6565b50509050610fc0848284611525565b979650505050505050565b6001600160a01b0381811660009081526065602052604090205416156110455760405162461bcd60e51b815260206004820152602960248201527f52657761726444697374726962757465723a2072657761726420616c726561646044820152681e481cdd185c9d195960ba1b606482015260840161026e565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663778ebe8f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c99190611b51565b6001600160a01b0316636dd652a2836040518263ffffffff1660e01b81526004016110f49190611a44565b600060405180830381865afa158015611111573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111399190810190611be2565b90506000816040015190506040518060800160405280826001600160a01b031663f7c618c16040518163ffffffff1660e01b8152600401602060405180830381865afa15801561118d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b19190611b51565b6001600160a01b031681526020016111c88561096b565b8152602001600081526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663796b89b96040518163ffffffff1660e01b8152600401602060405180830381865afa158015611232573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112569190611cc3565b90526001600160a01b03938416600090815260656020908152604091829020835181546001600160a01b031916971696909617865582015160018601558101516002850155606001516003909301929092555050565b600080516020611daa833981519152546001600160a01b031690565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611330573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113549190611b51565b6001600160a01b0316146104f45760405162461bcd60e51b815260206004820152602260248201527f494c61756e636865723a2063616c6c6572206973206e6f7420746865206f776e60448201526132b960f11b606482015260840161026e565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156113ed576113e88361167b565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611447575060408051601f3d908101601f1916820190925261144491810190611cc3565b60015b6114aa5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161026e565b600080516020611daa83398151915281146115195760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161026e565b506113e8838383611715565b600080806000198587098587029250828110838203039150508060000361155f5783828161155557611555611d24565b04925050506115d3565b80841161156b57600080fd5b600084868809851960019081018716968790049682860381900495909211909303600082900391909104909201919091029190911760038402600290811880860282030280860282030280860282030280860282030280860282030280860290910302029150505b9392505050565b60008183106115e957816115d3565b5090919050565b60008183116115e957816115d3565b6001600160a01b03163b151590565b600054610100900460ff166116795760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161026e565b565b611684816115ff565b6116e65760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161026e565b600080516020611daa83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61171e83611740565b60008251118061172b5750805b156113e85761173a8383611780565b50505050565b6117498161167b565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606115d38383604051806060016040528060278152602001611dca602791396060600080856001600160a01b0316856040516117bd9190611d3a565b600060405180830381855af49150503d80600081146117f8576040519150601f19603f3d011682016040523d82523d6000602084013e6117fd565b606091505b5091509150610c30868383876060831561187657825160000361186f57611823856115ff565b61186f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161026e565b5081611880565b6118808383611888565b949350505050565b8151156118985781518083602001fd5b8060405162461bcd60e51b815260040161026e9190611d56565b6001600160a01b03811681146104f457600080fd5b600080604083850312156118da57600080fd5b82356118e5816118b2565b915060208301356118f5816118b2565b809150509250929050565b60006020828403121561191257600080fd5b81356115d3816118b2565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156119555761195561191d565b60405290565b604051601f8201601f191681016001600160401b03811182821017156119835761198361191d565b604052919050565b60006001600160401b038211156119a4576119a461191d565b50601f01601f191660200190565b600080604083850312156119c557600080fd5b82356119d0816118b2565b915060208301356001600160401b038111156119eb57600080fd5b8301601f810185136119fc57600080fd5b8035611a0f611a0a8261198b565b61195b565b818152866020838501011115611a2457600080fd5b816020840160208301376000602083830101528093505050509250929050565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052601160045260246000fd5b808201808211156107fe576107fe611a58565b6001600160a01b03929092168252602082015260400190565b80518015158114611aaa57600080fd5b919050565b600060208284031215611ac157600080fd5b6115d382611a9a565b818103818111156107fe576107fe611a58565b6020808252602c90820152600080516020611d8a83398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c90820152600080516020611d8a83398151915260408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215611b6357600080fd5b81516115d3816118b2565b8051611aaa816118b2565b60005b83811015611b94578181015183820152602001611b7c565b50506000910152565b600082601f830112611bae57600080fd5b8151611bbc611a0a8261198b565b818152846020838601011115611bd157600080fd5b611880826020830160208701611b79565b600060208284031215611bf457600080fd5b81516001600160401b03811115611c0a57600080fd5b820160e08185031215611c1c57600080fd5b611c24611933565b611c2d82611b6e565b815260208281015190820152611c4560408301611b6e565b604082015260608201516001600160401b03811115611c6357600080fd5b611c6f86828501611b9d565b60608301525060808201516001600160401b03811115611c8e57600080fd5b611c9a86828501611b9d565b60808301525060a08281015190820152611cb660c08301611a9a565b60c0820152949350505050565b600060208284031215611cd557600080fd5b5051919050565b6001600160a01b0392831681529116602082015260400190565b600080600060608486031215611d0b57600080fd5b5050815160208301516040909301519094929350919050565b634e487b7160e01b600052601260045260246000fd5b60008251611d4c818460208701611b79565b9190910192915050565b6020815260008251806020840152611d75816040850160208701611b79565b601f01601f1916919091016040019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220acc64b1bc9a37a4beae07407eb84e4c26e16f4f8e181e1b05d5a88baa6cb5a0764736f6c634300081b0033000000000000000000000000388b5e4a211439034a09705718acae7ef1920968