3 txs
6 calls
constructor
constructor(address _receiver, uint256 _initialRewardAmount, uint256 _initialRewardInterval, address _initialOwner)
functions
MAX_REWARD_INTERVAL
viewfunction MAX_REWARD_INTERVAL() view returns (uint256)
MIN_REWARD_INTERVAL
viewfunction MIN_REWARD_INTERVAL() view returns (uint256)
nextRewardTime
viewfunction nextRewardTime() view returns (uint256)
owner
viewfunction owner() view returns (address)
RECEIVER
viewfunction RECEIVER() view returns (address)
rewardAmount
viewfunction rewardAmount() view returns (uint256)
rewardInterval
viewfunction rewardInterval() view returns (uint256)
TOKEN
viewfunction TOKEN() view returns (address)
approve
nonpayablefunction approve(address _spender, uint256 _amount)
notify
nonpayablefunction notify()
renounceOwnership
nonpayablefunction renounceOwnership()
setRewardAmount
nonpayablefunction setRewardAmount(uint256 _newRewardAmount)
setRewardInterval
nonpayablefunction setRewardInterval(uint256 _newRewardInterval)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
Notified
event Notified(uint256 rewardAmount, uint256 nextRewardTime)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
RewardAmountSet
event RewardAmountSet(uint256 oldRewardAmount, uint256 newRewardAmount)
RewardIntervalSet
event RewardIntervalSet(uint256 oldRewardAmount, uint256 newRewardAmount)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
FailedInnerCall
error FailedInnerCall()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
RewardTokenNotifierBase__InvalidParameter
error RewardTokenNotifierBase__InvalidParameter()
RewardTokenNotifierBase__RewardIntervalNotElapsed
error RewardTokenNotifierBase__RewardIntervalNotElapsed()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
creation bytecode
0x610100806040523461021357608081610dc58038038091610020828561023d565b8339810103126102135780516001600160a01b03811690818103610213576020830151916060604085015194015160018060a01b03811680910361021357801561022a575f80546001600160a01b031981168317825560405194602094869460049486949293926001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36201518060c0526301e1338060e0525f6003556080526399248ea760e01b82525afa90811561021f575f916101d9575b5060a05280156101bf577f53ec5ac14ec827c0859f27c3d22f4ea8c29f6d64cbe2f92aeb55210ce6f89b3560406001548151908152836020820152a160015560c051811080156101ce575b6101bf577fe79d576837a40cc1dc753b1b3e79d5c33582fc2c5d5950e15f26a055534889c960406002548151908152836020820152a1600255604051610b50908161027582396080518181816102fe015261041c015260a0518181816104600152818161057f0152610699015260c0518181816101c301526102ae015260e05181818161025201526106530152f35b631f9ac7fb60e21b5f5260045ffd5b5060e0518111610130565b90506020813d602011610217575b816101f46020938361023d565b8101031261021357516001600160a01b0381168103610213575f6100e5565b5f80fd5b3d91506101e7565b6040513d5f823e3d90fd5b631e4fbdf760e01b5f525f60045260245ffd5b601f909101601f19168101906001600160401b0382119082101761026057604052565b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f5f3560e01c8063095ea7b3146106765780633a3eab641461063c578063715018a6146105c05780637f68e195146105a357806382bfefc814610553578063899f5898146103b05780638da5cb5b1461037d578063a8a65a7814610322578063ad7430cc146102d1578063b1ff9ba114610296578063bec4de3f14610278578063e3e84213146101a4578063f2fde38b146100d45763f7b2a7be146100b4575f80fd5b346100d157806003193601126100d1576020600154604051908152f35b80fd5b50346100d15760206003193601126100d15773ffffffffffffffffffffffffffffffffffffffff61010361089f565b61010b61094c565b1680156101785773ffffffffffffffffffffffffffffffffffffffff8254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b6024827f1e4fbdf700000000000000000000000000000000000000000000000000000000815280600452fd5b50346100d15760206003193601126100d1576004356101c161094c565b7f00000000000000000000000000000000000000000000000000000000000000008110801561024f575b610227577fe79d576837a40cc1dc753b1b3e79d5c33582fc2c5d5950e15f26a055534889c960406002548151908152836020820152a160025580f35b6004827f7e6b1fec000000000000000000000000000000000000000000000000000000008152fd5b507f000000000000000000000000000000000000000000000000000000000000000081116101eb565b50346100d157806003193601126100d1576020600254604051908152f35b50346100d157806003193601126100d15760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b50346100d157806003193601126100d157602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b50346100d15760206003193601126100d15760043561033f61094c565b8015610227577f53ec5ac14ec827c0859f27c3d22f4ea8c29f6d64cbe2f92aeb55210ce6f89b3560406001548151908152836020820152a160015580f35b50346100d157806003193601126100d15773ffffffffffffffffffffffffffffffffffffffff6020915416604051908152f35b5034610527575f60031936011261052757600354421061052b576103d6600254426108c2565b6003556001546040517fa9059cbb00000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016602482018190526044808301939093529181526104849061045e6064826108fc565b7f00000000000000000000000000000000000000000000000000000000000000006109ef565b600154813b15610527575f916024839260405194859384927f3c6b16ab00000000000000000000000000000000000000000000000000000000845260048401525af1801561051c57610509575b507f0fd7bb2818b0aaa42a4064edb68964c3e29810804cf8cce3060a3bac23fb9d79604060015460035482519182526020820152a180f35b61051591505f906108fc565b5f5f6104d1565b6040513d5f823e3d90fd5b5f80fd5b7f02dfb469000000000000000000000000000000000000000000000000000000005f5260045ffd5b34610527575f60031936011261052757602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b34610527575f600319360112610527576020600354604051908152f35b34610527575f600319360112610527576105d861094c565b5f73ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610527575f6003193601126105275760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346105275760406003193601126105275761068f61089f565b61069761094c565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff811690604051917fdd62ed3e00000000000000000000000000000000000000000000000000000000835230600484015273ffffffffffffffffffffffffffffffffffffffff841693846024850152602084604481855afa93841561051c575f9461086b575b505f80916107b16107496107a397602435906108c2565b60405197889160208301947f095ea7b3000000000000000000000000000000000000000000000000000000008652602484016020909392919373ffffffffffffffffffffffffffffffffffffffff60408201951681520152565b03601f1981018852876108fc565b85519082855af1906107c1610998565b82610839575b508161082e575b50156107d657005b61082761082c93604051907f095ea7b300000000000000000000000000000000000000000000000000000000602083015260248201525f6044820152604481526108216064826108fc565b826109ef565b6109ef565b005b90503b1515846107ce565b80519192508115918215610851575b505090856107c7565b61086492506020809183010191016109d7565b8580610848565b93506020843d602011610897575b81610886602093836108fc565b81010312610527579251925f610732565b3d9150610879565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361052757565b919082018092116108cf57565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b90601f601f19910116810190811067ffffffffffffffff82111761091f57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b73ffffffffffffffffffffffffffffffffffffffff5f5416330361096c57565b7f118cdaa7000000000000000000000000000000000000000000000000000000005f523360045260245ffd5b3d156109d2573d9067ffffffffffffffff821161091f57604051916109c76020601f19601f84011601846108fc565b82523d5f602084013e565b606090565b90816020910312610527575180151581036105275790565b5f8073ffffffffffffffffffffffffffffffffffffffff610a2593169360208151910182865af1610a1e610998565b9083610a81565b8051908115159182610a66575b5050610a3b5750565b7f5274afe7000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b610a7992506020809183010191016109d7565b155f80610a32565b90610abe5750805115610a9657805190602001fd5b7f1425ea42000000000000000000000000000000000000000000000000000000005f5260045ffd5b81511580610b11575b610acf575090565b73ffffffffffffffffffffffffffffffffffffffff907f9996b315000000000000000000000000000000000000000000000000000000005f521660045260245ffd5b50803b15610ac756fea264697066735822122077351177e8a9ec8ac0a7bc0aa654a6ff5edbefbeede20cb8634e9f645339450064736f6c634300081c003300000000000000000000000030641013934ec7625c9e73a4d63aab4201004259000000000000000000000000000000000000000000003a3bc7a5ab8e25e000000000000000000000000000000000000000000000000000000000000000278d0000000000000000000000000042d201cc4d9c1e31c032397f54cace2f48c1fa72