ETH Price: $3,414.97 (+3.47%)

Contract

0x9e530042F6f85b56205b6A4e612899788d088bE0
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim210258902024-10-23 4:27:3531 days ago1729657655IN
0x9e530042...88d088bE0
0 ETH0.001353276.61067972
Claim209253622024-10-09 3:31:5945 days ago1728444719IN
0x9e530042...88d088bE0
0 ETH0.0023582711.52
Claim207868872024-09-19 19:59:4764 days ago1726775987IN
0x9e530042...88d088bE0
0 ETH0.0023581311.52
Claim203484952024-07-20 14:59:47126 days ago1721487587IN
0x9e530042...88d088bE0
0 ETH0.001080215.32144216
Claim203099372024-07-15 5:51:23131 days ago1721022683IN
0x9e530042...88d088bE0
0 ETH0.000507222.47733513
Claim202050742024-06-30 14:23:23146 days ago1719757403IN
0x9e530042...88d088bE0
0 ETH0.000972274.7489301
Claim201744152024-06-26 7:37:35150 days ago1719387455IN
0x9e530042...88d088bE0
0 ETH0.000476842.34877492
Claim201448802024-06-22 4:31:59154 days ago1719030719IN
0x9e530042...88d088bE0
0 ETH0.000604742.95430551
Claim201108762024-06-17 10:21:35159 days ago1718619695IN
0x9e530042...88d088bE0
0 ETH0.001052715.18597083
Claim201023482024-06-16 5:45:59160 days ago1718516759IN
0x9e530042...88d088bE0
0 ETH0.000592542.89452201
Claim200969332024-06-15 11:35:59161 days ago1718451359IN
0x9e530042...88d088bE0
0 ETH0.000766864.14205615
Claim200953042024-06-15 6:07:11161 days ago1718431631IN
0x9e530042...88d088bE0
0 ETH0.00092994.54172154
Claim200949322024-06-15 4:51:47161 days ago1718427107IN
0x9e530042...88d088bE0
0 ETH0.00125356.28580409
Claim200941062024-06-15 2:04:35161 days ago1718417075IN
0x9e530042...88d088bE0
0 ETH0.000727434.20157478
Claim200895712024-06-14 10:53:23162 days ago1718362403IN
0x9e530042...88d088bE0
0 ETH0.001351736.60313694
Claim200887052024-06-14 7:58:47162 days ago1718351927IN
0x9e530042...88d088bE0
0 ETH0.002034510.02194392
Claim200885952024-06-14 7:36:47162 days ago1718350607IN
0x9e530042...88d088bE0
0 ETH0.0031067515.17364091
Claim200884972024-06-14 7:16:59162 days ago1718349419IN
0x9e530042...88d088bE0
0 ETH0.001445417.06159775
Claim200883952024-06-14 6:56:35162 days ago1718348195IN
0x9e530042...88d088bE0
0 ETH0.001698268.29591931
Claim200746162024-06-12 8:40:47164 days ago1718181647IN
0x9e530042...88d088bE0
0 ETH0.002045149.99038409
Claim200731632024-06-12 3:48:23164 days ago1718164103IN
0x9e530042...88d088bE0
0 ETH0.001430887.04808508
Claim200730142024-06-12 3:18:23164 days ago1718162303IN
0x9e530042...88d088bE0
0 ETH0.001462667.14460142
Claim200698402024-06-11 16:40:35165 days ago1718124035IN
0x9e530042...88d088bE0
0 ETH0.005370926.45542735
Claim200672372024-06-11 7:56:47165 days ago1718092607IN
0x9e530042...88d088bE0
0 ETH0.001195285.83716474
Claim200649642024-06-11 0:19:47165 days ago1718065187IN
0x9e530042...88d088bE0
0 ETH0.002210569.34744898
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BenchmarkRewards

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 5 : BenchmarkRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

