ETH Price: $1,959.02 (-0.20%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim144874272022-03-30 11:56:071432 days ago1648641367IN
X2Y2: X2Y2 Drop
0 ETH0.0093538437.52510855
Claim144871892022-03-30 11:00:581432 days ago1648638058IN
X2Y2: X2Y2 Drop
0 ETH0.0036031738.14824021
Claim144871422022-03-30 10:47:431432 days ago1648637263IN
X2Y2: X2Y2 Drop
0 ETH0.004539522
Claim144871422022-03-30 10:47:431432 days ago1648637263IN
X2Y2: X2Y2 Drop
0 ETH0.0054831222
Claim144869602022-03-30 10:04:151432 days ago1648634655IN
X2Y2: X2Y2 Drop
0 ETH0.0031490933.3321703
Claim144859182022-03-30 6:19:181432 days ago1648621158IN
X2Y2: X2Y2 Drop
0 ETH0.0024378825.79880661
Claim144854512022-03-30 4:33:021432 days ago1648614782IN
X2Y2: X2Y2 Drop
0 ETH0.0062321325.00164834
Claim144852432022-03-30 3:46:541432 days ago1648612014IN
X2Y2: X2Y2 Drop
0 ETH0.0032982834.90400718
Claim144852082022-03-30 3:40:361432 days ago1648611636IN
X2Y2: X2Y2 Drop
0 ETH0.0041887144.34382232
Claim144849442022-03-30 2:38:291432 days ago1648607909IN
X2Y2: X2Y2 Drop
0 ETH0.0034855736.89843369
Claim144848872022-03-30 2:24:451432 days ago1648607085IN
X2Y2: X2Y2 Drop
0 ETH0.0040114442.46173761
Claim144847822022-03-30 2:05:161432 days ago1648605916IN
X2Y2: X2Y2 Drop
0 ETH0.0034954637
Claim144846792022-03-30 1:39:561432 days ago1648604396IN
X2Y2: X2Y2 Drop
0 ETH0.0072996229.28176824
Claim144842732022-03-30 0:09:471433 days ago1648598987IN
X2Y2: X2Y2 Drop
0 ETH0.002810829.74524906
Claim144840452022-03-29 23:17:451433 days ago1648595865IN
X2Y2: X2Y2 Drop
0 ETH0.0044725247.33029841
Claim144837742022-03-29 22:23:451433 days ago1648592625IN
X2Y2: X2Y2 Drop
0 ETH0.0172182274.15607308
Claim144832342022-03-29 20:19:181433 days ago1648585158IN
X2Y2: X2Y2 Drop
0 ETH0.0027000728.58308114
Claim144825462022-03-29 17:48:351433 days ago1648576115IN
X2Y2: X2Y2 Drop
0 ETH0.010867143.60009913
Claim144820012022-03-29 15:50:201433 days ago1648569020IN
X2Y2: X2Y2 Drop
0 ETH0.0039882442.21610953
Claim144816972022-03-29 14:43:111433 days ago1648564991IN
X2Y2: X2Y2 Drop
0 ETH0.0041135843.53737376
Claim144814942022-03-29 13:57:511433 days ago1648562271IN
X2Y2: X2Y2 Drop
0 ETH0.0055924359.18174257
Claim144809252022-03-29 11:56:271433 days ago1648554987IN
X2Y2: X2Y2 Drop
0 ETH0.0038089240.31292793
Claim144808642022-03-29 11:42:041433 days ago1648554124IN
X2Y2: X2Y2 Drop
0 ETH0.0035424237.49229529
Claim144808482022-03-29 11:37:381433 days ago1648553858IN
X2Y2: X2Y2 Drop
0 ETH0.008981736.03737252
Claim144808432022-03-29 11:35:501433 days ago1648553750IN
X2Y2: X2Y2 Drop
0 ETH0.0026412327.95670623
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
X2Y2Drop

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.0;
pragma abicoder v2;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import './IStakeFor.sol';

contract X2Y2Drop is Ownable, Pausable {
    using SafeERC20 for IERC20;

    event Airdrop(address receiver, uint256 amount);
    event SignerUpdate(address signer, bool isRemoval);
    event StakingPoolUpdate(address pool);

    uint256 public constant MAX_AMOUNT_PER_ADDRESS = 1000 ether;

    uint256 public totalClaimed;

    uint256 public immutable startBlock;

    IERC20 public immutable token;

    IStakeFor public stakingPool;

    mapping(address => uint256) public claimed; // wallet -> amount claimed
    mapping(address => bool) public signers;

    constructor(
        IStakeFor pool_,
        IERC20 token_,
        address signer_,
        uint256 startBlock_
    ) {
        stakingPool = pool_;
        token = token_;
        startBlock = startBlock_;
        if (signer_ != address(0)) {
            signers[signer_] = true;
        }
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function updateStakingPool(IStakeFor pool_) external onlyOwner {
        stakingPool = pool_;
        emit StakingPoolUpdate(address(pool_));
    }

    function updateSigners(address[] memory toAdd, address[] memory toRemove) external onlyOwner {
        for (uint256 i = 0; i < toAdd.length; i++) {
            signers[toAdd[i]] = true;
            emit SignerUpdate(toAdd[i], false);
        }
        for (uint256 i = 0; i < toRemove.length; i++) {
            delete signers[toRemove[i]];
            emit SignerUpdate(toRemove[i], true);
        }
    }

    function claim(
        uint256 totalAmount,
        uint8 v,
        bytes32 r,
        bytes32 s,
        bool staking
    ) external whenNotPaused {
        require(block.number >= startBlock, 'Claim: wait for start');
        uint256 amount = totalAmount - claimed[msg.sender];
        require(amount > 0, 'Claim: nothing to send');
        require(totalAmount <= MAX_AMOUNT_PER_ADDRESS, 'Claim: amount exceeds maximum');

        bytes32 hash = keccak256(abi.encode(msg.sender, totalAmount));
        address signer = ECDSA.recover(hash, v, r, s);
        require(signers[signer], 'Claim: signature error');

        claimed[msg.sender] = totalAmount;

        if (staking) {
            require(address(stakingPool) != address(0), 'Cannot stake to address(0)');
            token.approve(address(stakingPool), amount);
            require(stakingPool.depositFor(msg.sender, amount), 'Claim: deposit failed');
        } else {
            token.safeTransfer(msg.sender, amount);
        }

        totalClaimed += amount;
        emit Airdrop(msg.sender, amount);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// 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 (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 (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 (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/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);
            }
        }
    }
}

