0 txs
9 calls
constructor
constructor()
functions
allowance
viewfunction allowance(address owner, address spender) view returns (uint256)
balanceOf
viewfunction balanceOf(address account) view returns (uint256)
cooldown
viewfunction cooldown() view returns (uint48)
cooldownInfos
viewfunction cooldownInfos(address) view returns (uint256 cooldownAmount, uint256 cooldownEndTimestamp)
decimals
viewfunction decimals() view returns (uint8)
MAX_COOLDOWN
viewfunction MAX_COOLDOWN() view returns (uint48)
name
viewfunction name() view returns (string)
owner
viewfunction owner() view returns (address)
paused
viewfunction paused() view returns (bool)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
symbol
viewfunction symbol() view returns (string)
token
viewfunction token() view returns (address)
totalSupply
viewfunction totalSupply() view returns (uint256)
UPGRADE_INTERFACE_VERSION
viewfunction UPGRADE_INTERFACE_VERSION() view returns (string)
approve
nonpayablefunction approve(address spender, uint256 value) returns (bool)
initialize
nonpayablefunction initialize(string name_, string symbol_, address token_, uint48 cooldown_, address owner_)
pause
nonpayablefunction pause()
renounceOwnership
nonpayablefunction renounceOwnership()
setCooldown
nonpayablefunction setCooldown(uint48 cooldown_)
stake
nonpayablefunction stake(uint256 amount)
transfer
nonpayablefunction transfer(address to, uint256 value) returns (bool)
transferFrom
nonpayablefunction transferFrom(address from, address to, uint256 value) returns (bool)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
unpause
nonpayablefunction unpause()
unstake
nonpayablefunction unstake(uint256 amount)
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
withdraw
nonpayablefunction withdraw(uint256 amount)
events
Approval
event Approval(address indexed owner, address indexed spender, uint256 value)
Initialized
event Initialized(uint64 version)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused
event Paused(address account)
SetCooldown
event SetCooldown(uint48 oldCooldown, uint48 cooldown)
Stake
event Stake(address staker, uint256 amount)
Transfer
event Transfer(address indexed from, address indexed to, uint256 value)
Unpaused
event Unpaused(address account)
UnStake
event UnStake(address unstaker, uint256 amount)
Upgraded
event Upgraded(address indexed implementation)
Withdraw
event Withdraw(address withdrawer, uint256 amount)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
EnforcedPause
error EnforcedPause()
ERC1967InvalidImplementation
error ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable
error ERC1967NonPayable()
ERC20InsufficientAllowance
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed)
ERC20InsufficientBalance
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed)
ERC20InvalidApprover
error ERC20InvalidApprover(address approver)
ERC20InvalidReceiver
error ERC20InvalidReceiver(address receiver)
ERC20InvalidSender
error ERC20InvalidSender(address sender)
ERC20InvalidSpender
error ERC20InvalidSpender(address spender)
ExpectedPause
error ExpectedPause()
FailedCall
error FailedCall()
InvalidInitialization
error InvalidInitialization()
NotInitializing
error NotInitializing()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
UUPSUnauthorizedCallContext
error UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID
error UUPSUnsupportedProxiableUUID(bytes32 slot)
creation bytecode
0x60a080604052346100c257306080525f516020611c125f395f51905f525460ff8160401c166100b3576002600160401b03196001600160401b03821601610060575b604051611b4b90816100c78239608051818181610ceb0152610d8e0152f35b6001600160401b0319166001600160401b039081175f516020611c125f395f51905f525581527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a15f80610041565b63f92ee8a960e01b5f5260045ffd5b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c806306fdde0314611537578063095ea7b3146114b857806318160ddd1461148f57806323b872dd146113b75780632e17de78146112085780632e1a7d4d146110ad578063313ce56714611020578063397d4aaa14610fc35780633f4ba83a14610f455780634f1ef28614610d3f57806352d1902d14610cd95780635c975abb14610cab5780635ea796ea1461070557806370a08231146106c1578063715018a61461065a578063787a08a61461063357806381a25818146105f25780638456cb59146105815780638b41d35f146105645780638da5cb5b1461053057806395d89b4114610442578063a694fc3a14610253578063a9059cbb14610222578063ad3cb1cc146101df578063dd62ed3e14610198578063f2fde38b1461016d5763fc0c546a14610142575f80fd5b34610169575f366003190112610169575f546040516001600160a01b039091168152602090f35b5f80fd5b346101695760203660031901126101695761019661018961161e565b610191611901565b6117ab565b005b34610169576040366003190112610169576101b161161e565b6101c26101bc611634565b916116f1565b9060018060a01b03165f52602052602060405f2054604051908152f35b34610169575f3660031901126101695761021e60405161020060408261165f565b60058152640352e302e360dc1b6020820152604051918291826115f4565b0390f35b346101695760403660031901126101695761024861023e61161e565b602435903361181c565b602060405160018152f35b346101695760203660031901126101695760043561026f6118da565b61027a811515611761565b5f54604051636eb1769f60e11b81523360048201523060248201526001600160a01b0390911690602081604481855afa80156104375783915f91610402575b50106103c6576040516323b872dd60e01b6020820152336024820152306044820152606480820184905281526102f9916102f460848361165f565b611934565b33156103b3576103ae8161033c7febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a935f516020611a965f395f51905f525461179e565b5f516020611a965f395f51905f5255335f525f516020611a365f395f51905f5260205260405f208181540190556040518181525f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203393a360408051338152602081019290925290918291820190565b0390a1005b63ec442f0560e01b5f525f60045260245ffd5b60405162461bcd60e51b81526020600482015260146024820152736e6f7420656e6f75676820616c6c6f77616e636560601b6044820152606490fd5b9150506020813d60201161042f575b8161041e6020938361165f565b8101031261016957829051846102b9565b3d9150610411565b6040513d5f823e3d90fd5b34610169575f366003190112610169576040515f5f516020611a565f395f51905f525461046e81611729565b808452906001811690811561050c57506001146104a2575b61021e836104968185038261165f565b604051918291826115f4565b5f516020611a565f395f51905f525f9081527f46a2803e59a4de4e7a4c574b1243f25977ac4c77d5a1a4a609b5394cebb4a2aa939250905b8082106104f257509091508101602001610496610486565b9192600181602092548385880101520191019092916104da565b60ff191660208086019190915291151560051b840190910191506104969050610486565b34610169575f366003190112610169575f516020611a765f395f51905f52546040516001600160a01b039091168152602090f35b34610169575f36600319011261016957602060405162278d008152f35b34610169575f36600319011261016957610599611901565b6105a16118da565b600160ff195f516020611ad65f395f51905f525416175f516020611ad65f395f51905f52557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b34610169576020366003190112610169576001600160a01b0361061361161e565b165f5260016020526040805f206001815491015482519182526020820152f35b34610169575f36600319011261016957602065ffffffffffff5f5460a01c16604051908152f35b34610169575f36600319011261016957610672611901565b5f516020611a765f395f51905f5280546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610169576020366003190112610169576001600160a01b036106e261161e565b165f525f516020611a365f395f51905f52602052602060405f2054604051908152f35b346101695760a03660031901126101695760043567ffffffffffffffff8111610169576107369036906004016116d3565b60243567ffffffffffffffff8111610169576107569036906004016116d3565b6044356001600160a01b03811690819003610169576064359165ffffffffffff83169081840361016957608435906001600160a01b0382168203610169575f516020611af65f395f51905f52549560ff8760401c16159667ffffffffffffffff811680159081610ca3575b6001149081610c99575b159081610c90575b50610c815767ffffffffffffffff1981166001175f516020611af65f395f51905f525587610c55575b5061080561198c565b61080d61198c565b80519067ffffffffffffffff8211610b3e5781906108385f516020611a165f395f51905f5254611729565b601f8111610bdb575b50602090601f8311600114610b5d575f92610b52575b50508160011b915f199060031b1c1916175f516020611a165f395f51905f52555b80519067ffffffffffffffff8211610b3e576108a15f516020611a565f395f51905f5254611729565b601f8111610acf575b50602090601f8311600114610a4e576108f89392915f9183610a43575b50508160011b915f199060031b1c1916175f516020611a565f395f51905f52555b6108f061198c565b61019161198c565b61090061198c565b61090861198c565b61091061198c565b60ff195f516020611ad65f395f51905f5254165f516020611ad65f395f51905f52558115610a065762278d0011156109c1575f549165ffffffffffff60a01b9060a01b169165ffffffffffff60d01b1617175f5561096a57005b68ff0000000000000000195f516020611af65f395f51905f5254165f516020611af65f395f51905f52557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a1005b60405162461bcd60e51b815260206004820152601d60248201527f636f6f6c646f776e2065786365656473204d41585f434f4f4c444f574e0000006044820152606490fd5b60405162461bcd60e51b8152602060048201526015602482015274746f6b656e2061646472657373206973207a65726f60581b6044820152606490fd5b0151905088806108c7565b90601f198316915f516020611a565f395f51905f525f52815f20925f5b818110610ab757509160019391856108f897969410610a9f575b505050811b015f516020611a565f395f51905f52556108e8565b01515f1960f88460031b161c19169055888080610a85565b92936020600181928786015181550195019301610a6b565b5f516020611a565f395f51905f525f527f46a2803e59a4de4e7a4c574b1243f25977ac4c77d5a1a4a609b5394cebb4a2aa601f840160051c81019160208510610b34575b601f0160051c01905b818110610b2957506108aa565b5f8155600101610b1c565b9091508190610b13565b634e487b7160e01b5f52604160045260245ffd5b015190508880610857565b5f516020611a165f395f51905f525f9081528281209350601f198516905b818110610bc35750908460019594939210610bab575b505050811b015f516020611a165f395f51905f5255610878565b01515f1960f88460031b161c19169055888080610b91565b92936020600181928786015181550195019301610b7b565b5f516020611a165f395f51905f525f529091507f2ae08a8e29253f69ac5d979a101956ab8f8d9d7ded63fa7a83b16fc47648eab0601f840160051c81019160208510610c4b575b90601f859493920160051c01905b818110610c3d5750610841565b5f8155849350600101610c30565b9091508190610c22565b68ffffffffffffffffff191668010000000000000001175f516020611af65f395f51905f5255876107fc565b63f92ee8a960e01b5f5260045ffd5b905015896107d3565b303b1591506107cb565b8991506107c1565b34610169575f36600319011261016957602060ff5f516020611ad65f395f51905f5254166040519015158152f35b34610169575f366003190112610169577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163003610d305760206040515f516020611ab65f395f51905f528152f35b63703e46dd60e11b5f5260045ffd5b604036600319011261016957610d5361161e565b60243567ffffffffffffffff8111610169573660238201121561016957610d8490369060248160040135910161169d565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016308114908115610f23575b50610d3057610dc6611901565b6040516352d1902d60e01b81526001600160a01b0383169290602081600481875afa5f9181610eef575b50610e085783634c9c8ce360e01b5f5260045260245ffd5b805f516020611ab65f395f51905f52859203610edd5750813b15610ecb575f516020611ab65f395f51905f5280546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2815115610eb3575f8083602061019695519101845af43d15610eab573d91610e8f83611681565b92610e9d604051948561165f565b83523d5f602085013e6119b7565b6060916119b7565b505034610ebc57005b63b398979f60e01b5f5260045ffd5b634c9c8ce360e01b5f5260045260245ffd5b632a87526960e21b5f5260045260245ffd5b9091506020813d602011610f1b575b81610f0b6020938361165f565b8101031261016957519085610df0565b3d9150610efe565b5f516020611ab65f395f51905f52546001600160a01b03161415905083610db9565b34610169575f36600319011261016957610f5d611901565b5f516020611ad65f395f51905f525460ff811615610fb45760ff19165f516020611ad65f395f51905f52557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b638dfc202b60e01b5f5260045ffd5b3461016957602036600319011261016957610fdc61164a565b50610fe5611901565b60405162461bcd60e51b8152602060048201526013602482015272636f6f6c646f776e206e6f74206368616e676560681b6044820152606490fd5b34610169575f366003190112610169575f5460405163313ce56760e01b815290602090829060049082906001600160a01b03165afa8015610437575f90611070575b60209060ff60405191168152f35b506020813d6020116110a5575b8161108a6020938361165f565b81010312610169575160ff8116810361016957602090611062565b3d915061107d565b34610169576020366003190112610169576004356110c96118da565b6110d4811515611761565b335f52600160205260405f208054918083106111c357600182015442106111905780830392831161117c579190555f5460405163a9059cbb60e01b6020820152336024820152604480820184905281527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364926103ae929091611164916001600160a01b03166102f460648361165f565b60408051338152602081019290925290918291820190565b634e487b7160e01b5f52601160045260245ffd5b60405162461bcd60e51b815260206004820152600b60248201526a636f6f6c646f776e696e6760a81b6044820152606490fd5b60405162461bcd60e51b815260206004820152601a60248201527f6e6f7420656e6f75676820636f6f6c646f776e20616d6f756e740000000000006044820152606490fd5b34610169576020366003190112610169576004356112246118da565b61122f811515611761565b335f52600160205260405f20335f525f516020611a365f395f51905f5260205260405f2054821161137a5761126582825461179e565b8155600161127f65ffffffffffff5f5460a01c164261179e565b910155331561136757335f525f516020611a365f395f51905f5260205260405f205481811061134e57817fb24546d975e2628748efc9aced80665e0fad66272033e5c0ea25fd3afac99795926103ae92335f525f516020611a365f395f51905f526020520360405f2055805f516020611a965f395f51905f5254035f516020611a965f395f51905f52555f6040518281527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203392a360408051338152602081019290925290918291820190565b63391434e360e21b5f523360045260245260445260645ffd5b634b637e8f60e11b5f525f60045260245ffd5b60405162461bcd60e51b81526020600482015260156024820152746e6f7420656e6f75676820746f20756e7374616b6560581b6044820152606490fd5b34610169576060366003190112610169576113d061161e565b6113d8611634565b604435906113e5836116f1565b335f9081526020919091526040902054925f198410611409575b610248935061181c565b828410611474576001600160a01b0381161561146157331561144e5761024893611432826116f1565b60018060a01b0333165f526020528360405f20910390556113ff565b634a1406b160e11b5f525f60045260245ffd5b63e602df0560e01b5f525f60045260245ffd5b8284637dc7a0d960e11b5f523360045260245260445260645ffd5b34610169575f3660031901126101695760205f516020611a965f395f51905f5254604051908152f35b34610169576040366003190112610169576114d161161e565b602435903315611461576001600160a01b031690811561144e576114f4336116f1565b825f526020528060405f20556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b34610169575f366003190112610169576040515f5f516020611a165f395f51905f525461156381611729565b808452906001811690811561050c575060011461158a5761021e836104968185038261165f565b5f516020611a165f395f51905f525f9081527f2ae08a8e29253f69ac5d979a101956ab8f8d9d7ded63fa7a83b16fc47648eab0939250905b8082106115da57509091508101602001610496610486565b9192600181602092548385880101520191019092916115c2565b602060409281835280519182918282860152018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361016957565b602435906001600160a01b038216820361016957565b6004359065ffffffffffff8216820361016957565b90601f8019910116810190811067ffffffffffffffff821117610b3e57604052565b67ffffffffffffffff8111610b3e57601f01601f191660200190565b9291926116a982611681565b916116b7604051938461165f565b829481845281830111610169578281602093845f960137010152565b9080601f83011215610169578160206116ee9335910161169d565b90565b6001600160a01b03165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020526040902090565b90600182811c92168015611757575b602083101461174357565b634e487b7160e01b5f52602260045260245ffd5b91607f1691611738565b1561176857565b60405162461bcd60e51b815260206004820152600e60248201526d616d6f756e74206973207a65726f60901b6044820152606490fd5b9190820180921161117c57565b6001600160a01b03168015611809575f516020611a765f395f51905f5280546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3565b631e4fbdf760e01b5f525f60045260245ffd5b6001600160a01b0316908115611367576001600160a01b03169182156103b357815f525f516020611a365f395f51905f5260205260405f20548181106118c157817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92602092855f525f516020611a365f395f51905f5284520360405f2055845f525f516020611a365f395f51905f52825260405f20818154019055604051908152a3565b8263391434e360e21b5f5260045260245260445260645ffd5b60ff5f516020611ad65f395f51905f5254166118f257565b63d93c066560e01b5f5260045ffd5b5f516020611a765f395f51905f52546001600160a01b0316330361192157565b63118cdaa760e01b5f523360045260245ffd5b905f602091828151910182855af115610437575f513d61198357506001600160a01b0381163b155b6119635750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b6001141561195c565b60ff5f516020611af65f395f51905f525460401c16156119a857565b631afcd79f60e31b5f5260045ffd5b906119db57508051156119cc57805190602001fd5b63d6bda27560e01b5f5260045ffd5b81511580611a0c575b6119ec575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b156119e456fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0352c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0052c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace049016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930052c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbccd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a26469706673582212208a074ce5ac63ce23b4a179e340a3302b1a735aec149124f1a53528d7eb50181a64736f6c634300081c0033f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00