Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Latest 25 from a total of 37,223 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 22375180 | 309 days ago | IN | 0 ETH | 0.00012597 | ||||
| Claim | 22370218 | 310 days ago | IN | 0 ETH | 0.00008595 | ||||
| Claim | 22364927 | 310 days ago | IN | 0 ETH | 0.00004021 | ||||
| Claim | 22343443 | 313 days ago | IN | 0 ETH | 0.00008481 | ||||
| Claim | 22319177 | 317 days ago | IN | 0 ETH | 0.00010341 | ||||
| Claim | 22312621 | 318 days ago | IN | 0 ETH | 0.00005674 | ||||
| Claim | 22297316 | 320 days ago | IN | 0 ETH | 0.00006526 | ||||
| Claim | 22295677 | 320 days ago | IN | 0 ETH | 0.0000894 | ||||
| Claim | 22285374 | 321 days ago | IN | 0 ETH | 0.00018682 | ||||
| Claim | 22283593 | 322 days ago | IN | 0 ETH | 0.00003097 | ||||
| Claim | 22281473 | 322 days ago | IN | 0 ETH | 0.00008015 | ||||
| Claim | 22280245 | 322 days ago | IN | 0 ETH | 0.00009053 | ||||
| Claim | 22272236 | 323 days ago | IN | 0 ETH | 0.00003349 | ||||
| Claim | 22271896 | 323 days ago | IN | 0 ETH | 0.00005421 | ||||
| Claim | 22269268 | 324 days ago | IN | 0 ETH | 0.00009073 | ||||
| Claim | 22268641 | 324 days ago | IN | 0 ETH | 0.00065517 | ||||
| Claim | 22266551 | 324 days ago | IN | 0 ETH | 0.00004255 | ||||
| Claim | 22265472 | 324 days ago | IN | 0 ETH | 0.00008673 | ||||
| Claim | 22261629 | 325 days ago | IN | 0 ETH | 0.00008749 | ||||
| Claim | 22261274 | 325 days ago | IN | 0 ETH | 0.00020517 | ||||
| Claim | 22261158 | 325 days ago | IN | 0 ETH | 0.00003755 | ||||
| Claim | 22260692 | 325 days ago | IN | 0 ETH | 0.00009229 | ||||
| Claim | 22260632 | 325 days ago | IN | 0 ETH | 0.0001227 | ||||
| Claim | 22260511 | 325 days ago | IN | 0 ETH | 0.00042752 | ||||
| Claim | 22260183 | 325 days ago | IN | 0 ETH | 0.00019706 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
RewardDistributorV3
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BSD
pragma solidity ^0.8.0;
import {AccessControl} from '@openzeppelin/contracts/access/AccessControl.sol';
import {Pausable} from '@openzeppelin/contracts/security/Pausable.sol';
import {ReentrancyGuard} from '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import {IERC20, SafeERC20} from '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import {ECDSA} from '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import {IStakeFor} from './IStakeFor.sol';
contract RewardDistributorV3 is AccessControl, Pausable {
using SafeERC20 for IERC20;
bytes32 public constant SIGNER_ROLE = keccak256('SIGNER_ROLE');
bytes32 public constant OPERATOR = keccak256('OPERATOR');
bytes32 public constant DELAYED_OPERATOR = keccak256('DELAYED_OPERATOR');
uint256 public totalRewardDistributed;
IStakeFor public stakingPool;
IERC20 public immutable x2y2Token;
mapping(address => uint256) public userClaimedTotal;
event Reward(address user, uint256 amount);
event StakingPoolUpdate(address pool);
constructor(
IERC20 _x2y2Token,
IStakeFor _stakingPool,
address _signer,
address _operator,
address _delayedOperator,
address _admin
) {
x2y2Token = _x2y2Token;
stakingPool = _stakingPool;
if (_admin == address(0)) {
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
} else {
_grantRole(DEFAULT_ADMIN_ROLE, _admin);
}
if (_operator != address(0)) {
_grantRole(OPERATOR, _operator);
}
if (_delayedOperator != address(0)) {
_grantRole(DELAYED_OPERATOR, _delayedOperator);
}
if (_signer != address(0)) {
_grantRole(SIGNER_ROLE, _signer);
}
}
function pause() external onlyRole(OPERATOR) {
_pause();
}
function unpause() external onlyRole(OPERATOR) {
_unpause();
}
function operatorWithdraw(
IERC20 token,
uint256 amount,
address to
) external onlyRole(DELAYED_OPERATOR) {
require(to != address(0), 'Caller: to is 0x0');
token.safeTransfer(to, amount);
}
function updateStakingPool(IStakeFor pool_) external onlyRole(OPERATOR) {
stakingPool = pool_;
emit StakingPoolUpdate(address(pool_));
}
function claim(
uint256 deadline,
uint256 rewards,
bool staking,
uint8 v,
bytes32 r,
bytes32 s
) external whenNotPaused {
require(rewards > 0, 'Caller: reward > 0');
require(deadline > block.timestamp, 'Caller: deadline reached');
address signer = ECDSA.recover(
keccak256(abi.encode(rewards, msg.sender, deadline)),
v,
r,
s
);
require(hasRole(SIGNER_ROLE, signer), 'Caller: invalid signature');
uint256 amount = rewards - userClaimedTotal[msg.sender];
require(amount > 0, 'Caller: no reward to claim');
userClaimedTotal[msg.sender] = rewards;
totalRewardDistributed += amount;
emit Reward(msg.sender, amount);
if (staking && address(stakingPool) != address(0)) {
x2y2Token.approve(address(stakingPool), amount);
stakingPool.depositFor(msg.sender, amount);
} else {
x2y2Token.safeTransfer(msg.sender, amount);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.0;
import "../Strings.sol";
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
// Check the signature length
// - case 65: r,s,v signature (standard)
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s;
uint8 v;
assembly {
s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
v := add(shr(255, vs), 27)
}
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Message, created from `s`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IStakeFor {
function depositFor(address user, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}{
"optimizer": {
"enabled": true,
"runs": 100
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_x2y2Token","type":"address"},{"internalType":"contract IStakeFor","name":"_stakingPool","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_delayedOperator","type":"address"},{"internalType":"address","name":"_admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Reward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"StakingPoolUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DELAYED_OPERATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"bool","name":"staking","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"operatorWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingPool","outputs":[{"internalType":"contract IStakeFor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewardDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStakeFor","name":"pool_","type":"address"}],"name":"updateStakingPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userClaimedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"x2y2Token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b50604051620018e2380380620018e2833981016040819052620000349162000201565b6001805460ff191690556001600160a01b03868116608052600380546001600160a01b03191687831617905581166200007a576200007460003362000147565b62000087565b6200008760008262000147565b6001600160a01b03831615620000c357620000c37f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c8462000147565b6001600160a01b03821615620000ff57620000ff7f9e82a9a71cc445574ff5ed9759fa9ee0fe8a9386bece5361bc8d03c890da5d098362000147565b6001600160a01b038416156200013b576200013b7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f708562000147565b50505050505062000295565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001e4576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001a33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6001600160a01b0381168114620001fe57600080fd5b50565b60008060008060008060c087890312156200021b57600080fd5b86516200022881620001e8565b60208801519096506200023b81620001e8565b60408801519095506200024e81620001e8565b60608801519094506200026181620001e8565b60808801519093506200027481620001e8565b60a08801519092506200028781620001e8565b809150509295509295509295565b608051611623620002bf600039600081816102e40152818161057c015261068301526116236000f3fe608060405234801561001057600080fd5b506004361061012b5760003560e01c80637060e421116100ad578063a1ebf35d11610071578063a1ebf35d1461028a578063a217fddf146102b1578063a99bc409146102b9578063d547741f146102cc578063ebde5ee6146102df57600080fd5b80637060e421146102275780638456cb591461024757806391d148541461024f578063983d273714610262578063a118e3a61461027757600080fd5b806330188ee8116100f457806330188ee8146101d157806336568abe146101da5780633f4ba83a146101ed5780635c975abb146101f557806369c007b51461020057600080fd5b8062f51b741461013057806301ffc9a7146101455780630c56ae3b1461016d578063248a9ca31461018d5780632f2ff15d146101be575b600080fd5b61014361013e366004611269565b610306565b005b6101586101533660046112cb565b6106b4565b60405190151581526020015b60405180910390f35b600354610180906001600160a01b031681565b60405161016491906112f5565b6101b061019b366004611309565b60009081526020819052604090206001015490565b604051908152602001610164565b6101436101cc366004611337565b6106eb565b6101b060025481565b6101436101e8366004611337565b610716565b610143610794565b60015460ff16610158565b6101b07f9e82a9a71cc445574ff5ed9759fa9ee0fe8a9386bece5361bc8d03c890da5d0981565b6101b0610235366004611367565b60046020526000908152604090205481565b6101436107b8565b61015861025d366004611337565b6107d9565b6101b06000805160206115ce83398151915281565b610143610285366004611384565b610802565b6101b07fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b6101b0600081565b6101436102c7366004611367565b610891565b6101436102da366004611337565b610901565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b60015460ff16156103325760405162461bcd60e51b8152600401610329906113c6565b60405180910390fd5b600085116103775760405162461bcd60e51b8152602060048201526012602482015271043616c6c65723a20726577617264203e20360741b6044820152606401610329565b4286116103c15760405162461bcd60e51b815260206004820152601860248201527710d85b1b195c8e88191958591b1a5b99481c995858da195960421b6044820152606401610329565b60408051602081018790523391810191909152606081018790526000906104039060800160405160208183030381529060405280519060200120858585610927565b905061042f7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70826107d9565b6104775760405162461bcd60e51b815260206004820152601960248201527843616c6c65723a20696e76616c6964207369676e617475726560381b6044820152606401610329565b336000908152600460205260408120546104919088611406565b9050600081116104e35760405162461bcd60e51b815260206004820152601a60248201527f43616c6c65723a206e6f2072657761726420746f20636c61696d0000000000006044820152606401610329565b3360009081526004602052604081208890556002805483929061050790849061141d565b90915550506040517f619caafabdd75649b302ba8419e48cccf64f37f1983ac4727cfb38b57703ffc99061053e9033908490611435565b60405180910390a185801561055d57506003546001600160a01b031615155b156106765760035460405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169263095ea7b3926105b79291909116908590600401611435565b6020604051808303816000875af11580156105d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fa919061144e565b506003546040516317a790f160e11b81526001600160a01b0390911690632f4f21e29061062d9033908590600401611435565b6020604051808303816000875af115801561064c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610670919061144e565b506106aa565b6106aa6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361094f565b5050505050505050565b60006001600160e01b03198216637965db0b60e01b14806106e557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60008281526020819052604090206001015461070781336109a5565b6107118383610a09565b505050565b6001600160a01b03811633146107865760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610329565b6107908282610a8d565b5050565b6000805160206115ce8339815191526107ad81336109a5565b6107b5610af2565b50565b6000805160206115ce8339815191526107d181336109a5565b6107b5610b7f565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b7f9e82a9a71cc445574ff5ed9759fa9ee0fe8a9386bece5361bc8d03c890da5d0961082d81336109a5565b6001600160a01b0382166108775760405162461bcd60e51b8152602060048201526011602482015270043616c6c65723a20746f2069732030783607c1b6044820152606401610329565b61088b6001600160a01b038516838561094f565b50505050565b6000805160206115ce8339815191526108aa81336109a5565b600380546001600160a01b0319166001600160a01b0384161790556040517f9f1bf3fb723e1bdcfb998d2ee0163f4d3a058bd630ba4eb89782796e76271bae906108f59084906112f5565b60405180910390a15050565b60008281526020819052604090206001015461091d81336109a5565b6107118383610a8d565b600080600061093887878787610bd5565b9150915061094581610cb8565b5095945050505050565b6107118363a9059cbb60e01b848460405160240161096e929190611435565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610e6e565b6109af82826107d9565b610790576109c7816001600160a01b03166014610f40565b6109d2836020610f40565b6040516020016109e3929190611497565b60408051601f198184030181529082905262461bcd60e51b825261032991600401611506565b610a1382826107d9565b610790576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610a493390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610a9782826107d9565b15610790576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60015460ff16610b3b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610329565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051610b7591906112f5565b60405180910390a1565b60015460ff1615610ba25760405162461bcd60e51b8152600401610329906113c6565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610b68565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115610c025750600090506003610caf565b8460ff16601b14158015610c1a57508460ff16601c14155b15610c2b5750600090506004610caf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610c7f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ca857600060019250925050610caf565b9150600090505b94509492505050565b6000816004811115610ccc57610ccc611539565b1415610cd55750565b6001816004811115610ce957610ce9611539565b1415610d325760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610329565b6002816004811115610d4657610d46611539565b1415610d945760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610329565b6003816004811115610da857610da8611539565b1415610e015760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610329565b6004816004811115610e1557610e15611539565b14156107b55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610329565b6000610ec3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110e39092919063ffffffff16565b8051909150156107115780806020019051810190610ee1919061144e565b6107115760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610329565b60606000610f4f83600261154f565b610f5a90600261141d565b67ffffffffffffffff811115610f7257610f7261156e565b6040519080825280601f01601f191660200182016040528015610f9c576020820181803683370190505b509050600360fc1b81600081518110610fb757610fb7611584565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610fe657610fe6611584565b60200101906001600160f81b031916908160001a905350600061100a84600261154f565b61101590600161141d565b90505b600181111561108d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061104957611049611584565b1a60f81b82828151811061105f5761105f611584565b60200101906001600160f81b031916908160001a90535060049490941c936110868161159a565b9050611018565b5083156110dc5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610329565b9392505050565b60606110f284846000856110fa565b949350505050565b60608247101561115b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610329565b843b6111a95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610329565b600080866001600160a01b031685876040516111c591906115b1565b60006040518083038185875af1925050503d8060008114611202576040519150601f19603f3d011682016040523d82523d6000602084013e611207565b606091505b5091509150611217828286611222565b979650505050505050565b606083156112315750816110dc565b8251156112415782518084602001fd5b8160405162461bcd60e51b81526004016103299190611506565b80151581146107b557600080fd5b60008060008060008060c0878903121561128257600080fd5b8635955060208701359450604087013561129b8161125b565b9350606087013560ff811681146112b157600080fd5b9598949750929560808101359460a0909101359350915050565b6000602082840312156112dd57600080fd5b81356001600160e01b0319811681146110dc57600080fd5b6001600160a01b0391909116815260200190565b60006020828403121561131b57600080fd5b5035919050565b6001600160a01b03811681146107b557600080fd5b6000806040838503121561134a57600080fd5b82359150602083013561135c81611322565b809150509250929050565b60006020828403121561137957600080fd5b81356110dc81611322565b60008060006060848603121561139957600080fd5b83356113a481611322565b92506020840135915060408401356113bb81611322565b809150509250925092565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611418576114186113f0565b500390565b60008219821115611430576114306113f0565b500190565b6001600160a01b03929092168252602082015260400190565b60006020828403121561146057600080fd5b81516110dc8161125b565b60005b8381101561148657818101518382015260200161146e565b8381111561088b5750506000910152565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516114c981601785016020880161146b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516114fa81602884016020880161146b565b01602801949350505050565b602081526000825180602084015261152581604085016020870161146b565b601f01601f19169190910160400192915050565b634e487b7160e01b600052602160045260246000fd5b6000816000190483118215151615611569576115696113f0565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816115a9576115a96113f0565b506000190190565b600082516115c381846020870161146b565b919091019291505056fe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0ca2646970667358221220846355a69d1ae6f9c61c9f3863f1873b6fab6712873d7fd5ad4731c5d16e495064736f6c634300080b00330000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc9000000000000000000000000c8c3cc5be962b6d281e4a53dbcce1359f76a1b8500000000000000000000000020bc655674053972dab2fbd295e60239265729250000000000000000000000005d7cca9fb832bbd99c8bd720ebda39b0286483010000000000000000000000005d7cca9fb832bbd99c8bd720ebda39b0286483010000000000000000000000005d7cca9fb832bbd99c8bd720ebda39b028648301
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012b5760003560e01c80637060e421116100ad578063a1ebf35d11610071578063a1ebf35d1461028a578063a217fddf146102b1578063a99bc409146102b9578063d547741f146102cc578063ebde5ee6146102df57600080fd5b80637060e421146102275780638456cb591461024757806391d148541461024f578063983d273714610262578063a118e3a61461027757600080fd5b806330188ee8116100f457806330188ee8146101d157806336568abe146101da5780633f4ba83a146101ed5780635c975abb146101f557806369c007b51461020057600080fd5b8062f51b741461013057806301ffc9a7146101455780630c56ae3b1461016d578063248a9ca31461018d5780632f2ff15d146101be575b600080fd5b61014361013e366004611269565b610306565b005b6101586101533660046112cb565b6106b4565b60405190151581526020015b60405180910390f35b600354610180906001600160a01b031681565b60405161016491906112f5565b6101b061019b366004611309565b60009081526020819052604090206001015490565b604051908152602001610164565b6101436101cc366004611337565b6106eb565b6101b060025481565b6101436101e8366004611337565b610716565b610143610794565b60015460ff16610158565b6101b07f9e82a9a71cc445574ff5ed9759fa9ee0fe8a9386bece5361bc8d03c890da5d0981565b6101b0610235366004611367565b60046020526000908152604090205481565b6101436107b8565b61015861025d366004611337565b6107d9565b6101b06000805160206115ce83398151915281565b610143610285366004611384565b610802565b6101b07fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b6101b0600081565b6101436102c7366004611367565b610891565b6101436102da366004611337565b610901565b6101807f0000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc981565b60015460ff16156103325760405162461bcd60e51b8152600401610329906113c6565b60405180910390fd5b600085116103775760405162461bcd60e51b8152602060048201526012602482015271043616c6c65723a20726577617264203e20360741b6044820152606401610329565b4286116103c15760405162461bcd60e51b815260206004820152601860248201527710d85b1b195c8e88191958591b1a5b99481c995858da195960421b6044820152606401610329565b60408051602081018790523391810191909152606081018790526000906104039060800160405160208183030381529060405280519060200120858585610927565b905061042f7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70826107d9565b6104775760405162461bcd60e51b815260206004820152601960248201527843616c6c65723a20696e76616c6964207369676e617475726560381b6044820152606401610329565b336000908152600460205260408120546104919088611406565b9050600081116104e35760405162461bcd60e51b815260206004820152601a60248201527f43616c6c65723a206e6f2072657761726420746f20636c61696d0000000000006044820152606401610329565b3360009081526004602052604081208890556002805483929061050790849061141d565b90915550506040517f619caafabdd75649b302ba8419e48cccf64f37f1983ac4727cfb38b57703ffc99061053e9033908490611435565b60405180910390a185801561055d57506003546001600160a01b031615155b156106765760035460405163095ea7b360e01b81526001600160a01b037f0000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc981169263095ea7b3926105b79291909116908590600401611435565b6020604051808303816000875af11580156105d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fa919061144e565b506003546040516317a790f160e11b81526001600160a01b0390911690632f4f21e29061062d9033908590600401611435565b6020604051808303816000875af115801561064c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610670919061144e565b506106aa565b6106aa6001600160a01b037f0000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc916338361094f565b5050505050505050565b60006001600160e01b03198216637965db0b60e01b14806106e557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60008281526020819052604090206001015461070781336109a5565b6107118383610a09565b505050565b6001600160a01b03811633146107865760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610329565b6107908282610a8d565b5050565b6000805160206115ce8339815191526107ad81336109a5565b6107b5610af2565b50565b6000805160206115ce8339815191526107d181336109a5565b6107b5610b7f565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b7f9e82a9a71cc445574ff5ed9759fa9ee0fe8a9386bece5361bc8d03c890da5d0961082d81336109a5565b6001600160a01b0382166108775760405162461bcd60e51b8152602060048201526011602482015270043616c6c65723a20746f2069732030783607c1b6044820152606401610329565b61088b6001600160a01b038516838561094f565b50505050565b6000805160206115ce8339815191526108aa81336109a5565b600380546001600160a01b0319166001600160a01b0384161790556040517f9f1bf3fb723e1bdcfb998d2ee0163f4d3a058bd630ba4eb89782796e76271bae906108f59084906112f5565b60405180910390a15050565b60008281526020819052604090206001015461091d81336109a5565b6107118383610a8d565b600080600061093887878787610bd5565b9150915061094581610cb8565b5095945050505050565b6107118363a9059cbb60e01b848460405160240161096e929190611435565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610e6e565b6109af82826107d9565b610790576109c7816001600160a01b03166014610f40565b6109d2836020610f40565b6040516020016109e3929190611497565b60408051601f198184030181529082905262461bcd60e51b825261032991600401611506565b610a1382826107d9565b610790576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610a493390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610a9782826107d9565b15610790576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60015460ff16610b3b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610329565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051610b7591906112f5565b60405180910390a1565b60015460ff1615610ba25760405162461bcd60e51b8152600401610329906113c6565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610b68565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115610c025750600090506003610caf565b8460ff16601b14158015610c1a57508460ff16601c14155b15610c2b5750600090506004610caf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610c7f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ca857600060019250925050610caf565b9150600090505b94509492505050565b6000816004811115610ccc57610ccc611539565b1415610cd55750565b6001816004811115610ce957610ce9611539565b1415610d325760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610329565b6002816004811115610d4657610d46611539565b1415610d945760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610329565b6003816004811115610da857610da8611539565b1415610e015760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610329565b6004816004811115610e1557610e15611539565b14156107b55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610329565b6000610ec3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110e39092919063ffffffff16565b8051909150156107115780806020019051810190610ee1919061144e565b6107115760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610329565b60606000610f4f83600261154f565b610f5a90600261141d565b67ffffffffffffffff811115610f7257610f7261156e565b6040519080825280601f01601f191660200182016040528015610f9c576020820181803683370190505b509050600360fc1b81600081518110610fb757610fb7611584565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610fe657610fe6611584565b60200101906001600160f81b031916908160001a905350600061100a84600261154f565b61101590600161141d565b90505b600181111561108d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061104957611049611584565b1a60f81b82828151811061105f5761105f611584565b60200101906001600160f81b031916908160001a90535060049490941c936110868161159a565b9050611018565b5083156110dc5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610329565b9392505050565b60606110f284846000856110fa565b949350505050565b60608247101561115b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610329565b843b6111a95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610329565b600080866001600160a01b031685876040516111c591906115b1565b60006040518083038185875af1925050503d8060008114611202576040519150601f19603f3d011682016040523d82523d6000602084013e611207565b606091505b5091509150611217828286611222565b979650505050505050565b606083156112315750816110dc565b8251156112415782518084602001fd5b8160405162461bcd60e51b81526004016103299190611506565b80151581146107b557600080fd5b60008060008060008060c0878903121561128257600080fd5b8635955060208701359450604087013561129b8161125b565b9350606087013560ff811681146112b157600080fd5b9598949750929560808101359460a0909101359350915050565b6000602082840312156112dd57600080fd5b81356001600160e01b0319811681146110dc57600080fd5b6001600160a01b0391909116815260200190565b60006020828403121561131b57600080fd5b5035919050565b6001600160a01b03811681146107b557600080fd5b6000806040838503121561134a57600080fd5b82359150602083013561135c81611322565b809150509250929050565b60006020828403121561137957600080fd5b81356110dc81611322565b60008060006060848603121561139957600080fd5b83356113a481611322565b92506020840135915060408401356113bb81611322565b809150509250925092565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611418576114186113f0565b500390565b60008219821115611430576114306113f0565b500190565b6001600160a01b03929092168252602082015260400190565b60006020828403121561146057600080fd5b81516110dc8161125b565b60005b8381101561148657818101518382015260200161146e565b8381111561088b5750506000910152565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516114c981601785016020880161146b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516114fa81602884016020880161146b565b01602801949350505050565b602081526000825180602084015261152581604085016020870161146b565b601f01601f19169190910160400192915050565b634e487b7160e01b600052602160045260246000fd5b6000816000190483118215151615611569576115696113f0565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816115a9576115a96113f0565b506000190190565b600082516115c381846020870161146b565b919091019291505056fe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0ca2646970667358221220846355a69d1ae6f9c61c9f3863f1873b6fab6712873d7fd5ad4731c5d16e495064736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc9000000000000000000000000c8c3cc5be962b6d281e4a53dbcce1359f76a1b8500000000000000000000000020bc655674053972dab2fbd295e60239265729250000000000000000000000005d7cca9fb832bbd99c8bd720ebda39b0286483010000000000000000000000005d7cca9fb832bbd99c8bd720ebda39b0286483010000000000000000000000005d7cca9fb832bbd99c8bd720ebda39b028648301
-----Decoded View---------------
Arg [0] : _x2y2Token (address): 0x1E4EDE388cbc9F4b5c79681B7f94d36a11ABEBC9
Arg [1] : _stakingPool (address): 0xc8C3CC5be962b6D281E4a53DBcCe1359F76a1B85
Arg [2] : _signer (address): 0x20bc655674053972dab2FbD295e6023926572925
Arg [3] : _operator (address): 0x5D7CcA9Fb832BBD99C8bD720EbdA39B028648301
Arg [4] : _delayedOperator (address): 0x5D7CcA9Fb832BBD99C8bD720EbdA39B028648301
Arg [5] : _admin (address): 0x5D7CcA9Fb832BBD99C8bD720EbdA39B028648301
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc9
Arg [1] : 000000000000000000000000c8c3cc5be962b6d281e4a53dbcce1359f76a1b85
Arg [2] : 00000000000000000000000020bc655674053972dab2fbd295e6023926572925
Arg [3] : 0000000000000000000000005d7cca9fb832bbd99c8bd720ebda39b028648301
Arg [4] : 0000000000000000000000005d7cca9fb832bbd99c8bd720ebda39b028648301
Arg [5] : 0000000000000000000000005d7cca9fb832bbd99c8bd720ebda39b028648301
Loading...
Loading
Loading...
Loading
Net Worth in USD
$14,193.37
Net Worth in ETH
6.675914
Token Allocations
X2Y2
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.00097 | 14,630,834.18 | $14,193.37 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.