interface IERC20 {
    /**
     * @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
    );

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);

    function decimals() external pure returns (uint8);
}
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() {}

    function _msgSender() internal view returns (address) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

contract BenchmarkRewards is Ownable {
    address public signAddress;

    mapping(address=>uint256) public userNonce;

    //user => token
    mapping(address=>mapping(address=>uint256)) public userClaimed;

    event Claim(address sender,address[] rewardToken,uint256[] phase,uint256[] total,uint256 amount);
    event RecoverWrongTokens(address tokenAddress, uint256 tokenAmount);

    constructor(address _signAddress) {
        signAddress = _signAddress;
    }

    //claimType:0 airdrop; claimType:1  referral
    function claim(address[] memory rewardTokens,uint256[] memory totals,uint256[] memory amounts,uint256 claimType,bytes memory signature) public {
        require(rewardTokens.length == totals.length && rewardTokens.length == amounts.length,'Not same length');
        uint256 nonce = userNonce[msg.sender]++;
        bytes32 hash = ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(msg.sender,rewardTokens,totals,amounts,claimType,nonce,block.chainid,address(this))));
        require(ECDSA.recover(hash, signature) == signAddress, 'Invalid Signed Message');
        for(uint256 i = 0; i < rewardTokens.length;i++){
            userClaimed[msg.sender][rewardTokens[i]] += amounts[i];
            require(userClaimed[msg.sender][rewardTokens[i]] <= totals[i],'Already Harvest');
            IERC20(rewardTokens[i]).transfer(msg.sender,amounts[i]);
        }

        emit Claim(msg.sender,rewardTokens,totals,amounts,claimType);
    }

    function setSignAddress(address _signAddress) external onlyOwner {
        require(_signAddress != address(0), 'invalid address');
        signAddress = _signAddress;
    }

    function recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount) external onlyOwner {
        IERC20(_tokenAddress).transfer(address(msg.sender), _tokenAmount);
        emit RecoverWrongTokens(_tokenAddress, _tokenAmount);
    }

}

File 2 of 5 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 // Deprecated in v4.8
    }

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

    /**
     * @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) {
        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.
            /// @solidity memory-safe-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 {
            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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 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 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 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @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 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 3 of 5 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 4 of 5 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 5 of 5 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address[]","name":"rewardToken","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"phase","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"total","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","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":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"RecoverWrongTokens","type":"event"},{"inputs":[{"internalType":"address[]","name":"rewardTokens","type":"address[]"},{"internalType":"uint256[]","name":"totals","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"claimType","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverWrongTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signAddress","type":"address"}],"name":"setSignAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516110d83803806110d883398101604081905261002f91610095565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100c5565b6000602082840312156100a757600080fd5b81516001600160a01b03811681146100be57600080fd5b9392505050565b611004806100d46000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80633f138d4b116100665780633f138d4b14610136578063715018a6146101495780638da5cb5b14610151578063f2fde38b14610162578063f938cceb1461017557600080fd5b80630682bdbc1461009857806315137045146100c8578063289b2df1146100dd5780632e04b8e714610116575b600080fd5b6001546100ab906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100db6100d6366004610ab9565b610188565b005b6101086100eb366004610adb565b600360209081526000928352604080842090915290825290205481565b6040519081526020016100bf565b610108610124366004610ab9565b60026020526000908152604090205481565b6100db610144366004610b0e565b610225565b6100db610307565b6000546001600160a01b03166100ab565b6100db610170366004610ab9565b61037b565b6100db610183366004610c7e565b6103b1565b6000546001600160a01b031633146101bb5760405162461bcd60e51b81526004016101b290610d91565b60405180910390fd5b6001600160a01b0381166102035760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016101b2565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461024f5760405162461bcd60e51b81526004016101b290610d91565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af115801561029c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c09190610dc6565b50604080516001600160a01b0384168152602081018390527ffa2356015f98b1673965f81ad124451a4828e3cb92a2761ee4c0595bffc213d9910160405180910390a15050565b6000546001600160a01b031633146103315760405162461bcd60e51b81526004016101b290610d91565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146103a55760405162461bcd60e51b81526004016101b290610d91565b6103ae81610764565b50565b835185511480156103c3575082518551145b6104015760405162461bcd60e51b815260206004820152600f60248201526e09cdee840e6c2daca40d8cadccee8d608b1b60448201526064016101b2565b3360009081526002602052604081208054908261041d83610dfe565b91905055905060006104903388888888874630604051602001610447989796959493929190610e4a565b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b6001549091506001600160a01b03166104a98285610824565b6001600160a01b0316146104f85760405162461bcd60e51b8152602060048201526016602482015275496e76616c6964205369676e6564204d65737361676560501b60448201526064016101b2565b60005b875181101561071b5785818151811061051657610516610ed6565b602002602001015160036000336001600160a01b03166001600160a01b0316815260200190815260200160002060008a848151811061055757610557610ed6565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600082825461058e9190610eec565b925050819055508681815181106105a7576105a7610ed6565b602002602001015160036000336001600160a01b03166001600160a01b0316815260200190815260200160002060008a84815181106105e8576105e8610ed6565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205411156106515760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4812185c9d995cdd608a1b60448201526064016101b2565b87818151811061066357610663610ed6565b60200260200101516001600160a01b031663a9059cbb3388848151811061068c5761068c610ed6565b60200260200101516040518363ffffffff1660e01b81526004016106c59291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af11580156106e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107089190610dc6565b508061071381610dfe565b9150506104fb565b507f467ece9798b81c02b249310e98e69e045a8750cac466c3380a510e09197c911f3388888888604051610753959493929190610f2c565b60405180910390a150505050505050565b6001600160a01b0381166107c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101b2565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000610833858561084a565b915091506108408161088f565b5090505b92915050565b60008082516041036108805760208301516040840151606085015160001a610874878285856109d9565b94509450505050610888565b506000905060025b9250929050565b60008160048111156108a3576108a3610fb8565b036108ab5750565b60018160048111156108bf576108bf610fb8565b0361090c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016101b2565b600281600481111561092057610920610fb8565b0361096d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016101b2565b600381600481111561098157610981610fb8565b036103ae5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016101b2565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610a105750600090506003610a94565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610a64573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610a8d57600060019250925050610a94565b9150600090505b94509492505050565b80356001600160a01b0381168114610ab457600080fd5b919050565b600060208284031215610acb57600080fd5b610ad482610a9d565b9392505050565b60008060408385031215610aee57600080fd5b610af783610a9d565b9150610b0560208401610a9d565b90509250929050565b60008060408385031215610b2157600080fd5b610b2a83610a9d565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b7757610b77610b38565b604052919050565b600067ffffffffffffffff821115610b9957610b99610b38565b5060051b60200190565b600082601f830112610bb457600080fd5b81356020610bc9610bc483610b7f565b610b4e565b82815260059290921b84018101918181019086841115610be857600080fd5b8286015b84811015610c035780358352918301918301610bec565b509695505050505050565b600082601f830112610c1f57600080fd5b813567ffffffffffffffff811115610c3957610c39610b38565b610c4c601f8201601f1916602001610b4e565b818152846020838601011115610c6157600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215610c9657600080fd5b853567ffffffffffffffff80821115610cae57600080fd5b818801915088601f830112610cc257600080fd5b81356020610cd2610bc483610b7f565b82815260059290921b8401810191818101908c841115610cf157600080fd5b948201945b83861015610d1657610d0786610a9d565b82529482019490820190610cf6565b99505089013592505080821115610d2c57600080fd5b610d3889838a01610ba3565b95506040880135915080821115610d4e57600080fd5b610d5a89838a01610ba3565b9450606088013593506080880135915080821115610d7757600080fd5b50610d8488828901610c0e565b9150509295509295909350565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610dd857600080fd5b81518015158114610ad457600080fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610e1057610e10610de8565b5060010190565b60008151602080840160005b83811015610e3f57815187529582019590820190600101610e23565b509495945050505050565b60006bffffffffffffffffffffffff19808b60601b168352601483018a516020808d0160005b83811015610e955781516001600160a01b031685529382019390820190600101610e70565b5050610eaa610ea4848e610e17565b8c610e17565b998a528901979097525060408701949094525050606090811b9091169083015250607401949350505050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561084457610844610de8565b805180835260209283019260009190808401838315610e3f57815187529582019590820190600101610e23565b6001600160a01b03868116825260a0602080840182905287519184018290526000928882019290919060c0860190855b81811015610f7a578551851683529483019491830191600101610f5c565b50508581036040870152610f8e818a610eff565b93505050508281036060840152610fa58186610eff565b9150508260808301529695505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220d4be1d613d0720c5d7b11ca83b9942343bf560dbd6b17bfb306261e8b49f052e64736f6c634300081400330000000000000000000000003aa1ec29a026d3bf050ce8fc64fbca678d6fd16c

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c80633f138d4b116100665780633f138d4b14610136578063715018a6146101495780638da5cb5b14610151578063f2fde38b14610162578063f938cceb1461017557600080fd5b80630682bdbc1461009857806315137045146100c8578063289b2df1146100dd5780632e04b8e714610116575b600080fd5b6001546100ab906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100db6100d6366004610ab9565b610188565b005b6101086100eb366004610adb565b600360209081526000928352604080842090915290825290205481565b6040519081526020016100bf565b610108610124366004610ab9565b60026020526000908152604090205481565b6100db610144366004610b0e565b610225565b6100db610307565b6000546001600160a01b03166100ab565b6100db610170366004610ab9565b61037b565b6100db610183366004610c7e565b6103b1565b6000546001600160a01b031633146101bb5760405162461bcd60e51b81526004016101b290610d91565b60405180910390fd5b6001600160a01b0381166102035760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016101b2565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461024f5760405162461bcd60e51b81526004016101b290610d91565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af115801561029c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c09190610dc6565b50604080516001600160a01b0384168152602081018390527ffa2356015f98b1673965f81ad124451a4828e3cb92a2761ee4c0595bffc213d9910160405180910390a15050565b6000546001600160a01b031633146103315760405162461bcd60e51b81526004016101b290610d91565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146103a55760405162461bcd60e51b81526004016101b290610d91565b6103ae81610764565b50565b835185511480156103c3575082518551145b6104015760405162461bcd60e51b815260206004820152600f60248201526e09cdee840e6c2daca40d8cadccee8d608b1b60448201526064016101b2565b3360009081526002602052604081208054908261041d83610dfe565b91905055905060006104903388888888874630604051602001610447989796959493929190610e4a565b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b6001549091506001600160a01b03166104a98285610824565b6001600160a01b0316146104f85760405162461bcd60e51b8152602060048201526016602482015275496e76616c6964205369676e6564204d65737361676560501b60448201526064016101b2565b60005b875181101561071b5785818151811061051657610516610ed6565b602002602001015160036000336001600160a01b03166001600160a01b0316815260200190815260200160002060008a848151811061055757610557610ed6565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600082825461058e9190610eec565b925050819055508681815181106105a7576105a7610ed6565b602002602001015160036000336001600160a01b03166001600160a01b0316815260200190815260200160002060008a84815181106105e8576105e8610ed6565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205411156106515760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4812185c9d995cdd608a1b60448201526064016101b2565b87818151811061066357610663610ed6565b60200260200101516001600160a01b031663a9059cbb3388848151811061068c5761068c610ed6565b60200260200101516040518363ffffffff1660e01b81526004016106c59291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af11580156106e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107089190610dc6565b508061071381610dfe565b9150506104fb565b507f467ece9798b81c02b249310e98e69e045a8750cac466c3380a510e09197c911f3388888888604051610753959493929190610f2c565b60405180910390a150505050505050565b6001600160a01b0381166107c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101b2565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000610833858561084a565b915091506108408161088f565b5090505b92915050565b60008082516041036108805760208301516040840151606085015160001a610874878285856109d9565b94509450505050610888565b506000905060025b9250929050565b60008160048111156108a3576108a3610fb8565b036108ab5750565b60018160048111156108bf576108bf610fb8565b0361090c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016101b2565b600281600481111561092057610920610fb8565b0361096d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016101b2565b600381600481111561098157610981610fb8565b036103ae5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016101b2565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610a105750600090506003610a94565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610a64573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610a8d57600060019250925050610a94565b9150600090505b94509492505050565b80356001600160a01b0381168114610ab457600080fd5b919050565b600060208284031215610acb57600080fd5b610ad482610a9d565b9392505050565b60008060408385031215610aee57600080fd5b610af783610a9d565b9150610b0560208401610a9d565b90509250929050565b60008060408385031215610b2157600080fd5b610b2a83610a9d565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b7757610b77610b38565b604052919050565b600067ffffffffffffffff821115610b9957610b99610b38565b5060051b60200190565b600082601f830112610bb457600080fd5b81356020610bc9610bc483610b7f565b610b4e565b82815260059290921b84018101918181019086841115610be857600080fd5b8286015b84811015610c035780358352918301918301610bec565b509695505050505050565b600082601f830112610c1f57600080fd5b813567ffffffffffffffff811115610c3957610c39610b38565b610c4c601f8201601f1916602001610b4e565b818152846020838601011115610c6157600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215610c9657600080fd5b853567ffffffffffffffff80821115610cae57600080fd5b818801915088601f830112610cc257600080fd5b81356020610cd2610bc483610b7f565b82815260059290921b8401810191818101908c841115610cf157600080fd5b948201945b83861015610d1657610d0786610a9d565b82529482019490820190610cf6565b99505089013592505080821115610d2c57600080fd5b610d3889838a01610ba3565b95506040880135915080821115610d4e57600080fd5b610d5a89838a01610ba3565b9450606088013593506080880135915080821115610d7757600080fd5b50610d8488828901610c0e565b9150509295509295909350565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610dd857600080fd5b81518015158114610ad457600080fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610e1057610e10610de8565b5060010190565b60008151602080840160005b83811015610e3f57815187529582019590820190600101610e23565b509495945050505050565b60006bffffffffffffffffffffffff19808b60601b168352601483018a516020808d0160005b83811015610e955781516001600160a01b031685529382019390820190600101610e70565b5050610eaa610ea4848e610e17565b8c610e17565b998a528901979097525060408701949094525050606090811b9091169083015250607401949350505050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561084457610844610de8565b805180835260209283019260009190808401838315610e3f57815187529582019590820190600101610e23565b6001600160a01b03868116825260a0602080840182905287519184018290526000928882019290919060c0860190855b81811015610f7a578551851683529483019491830191600101610f5c565b50508581036040870152610f8e818a610eff565b93505050508281036060840152610fa58186610eff565b9150508260808301529695505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220d4be1d613d0720c5d7b11ca83b9942343bf560dbd6b17bfb306261e8b49f052e64736f6c63430008140033

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

0000000000000000000000003aa1ec29a026d3bf050ce8fc64fbca678d6fd16c

-----Decoded View---------------
Arg [0] : _signAddress (address): 0x3aA1EC29a026d3bF050cE8Fc64fBca678d6FD16C

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003aa1ec29a026d3bf050ce8fc64fbca678d6fd16c


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.