// 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);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IStakeFor","name":"pool_","type":"address"},{"internalType":"contract IERC20","name":"token_","type":"address"},{"internalType":"address","name":"signer_","type":"address"},{"internalType":"uint256","name":"startBlock_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Airdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"bool","name":"isRemoval","type":"bool"}],"name":"SignerUpdate","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":"MAX_AMOUNT_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"bool","name":"staking","type":"bool"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"signers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingPool","outputs":[{"internalType":"contract IStakeFor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"toAdd","type":"address[]"},{"internalType":"address[]","name":"toRemove","type":"address[]"}],"name":"updateSigners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStakeFor","name":"pool_","type":"address"}],"name":"updateStakingPool","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b506040516200166138038062001661833981016040819052620000349162000116565b6200003f33620000ad565b6000805460ff60a01b19169055600280546001600160a01b0319166001600160a01b038681169190911790915583811660a0526080829052821615620000a3576001600160a01b0382166000908152600460205260409020805460ff191660011790555b5050505062000170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200011357600080fd5b50565b600080600080608085870312156200012d57600080fd5b84516200013a81620000fd565b60208601519094506200014d81620000fd565b60408601519093506200016081620000fd565b6060959095015193969295505050565b60805160a0516114b6620001ab6000396000818161022a015281816106fa015261084401526000818161013001526104ad01526114b66000f3fe608060405234801561001057600080fd5b50600436106100e05760003560e01c8063736c0d5b11610087578063736c0d5b146101a35780638456cb59146101c65780638da5cb5b146101ce578063a99bc409146101d6578063c884ef83146101e9578063d54ad2a114610209578063f2fde38b14610212578063fc0c546a1461022557600080fd5b80630c56ae3b146100e5578063350b23691461010e5780633f4ba83a1461012357806348cd4cb11461012b5780634b40dc10146101605780635c975abb146101705780636a068b1314610188578063715018a61461019b575b600080fd5b6002546100f8906001600160a01b031681565b604051610105919061110f565b60405180910390f35b61012161011c3660046111f5565b61024c565b005b61012161043d565b6101527f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610105565b610152683635c9adc5dea0000081565b610178610476565b6040519015158152602001610105565b610121610196366004611267565b610486565b6101216108c6565b6101786101b13660046112c3565b60046020526000908152604090205460ff1681565b6101216108ff565b6100f8610936565b6101216101e43660046112c3565b610945565b6101526101f73660046112c3565b60036020526000908152604090205481565b61015260015481565b6101216102203660046112c3565b6109ca565b6100f87f000000000000000000000000000000000000000000000000000000000000000081565b33610255610936565b6001600160a01b0316146102845760405162461bcd60e51b815260040161027b906112e0565b60405180910390fd5b60005b8251811015610362576001600460008584815181106102a8576102a8611315565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507fc648f6265408cc54c0dc26d24ba51dfc9f35ce1a63baa2228f65d93aaf11cc6783828151811061031a5761031a611315565b602002602001015160006040516103489291906001600160a01b039290921682521515602082015260400190565b60405180910390a18061035a81611341565b915050610287565b5060005b8151811015610438576004600083838151811061038557610385611315565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81549060ff02191690557fc648f6265408cc54c0dc26d24ba51dfc9f35ce1a63baa2228f65d93aaf11cc678282815181106103f0576103f0611315565b6020026020010151600160405161041e9291906001600160a01b039290921682521515602082015260400190565b60405180910390a18061043081611341565b915050610366565b505050565b33610446610936565b6001600160a01b03161461046c5760405162461bcd60e51b815260040161027b906112e0565b610474610a6a565b565b600054600160a01b900460ff1690565b61048e610476565b156104ab5760405162461bcd60e51b815260040161027b9061135c565b7f00000000000000000000000000000000000000000000000000000000000000004310156105135760405162461bcd60e51b815260206004820152601560248201527410db185a5b4e881dd85a5d08199bdc881cdd185c9d605a1b604482015260640161027b565b3360009081526003602052604081205461052d9087611386565b9050600081116105785760405162461bcd60e51b815260206004820152601660248201527510db185a5b4e881b9bdd1a1a5b99c81d1bc81cd95b9960521b604482015260640161027b565b683635c9adc5dea000008611156105d15760405162461bcd60e51b815260206004820152601d60248201527f436c61696d3a20616d6f756e742065786365656473206d6178696d756d000000604482015260640161027b565b600033876040516020016105e692919061139d565b604051602081830303815290604052805190602001209050600061060c82888888610afc565b6001600160a01b03811660009081526004602052604090205490915060ff166106705760405162461bcd60e51b815260206004820152601660248201527521b630b4b69d1039b4b3b730ba3ab9329032b93937b960511b604482015260640161027b565b3360009081526003602052604090208890558315610837576002546001600160a01b03166106e05760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f74207374616b6520746f2061646472657373283029000000000000604482015260640161027b565b60025460405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169263095ea7b392610735929190911690879060040161139d565b6020604051808303816000875af1158015610754573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077891906113b6565b506002546040516317a790f160e11b81526001600160a01b0390911690632f4f21e2906107ab903390879060040161139d565b6020604051808303816000875af11580156107ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ee91906113b6565b6108325760405162461bcd60e51b815260206004820152601560248201527410db185a5b4e8819195c1bdcda5d0819985a5b1959605a1b604482015260640161027b565b61086b565b61086b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163385610b24565b826001600082825461087d91906113d3565b90915550506040517f8c32c568416fcf97be35ce5b27844cfddcd63a67a1a602c3595ba5dac38f303a906108b4903390869061139d565b60405180910390a15050505050505050565b336108cf610936565b6001600160a01b0316146108f55760405162461bcd60e51b815260040161027b906112e0565b6104746000610b7a565b33610908610936565b6001600160a01b03161461092e5760405162461bcd60e51b815260040161027b906112e0565b610474610bca565b6000546001600160a01b031690565b3361094e610936565b6001600160a01b0316146109745760405162461bcd60e51b815260040161027b906112e0565b600280546001600160a01b0319166001600160a01b0383161790556040517f9f1bf3fb723e1bdcfb998d2ee0163f4d3a058bd630ba4eb89782796e76271bae906109bf90839061110f565b60405180910390a150565b336109d3610936565b6001600160a01b0316146109f95760405162461bcd60e51b815260040161027b906112e0565b6001600160a01b038116610a5e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161027b565b610a6781610b7a565b50565b610a72610476565b610ab55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161027b565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051610af2919061110f565b60405180910390a1565b6000806000610b0d87878787610c2a565b91509150610b1a81610d0d565b5095945050505050565b6104388363a9059cbb60e01b8484604051602401610b4392919061139d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610ec3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610bd2610476565b15610bef5760405162461bcd60e51b815260040161027b9061135c565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ae53390565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115610c575750600090506003610d04565b8460ff16601b14158015610c6f57508460ff16601c14155b15610c805750600090506004610d04565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610cd4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610cfd57600060019250925050610d04565b9150600090505b94509492505050565b6000816004811115610d2157610d216113eb565b1415610d2a5750565b6001816004811115610d3e57610d3e6113eb565b1415610d875760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b604482015260640161027b565b6002816004811115610d9b57610d9b6113eb565b1415610de95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161027b565b6003816004811115610dfd57610dfd6113eb565b1415610e565760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161027b565b6004816004811115610e6a57610e6a6113eb565b1415610a675760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161027b565b6000610f18826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f959092919063ffffffff16565b8051909150156104385780806020019051810190610f3691906113b6565b6104385760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161027b565b6060610fa48484600085610fae565b90505b9392505050565b60608247101561100f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161027b565b843b61105d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161027b565b600080866001600160a01b031685876040516110799190611431565b60006040518083038185875af1925050503d80600081146110b6576040519150601f19603f3d011682016040523d82523d6000602084013e6110bb565b606091505b50915091506110cb8282866110d6565b979650505050505050565b606083156110e5575081610fa7565b8251156110f55782518084602001fd5b8160405162461bcd60e51b815260040161027b919061144d565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610a6757600080fd5b803561115981611139565b919050565b600082601f83011261116f57600080fd5b8135602067ffffffffffffffff8083111561118c5761118c611123565b8260051b604051601f19603f830116810181811084821117156111b1576111b1611123565b6040529384528581018301938381019250878511156111cf57600080fd5b83870191505b848210156110cb576111e68261114e565b835291830191908301906111d5565b6000806040838503121561120857600080fd5b823567ffffffffffffffff8082111561122057600080fd5b61122c8683870161115e565b9350602085013591508082111561124257600080fd5b5061124f8582860161115e565b9150509250929050565b8015158114610a6757600080fd5b600080600080600060a0868803121561127f57600080fd5b85359450602086013560ff8116811461129757600080fd5b9350604086013592506060860135915060808601356112b581611259565b809150509295509295909350565b6000602082840312156112d557600080fd5b8135610fa781611139565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156113555761135561132b565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000828210156113985761139861132b565b500390565b6001600160a01b03929092168252602082015260400190565b6000602082840312156113c857600080fd5b8151610fa781611259565b600082198211156113e6576113e661132b565b500190565b634e487b7160e01b600052602160045260246000fd5b60005b8381101561141c578181015183820152602001611404565b8381111561142b576000848401525b50505050565b60008251611443818460208701611401565b9190910192915050565b602081526000825180602084015261146c816040850160208701611401565b601f01601f1916919091016040019291505056fea2646970667358221220e9f714981f8ff69a80c702b9b3389211b14aee760662166b9f927d0e7c1680c164736f6c634300080b003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc90000000000000000000000009d25137f269bc2a6f79b8365e6d4744d789607100000000000000000000000000000000000000000000000000000000000d8e068

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100e05760003560e01c8063736c0d5b11610087578063736c0d5b146101a35780638456cb59146101c65780638da5cb5b146101ce578063a99bc409146101d6578063c884ef83146101e9578063d54ad2a114610209578063f2fde38b14610212578063fc0c546a1461022557600080fd5b80630c56ae3b146100e5578063350b23691461010e5780633f4ba83a1461012357806348cd4cb11461012b5780634b40dc10146101605780635c975abb146101705780636a068b1314610188578063715018a61461019b575b600080fd5b6002546100f8906001600160a01b031681565b604051610105919061110f565b60405180910390f35b61012161011c3660046111f5565b61024c565b005b61012161043d565b6101527f0000000000000000000000000000000000000000000000000000000000d8e06881565b604051908152602001610105565b610152683635c9adc5dea0000081565b610178610476565b6040519015158152602001610105565b610121610196366004611267565b610486565b6101216108c6565b6101786101b13660046112c3565b60046020526000908152604090205460ff1681565b6101216108ff565b6100f8610936565b6101216101e43660046112c3565b610945565b6101526101f73660046112c3565b60036020526000908152604090205481565b61015260015481565b6101216102203660046112c3565b6109ca565b6100f87f0000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc981565b33610255610936565b6001600160a01b0316146102845760405162461bcd60e51b815260040161027b906112e0565b60405180910390fd5b60005b8251811015610362576001600460008584815181106102a8576102a8611315565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507fc648f6265408cc54c0dc26d24ba51dfc9f35ce1a63baa2228f65d93aaf11cc6783828151811061031a5761031a611315565b602002602001015160006040516103489291906001600160a01b039290921682521515602082015260400190565b60405180910390a18061035a81611341565b915050610287565b5060005b8151811015610438576004600083838151811061038557610385611315565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81549060ff02191690557fc648f6265408cc54c0dc26d24ba51dfc9f35ce1a63baa2228f65d93aaf11cc678282815181106103f0576103f0611315565b6020026020010151600160405161041e9291906001600160a01b039290921682521515602082015260400190565b60405180910390a18061043081611341565b915050610366565b505050565b33610446610936565b6001600160a01b03161461046c5760405162461bcd60e51b815260040161027b906112e0565b610474610a6a565b565b600054600160a01b900460ff1690565b61048e610476565b156104ab5760405162461bcd60e51b815260040161027b9061135c565b7f0000000000000000000000000000000000000000000000000000000000d8e0684310156105135760405162461bcd60e51b815260206004820152601560248201527410db185a5b4e881dd85a5d08199bdc881cdd185c9d605a1b604482015260640161027b565b3360009081526003602052604081205461052d9087611386565b9050600081116105785760405162461bcd60e51b815260206004820152601660248201527510db185a5b4e881b9bdd1a1a5b99c81d1bc81cd95b9960521b604482015260640161027b565b683635c9adc5dea000008611156105d15760405162461bcd60e51b815260206004820152601d60248201527f436c61696d3a20616d6f756e742065786365656473206d6178696d756d000000604482015260640161027b565b600033876040516020016105e692919061139d565b604051602081830303815290604052805190602001209050600061060c82888888610afc565b6001600160a01b03811660009081526004602052604090205490915060ff166106705760405162461bcd60e51b815260206004820152601660248201527521b630b4b69d1039b4b3b730ba3ab9329032b93937b960511b604482015260640161027b565b3360009081526003602052604090208890558315610837576002546001600160a01b03166106e05760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f74207374616b6520746f2061646472657373283029000000000000604482015260640161027b565b60025460405163095ea7b360e01b81526001600160a01b037f0000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc981169263095ea7b392610735929190911690879060040161139d565b6020604051808303816000875af1158015610754573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077891906113b6565b506002546040516317a790f160e11b81526001600160a01b0390911690632f4f21e2906107ab903390879060040161139d565b6020604051808303816000875af11580156107ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ee91906113b6565b6108325760405162461bcd60e51b815260206004820152601560248201527410db185a5b4e8819195c1bdcda5d0819985a5b1959605a1b604482015260640161027b565b61086b565b61086b6001600160a01b037f0000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc9163385610b24565b826001600082825461087d91906113d3565b90915550506040517f8c32c568416fcf97be35ce5b27844cfddcd63a67a1a602c3595ba5dac38f303a906108b4903390869061139d565b60405180910390a15050505050505050565b336108cf610936565b6001600160a01b0316146108f55760405162461bcd60e51b815260040161027b906112e0565b6104746000610b7a565b33610908610936565b6001600160a01b03161461092e5760405162461bcd60e51b815260040161027b906112e0565b610474610bca565b6000546001600160a01b031690565b3361094e610936565b6001600160a01b0316146109745760405162461bcd60e51b815260040161027b906112e0565b600280546001600160a01b0319166001600160a01b0383161790556040517f9f1bf3fb723e1bdcfb998d2ee0163f4d3a058bd630ba4eb89782796e76271bae906109bf90839061110f565b60405180910390a150565b336109d3610936565b6001600160a01b0316146109f95760405162461bcd60e51b815260040161027b906112e0565b6001600160a01b038116610a5e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161027b565b610a6781610b7a565b50565b610a72610476565b610ab55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161027b565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051610af2919061110f565b60405180910390a1565b6000806000610b0d87878787610c2a565b91509150610b1a81610d0d565b5095945050505050565b6104388363a9059cbb60e01b8484604051602401610b4392919061139d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610ec3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610bd2610476565b15610bef5760405162461bcd60e51b815260040161027b9061135c565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ae53390565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115610c575750600090506003610d04565b8460ff16601b14158015610c6f57508460ff16601c14155b15610c805750600090506004610d04565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610cd4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610cfd57600060019250925050610d04565b9150600090505b94509492505050565b6000816004811115610d2157610d216113eb565b1415610d2a5750565b6001816004811115610d3e57610d3e6113eb565b1415610d875760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b604482015260640161027b565b6002816004811115610d9b57610d9b6113eb565b1415610de95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161027b565b6003816004811115610dfd57610dfd6113eb565b1415610e565760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161027b565b6004816004811115610e6a57610e6a6113eb565b1415610a675760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161027b565b6000610f18826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f959092919063ffffffff16565b8051909150156104385780806020019051810190610f3691906113b6565b6104385760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161027b565b6060610fa48484600085610fae565b90505b9392505050565b60608247101561100f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161027b565b843b61105d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161027b565b600080866001600160a01b031685876040516110799190611431565b60006040518083038185875af1925050503d80600081146110b6576040519150601f19603f3d011682016040523d82523d6000602084013e6110bb565b606091505b50915091506110cb8282866110d6565b979650505050505050565b606083156110e5575081610fa7565b8251156110f55782518084602001fd5b8160405162461bcd60e51b815260040161027b919061144d565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610a6757600080fd5b803561115981611139565b919050565b600082601f83011261116f57600080fd5b8135602067ffffffffffffffff8083111561118c5761118c611123565b8260051b604051601f19603f830116810181811084821117156111b1576111b1611123565b6040529384528581018301938381019250878511156111cf57600080fd5b83870191505b848210156110cb576111e68261114e565b835291830191908301906111d5565b6000806040838503121561120857600080fd5b823567ffffffffffffffff8082111561122057600080fd5b61122c8683870161115e565b9350602085013591508082111561124257600080fd5b5061124f8582860161115e565b9150509250929050565b8015158114610a6757600080fd5b600080600080600060a0868803121561127f57600080fd5b85359450602086013560ff8116811461129757600080fd5b9350604086013592506060860135915060808601356112b581611259565b809150509295509295909350565b6000602082840312156112d557600080fd5b8135610fa781611139565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156113555761135561132b565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000828210156113985761139861132b565b500390565b6001600160a01b03929092168252602082015260400190565b6000602082840312156113c857600080fd5b8151610fa781611259565b600082198211156113e6576113e661132b565b500190565b634e487b7160e01b600052602160045260246000fd5b60005b8381101561141c578181015183820152602001611404565b8381111561142b576000848401525b50505050565b60008251611443818460208701611401565b9190910192915050565b602081526000825180602084015261146c816040850160208701611401565b601f01601f1916919091016040019291505056fea2646970667358221220e9f714981f8ff69a80c702b9b3389211b14aee760662166b9f927d0e7c1680c164736f6c634300080b0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc90000000000000000000000009d25137f269bc2a6f79b8365e6d4744d789607100000000000000000000000000000000000000000000000000000000000d8e068

-----Decoded View---------------
Arg [0] : pool_ (address): 0x0000000000000000000000000000000000000000
Arg [1] : token_ (address): 0x1E4EDE388cbc9F4b5c79681B7f94d36a11ABEBC9
Arg [2] : signer_ (address): 0x9D25137f269BC2A6f79b8365E6d4744D78960710
Arg [3] : startBlock_ (uint256): 14213224

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000001e4ede388cbc9f4b5c79681b7f94d36a11abebc9
Arg [2] : 0000000000000000000000009d25137f269bc2a6f79b8365e6d4744d78960710
Arg [3] : 0000000000000000000000000000000000000000000000000000000000d8e068


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.