ETH Price: $1,804.25 (+10.62%)

Contract

0xbd82e1a3f908AFb789f1F0b8f88b1FD0C2787A3D

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Check In3246571212025-04-09 19:19:0413 days ago1744226344IN
0xbd82e1a3...0C2787A3D
0 ETH0.000014080.022214
Check In3239813002025-04-07 20:15:1915 days ago1744056919IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000620.01
Check In3236227562025-04-06 19:18:5416 days ago1743967134IN
0xbd82e1a3...0C2787A3D
0 ETH0.000014940.263912
Check In3232956362025-04-05 20:27:0217 days ago1743884822IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000510.01
Check In3231037592025-04-05 7:05:0318 days ago1743836703IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000510.01
Check In3228312472025-04-04 12:03:1818 days ago1743768198IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000620.011438
Check In3227124292025-04-04 3:46:1319 days ago1743738373IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000520.01
Check In3224494032025-04-03 9:24:2520 days ago1743672265IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000640.01
Check In3222403002025-04-02 18:51:1820 days ago1743619878IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000570.010832
Check In3220866552025-04-02 8:11:0421 days ago1743581464IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000540.01
Check In3220637252025-04-02 6:35:3221 days ago1743575732IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000530.01
Check In3220150682025-04-02 3:12:4121 days ago1743563561IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000520.01
Check In3220033162025-04-02 2:23:4421 days ago1743560624IN
0xbd82e1a3...0C2787A3D
0 ETH0.000001880.038253
Check In3219975872025-04-02 1:59:5521 days ago1743559195IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000540.01
Check In3218901832025-04-01 18:31:5321 days ago1743532313IN
0xbd82e1a3...0C2787A3D
0 ETH0.000002490.01
Check In3218678962025-04-01 16:59:0521 days ago1743526745IN
0xbd82e1a3...0C2787A3D
0 ETH0.000008040.01
Check In3218090212025-04-01 12:54:1921 days ago1743512059IN
0xbd82e1a3...0C2787A3D
0 ETH0.000001090.01
Check In3217764762025-04-01 10:38:4522 days ago1743503925IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000560.01
Check In3217755352025-04-01 10:34:5022 days ago1743503690IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000720.012341
Check In3217647162025-04-01 9:49:3522 days ago1743500975IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000580.01
Check In3217426392025-04-01 8:17:3522 days ago1743495455IN
0xbd82e1a3...0C2787A3D
0 ETH0.000002630.054451
Check In3217124872025-04-01 6:11:5822 days ago1743487918IN
0xbd82e1a3...0C2787A3D
0 ETH0.00000050.01
Check In3216811302025-04-01 4:01:1022 days ago1743480070IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000530.01
Check In3216539082025-04-01 2:07:4322 days ago1743473263IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000530.01
Check In3215730542025-03-31 20:30:4022 days ago1743453040IN
0xbd82e1a3...0C2787A3D
0 ETH0.000000570.01
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
3193571972025-03-25 10:26:3229 days ago1742898392
0xbd82e1a3...0C2787A3D
0.75600754 ETH
3193561012025-03-25 10:21:5829 days ago1742898118
0xbd82e1a3...0C2787A3D
0.00000042 ETH
3193559652025-03-25 10:21:2429 days ago1742898084
0xbd82e1a3...0C2787A3D
0.00000042 ETH
3193554002025-03-25 10:19:0329 days ago1742897943
0xbd82e1a3...0C2787A3D
0.00000041 ETH
3193522112025-03-25 10:05:4529 days ago1742897145
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193518652025-03-25 10:04:1829 days ago1742897058
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193515402025-03-25 10:02:5929 days ago1742896979
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193515372025-03-25 10:02:5829 days ago1742896978
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193515062025-03-25 10:02:5029 days ago1742896970
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193515012025-03-25 10:02:4929 days ago1742896969
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193514782025-03-25 10:02:4329 days ago1742896963
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193511182025-03-25 10:01:1329 days ago1742896873
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193509872025-03-25 10:00:4029 days ago1742896840
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193508752025-03-25 10:00:1229 days ago1742896812
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193507682025-03-25 9:59:4529 days ago1742896785
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193507632025-03-25 9:59:4429 days ago1742896784
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193507572025-03-25 9:59:4329 days ago1742896783
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193507002025-03-25 9:59:2829 days ago1742896768
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193506802025-03-25 9:59:2329 days ago1742896763
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193504812025-03-25 9:58:3329 days ago1742896713
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193501652025-03-25 9:57:1429 days ago1742896634
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193501532025-03-25 9:57:1129 days ago1742896631
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193501512025-03-25 9:57:1129 days ago1742896631
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193500692025-03-25 9:56:5229 days ago1742896612
0xbd82e1a3...0C2787A3D
0.00000036 ETH
3193500262025-03-25 9:56:4129 days ago1742896601
0xbd82e1a3...0C2787A3D
0.00000036 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SpotZeroCheckIn

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 9 : SpotZeroCheckIn.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

library TransferHelper {
    function safeTransferNative(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, "TransferHelper: NATIVE_TRANSFER_FAILED");
    }
}

contract SpotZeroCheckIn is Ownable, Pausable, ReentrancyGuard {
    uint256 constant GWEI = 1e9; // 1 Gwei
    uint256 public gasPrice = 100; // 1G * 100%
    uint256 constant secondsInDay = 86400;

    mapping(address => bool) private isOperator;
    address[] private operators;
    mapping(address => bool) public blackList;

    mapping(address => uint256) public checkInMap;

    event LogCheckIn(
        bytes32 indexed uuid,
        address indexed caller,
        uint256 refund,
        uint256 timestamp
    );

    constructor(address _owner) {
        require(_owner != address(0), "zero address");
        transferOwnership(_owner);
    }

    receive() external payable {}

    fallback() external payable {}

    function _addOperator(address _op) internal {
        require(_op != address(0), "TartaDiscountNFT: Operator is address(0)");
        require(!isOperator[_op], "TartaDiscountNFT: Operator already exists");
        isOperator[_op] = true;
        operators.push(_op);
    }

    function addOperator(address _op) external onlyOwner {
        _addOperator(_op);
    }

    function getAllOperators() external view returns (address[] memory) {
        return operators;
    }

    function addBlackList(address _addr, bool add) external {
        require(
            isOperator[_msgSender()] || _msgSender() == owner(),
            "not owner or op"
        );
        blackList[_addr] = add;
    }

    function chainid() external view returns (uint256) {
        return block.chainid;
    }

    function checkIn(
        bytes32 _uuid,
        uint256 _timestamp,
        uint256 _gasUsed,
        bytes memory _signature
    ) public whenNotPaused nonReentrant {
        require(checkInMap[msg.sender] <= block.timestamp, "already check in");
        require(!blackList[msg.sender], "blacklisted address is not allowed");
        bytes32 signingHash = getMessageHash(
            msg.sender,
            _uuid,
            _timestamp,
            _gasUsed
        );
        _verify(signingHash, _timestamp, _signature);
        checkInMap[msg.sender] = getTomorrowMidnight();

        uint256 _reward = ((_gasUsed * gasPrice) / 100) * GWEI;
        if (_reward > 0 && address(this).balance >= _reward) {
            TransferHelper.safeTransferNative(msg.sender, _reward);
        } else {
            _reward = 0;
        }
        emit LogCheckIn(_uuid, msg.sender, _reward, block.timestamp);
    }

    function getMessageHash(
        address _to,
        bytes32 _uuid,
        uint256 _timestamp,
        uint256 _reward
    ) public view returns (bytes32) {
        return
            keccak256(
                abi.encode(block.chainid, _to, _uuid, _timestamp, _reward)
            );
    }

    function _verify(
        bytes32 _signingHash,
        uint256 _timestamp,
        bytes memory _signature
    ) private view {
        require(_timestamp > block.timestamp, "Signature expired");
        address signer = ECDSA.recover(_signingHash, _signature);
        require(isOperator[signer] || signer == owner(), "Signature error");
    }

    function setGasPrice(uint256 _gasPrice) external onlyOwner {
        gasPrice = _gasPrice;
    }

    function withdraw(address receiver) external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "balance must be positive");
        TransferHelper.safeTransferNative(receiver, balance);
    }

    function getTomorrowMidnight() public view returns (uint256) {
        uint256 currentTimestamp = block.timestamp;
        uint256 startOfToday = currentTimestamp -
            (currentTimestamp % secondsInDay);
        return startOfToday + secondsInDay;
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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);
    }
}

File 3 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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());
    }
}

File 4 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 5 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 6 of 9 : 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 7 of 9 : 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 8 of 9 : 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 9 of 9 : 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

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"uuid","type":"bytes32"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"refund","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"LogCheckIn","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":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"add","type":"bool"}],"name":"addBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_op","type":"address"}],"name":"addOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blackList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_uuid","type":"bytes32"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"uint256","name":"_gasUsed","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"checkIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"checkInMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gasPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bytes32","name":"_uuid","type":"bytes32"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTomorrowMidnight","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gasPrice","type":"uint256"}],"name":"setGasPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052606460025534801561001557600080fd5b506040516112f53803806112f5833981016040819052610034916101cc565b61003d336100a7565b6000805460ff60a01b19169055600180556001600160a01b0381166100985760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b60448201526064015b60405180910390fd5b6100a1816100f7565b506101fc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6100ff610170565b6001600160a01b0381166101645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161008f565b61016d816100a7565b50565b6000546001600160a01b031633146101ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161008f565b565b6000602082840312156101de57600080fd5b81516001600160a01b03811681146101f557600080fd5b9392505050565b6110ea8061020b6000396000f3fe6080604052600436106100ea5760003560e01c8063bf1fe42011610084578063d911c63211610056578063d911c63214610290578063e4fb5fc1146102b2578063f2fde38b146102d2578063fe173b97146102f257005b8063bf1fe42014610228578063c47b7b6d14610248578063cd84980e14610268578063d29af8c51461027b57005b8063715018a6116100bd578063715018a61461019e5780638da5cb5b146101b35780639870d7fe146101db5780639da6161f146101fb57005b8063343129e7146100ec5780634838d1651461011f57806351cff8d91461015f5780635c975abb1461017f575b005b3480156100f857600080fd5b5061010c610107366004610df6565b610308565b6040519081526020015b60405180910390f35b34801561012b57600080fd5b5061014f61013a366004610e2f565b60056020526000908152604090205460ff1681565b6040519015158152602001610116565b34801561016b57600080fd5b506100ea61017a366004610e2f565b610358565b34801561018b57600080fd5b50600054600160a01b900460ff1661014f565b3480156101aa57600080fd5b506100ea6103c1565b3480156101bf57600080fd5b506000546040516001600160a01b039091168152602001610116565b3480156101e757600080fd5b506100ea6101f6366004610e2f565b6103d5565b34801561020757600080fd5b5061010c610216366004610e2f565b60066020526000908152604090205481565b34801561023457600080fd5b506100ea610243366004610e51565b6103e9565b34801561025457600080fd5b506100ea610263366004610e80565b6103f6565b34801561027457600080fd5b504661010c565b34801561028757600080fd5b5061010c61059a565b34801561029c57600080fd5b506102a56105cb565b6040516101169190610f56565b3480156102be57600080fd5b506100ea6102cd366004610fa2565b61062d565b3480156102de57600080fd5b506100ea6102ed366004610e2f565b6106be565b3480156102fe57600080fd5b5061010c60025481565b60408051466020808301919091526001600160a01b0396909616818301526060810194909452608084019290925260a0808401919091528151808403909101815260c09092019052805191012090565b610360610734565b47806103b35760405162461bcd60e51b815260206004820152601860248201527f62616c616e6365206d75737420626520706f736974697665000000000000000060448201526064015b60405180910390fd5b6103bd828261078e565b5050565b6103c9610734565b6103d3600061085f565b565b6103dd610734565b6103e6816108af565b50565b6103f1610734565b600255565b6103fe6109f7565b610406610a44565b336000908152600660205260409020544210156104585760405162461bcd60e51b815260206004820152601060248201526f30b63932b0b23c9031b432b1b59034b760811b60448201526064016103aa565b3360009081526005602052604090205460ff16156104c35760405162461bcd60e51b815260206004820152602260248201527f626c61636b6c69737465642061646472657373206973206e6f7420616c6c6f77604482015261195960f21b60648201526084016103aa565b60006104d133868686610308565b90506104de818584610a9d565b6104e661059a565b33600090815260066020526040812091909155600254633b9aca009060649061050f9087610ff4565b6105199190611021565b6105239190610ff4565b90506000811180156105355750804710155b1561054957610544338261078e565b61054d565b5060005b60408051828152426020820152339188917f1e956f63dc5d9b31605b0051c91553ed484b46189f29f8a3f61482ad5394f688910160405180910390a3505061059460018055565b50505050565b600042816105ab6201518083611035565b6105b59083611049565b90506105c4620151808261105c565b9250505090565b6060600480548060200260200160405190810160405280929190818152602001828054801561062357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610605575b5050505050905090565b3360009081526003602052604090205460ff168061065557506000546001600160a01b031633145b6106935760405162461bcd60e51b815260206004820152600f60248201526e06e6f74206f776e6572206f72206f7608c1b60448201526064016103aa565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6106c6610734565b6001600160a01b03811661072b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103aa565b6103e68161085f565b6000546001600160a01b031633146103d35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103aa565b604080516000808252602082019092526001600160a01b0384169083906040516107b8919061106f565b60006040518083038185875af1925050503d80600081146107f5576040519150601f19603f3d011682016040523d82523d6000602084013e6107fa565b606091505b505090508061085a5760405162461bcd60e51b815260206004820152602660248201527f5472616e7366657248656c7065723a204e41544956455f5452414e534645525f60448201526511905253115160d21b60648201526084016103aa565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166109165760405162461bcd60e51b815260206004820152602860248201527f5461727461446973636f756e744e46543a204f70657261746f72206973206164604482015267647265737328302960c01b60648201526084016103aa565b6001600160a01b03811660009081526003602052604090205460ff16156109915760405162461bcd60e51b815260206004820152602960248201527f5461727461446973636f756e744e46543a204f70657261746f7220616c72656160448201526864792065786973747360b81b60648201526084016103aa565b6001600160a01b03166000818152600360205260408120805460ff191660019081179091556004805491820181559091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319169091179055565b600054600160a01b900460ff16156103d35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103aa565b600260015403610a965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103aa565b6002600155565b428211610ae05760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b60448201526064016103aa565b6000610aec8483610b61565b6001600160a01b03811660009081526003602052604090205490915060ff1680610b2357506000546001600160a01b038281169116145b6105945760405162461bcd60e51b815260206004820152600f60248201526e29b4b3b730ba3ab9329032b93937b960891b60448201526064016103aa565b6000806000610b708585610b87565b91509150610b7d81610bcc565b5090505b92915050565b6000808251604103610bbd5760208301516040840151606085015160001a610bb187828585610d16565b94509450505050610bc5565b506000905060025b9250929050565b6000816004811115610be057610be061109e565b03610be85750565b6001816004811115610bfc57610bfc61109e565b03610c495760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103aa565b6002816004811115610c5d57610c5d61109e565b03610caa5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103aa565b6003816004811115610cbe57610cbe61109e565b036103e65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103aa565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610d4d5750600090506003610dd1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610da1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610dca57600060019250925050610dd1565b9150600090505b94509492505050565b80356001600160a01b0381168114610df157600080fd5b919050565b60008060008060808587031215610e0c57600080fd5b610e1585610dda565b966020860135965060408601359560600135945092505050565b600060208284031215610e4157600080fd5b610e4a82610dda565b9392505050565b600060208284031215610e6357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215610e9657600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff811115610ec257600080fd5b8501601f81018713610ed357600080fd5b803567ffffffffffffffff811115610eed57610eed610e6a565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f1c57610f1c610e6a565b604052818152828201602001891015610f3457600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b602080825282518282018190526000918401906040840190835b81811015610f975783516001600160a01b0316835260209384019390920191600101610f70565b509095945050505050565b60008060408385031215610fb557600080fd5b610fbe83610dda565b915060208301358015158114610fd357600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b8157610b81610fde565b634e487b7160e01b600052601260045260246000fd5b6000826110305761103061100b565b500490565b6000826110445761104461100b565b500690565b81810381811115610b8157610b81610fde565b80820180821115610b8157610b81610fde565b6000825160005b818110156110905760208186018101518583015201611076565b506000920191825250919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220852171faa9703653e9bdd133185fb17f74f2cc703edc7529330b0d2b6768af4264736f6c634300081b00330000000000000000000000008f3721e5a4984751cf95dd0990b97202b6287fb4

Deployed Bytecode

0x6080604052600436106100ea5760003560e01c8063bf1fe42011610084578063d911c63211610056578063d911c63214610290578063e4fb5fc1146102b2578063f2fde38b146102d2578063fe173b97146102f257005b8063bf1fe42014610228578063c47b7b6d14610248578063cd84980e14610268578063d29af8c51461027b57005b8063715018a6116100bd578063715018a61461019e5780638da5cb5b146101b35780639870d7fe146101db5780639da6161f146101fb57005b8063343129e7146100ec5780634838d1651461011f57806351cff8d91461015f5780635c975abb1461017f575b005b3480156100f857600080fd5b5061010c610107366004610df6565b610308565b6040519081526020015b60405180910390f35b34801561012b57600080fd5b5061014f61013a366004610e2f565b60056020526000908152604090205460ff1681565b6040519015158152602001610116565b34801561016b57600080fd5b506100ea61017a366004610e2f565b610358565b34801561018b57600080fd5b50600054600160a01b900460ff1661014f565b3480156101aa57600080fd5b506100ea6103c1565b3480156101bf57600080fd5b506000546040516001600160a01b039091168152602001610116565b3480156101e757600080fd5b506100ea6101f6366004610e2f565b6103d5565b34801561020757600080fd5b5061010c610216366004610e2f565b60066020526000908152604090205481565b34801561023457600080fd5b506100ea610243366004610e51565b6103e9565b34801561025457600080fd5b506100ea610263366004610e80565b6103f6565b34801561027457600080fd5b504661010c565b34801561028757600080fd5b5061010c61059a565b34801561029c57600080fd5b506102a56105cb565b6040516101169190610f56565b3480156102be57600080fd5b506100ea6102cd366004610fa2565b61062d565b3480156102de57600080fd5b506100ea6102ed366004610e2f565b6106be565b3480156102fe57600080fd5b5061010c60025481565b60408051466020808301919091526001600160a01b0396909616818301526060810194909452608084019290925260a0808401919091528151808403909101815260c09092019052805191012090565b610360610734565b47806103b35760405162461bcd60e51b815260206004820152601860248201527f62616c616e6365206d75737420626520706f736974697665000000000000000060448201526064015b60405180910390fd5b6103bd828261078e565b5050565b6103c9610734565b6103d3600061085f565b565b6103dd610734565b6103e6816108af565b50565b6103f1610734565b600255565b6103fe6109f7565b610406610a44565b336000908152600660205260409020544210156104585760405162461bcd60e51b815260206004820152601060248201526f30b63932b0b23c9031b432b1b59034b760811b60448201526064016103aa565b3360009081526005602052604090205460ff16156104c35760405162461bcd60e51b815260206004820152602260248201527f626c61636b6c69737465642061646472657373206973206e6f7420616c6c6f77604482015261195960f21b60648201526084016103aa565b60006104d133868686610308565b90506104de818584610a9d565b6104e661059a565b33600090815260066020526040812091909155600254633b9aca009060649061050f9087610ff4565b6105199190611021565b6105239190610ff4565b90506000811180156105355750804710155b1561054957610544338261078e565b61054d565b5060005b60408051828152426020820152339188917f1e956f63dc5d9b31605b0051c91553ed484b46189f29f8a3f61482ad5394f688910160405180910390a3505061059460018055565b50505050565b600042816105ab6201518083611035565b6105b59083611049565b90506105c4620151808261105c565b9250505090565b6060600480548060200260200160405190810160405280929190818152602001828054801561062357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610605575b5050505050905090565b3360009081526003602052604090205460ff168061065557506000546001600160a01b031633145b6106935760405162461bcd60e51b815260206004820152600f60248201526e06e6f74206f776e6572206f72206f7608c1b60448201526064016103aa565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6106c6610734565b6001600160a01b03811661072b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103aa565b6103e68161085f565b6000546001600160a01b031633146103d35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103aa565b604080516000808252602082019092526001600160a01b0384169083906040516107b8919061106f565b60006040518083038185875af1925050503d80600081146107f5576040519150601f19603f3d011682016040523d82523d6000602084013e6107fa565b606091505b505090508061085a5760405162461bcd60e51b815260206004820152602660248201527f5472616e7366657248656c7065723a204e41544956455f5452414e534645525f60448201526511905253115160d21b60648201526084016103aa565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166109165760405162461bcd60e51b815260206004820152602860248201527f5461727461446973636f756e744e46543a204f70657261746f72206973206164604482015267647265737328302960c01b60648201526084016103aa565b6001600160a01b03811660009081526003602052604090205460ff16156109915760405162461bcd60e51b815260206004820152602960248201527f5461727461446973636f756e744e46543a204f70657261746f7220616c72656160448201526864792065786973747360b81b60648201526084016103aa565b6001600160a01b03166000818152600360205260408120805460ff191660019081179091556004805491820181559091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319169091179055565b600054600160a01b900460ff16156103d35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103aa565b600260015403610a965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103aa565b6002600155565b428211610ae05760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b60448201526064016103aa565b6000610aec8483610b61565b6001600160a01b03811660009081526003602052604090205490915060ff1680610b2357506000546001600160a01b038281169116145b6105945760405162461bcd60e51b815260206004820152600f60248201526e29b4b3b730ba3ab9329032b93937b960891b60448201526064016103aa565b6000806000610b708585610b87565b91509150610b7d81610bcc565b5090505b92915050565b6000808251604103610bbd5760208301516040840151606085015160001a610bb187828585610d16565b94509450505050610bc5565b506000905060025b9250929050565b6000816004811115610be057610be061109e565b03610be85750565b6001816004811115610bfc57610bfc61109e565b03610c495760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103aa565b6002816004811115610c5d57610c5d61109e565b03610caa5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103aa565b6003816004811115610cbe57610cbe61109e565b036103e65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103aa565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610d4d5750600090506003610dd1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610da1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610dca57600060019250925050610dd1565b9150600090505b94509492505050565b80356001600160a01b0381168114610df157600080fd5b919050565b60008060008060808587031215610e0c57600080fd5b610e1585610dda565b966020860135965060408601359560600135945092505050565b600060208284031215610e4157600080fd5b610e4a82610dda565b9392505050565b600060208284031215610e6357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215610e9657600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff811115610ec257600080fd5b8501601f81018713610ed357600080fd5b803567ffffffffffffffff811115610eed57610eed610e6a565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f1c57610f1c610e6a565b604052818152828201602001891015610f3457600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b602080825282518282018190526000918401906040840190835b81811015610f975783516001600160a01b0316835260209384019390920191600101610f70565b509095945050505050565b60008060408385031215610fb557600080fd5b610fbe83610dda565b915060208301358015158114610fd357600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b8157610b81610fde565b634e487b7160e01b600052601260045260246000fd5b6000826110305761103061100b565b500490565b6000826110445761104461100b565b500690565b81810381811115610b8157610b81610fde565b80820180821115610b8157610b81610fde565b6000825160005b818110156110905760208186018101518583015201611076565b506000920191825250919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220852171faa9703653e9bdd133185fb17f74f2cc703edc7529330b0d2b6768af4264736f6c634300081b0033

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

0000000000000000000000008f3721e5a4984751cf95dd0990b97202b6287fb4

-----Decoded View---------------
Arg [0] : _owner (address): 0x8f3721E5A4984751cf95DD0990B97202b6287Fb4

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008f3721e5a4984751cf95dd0990b97202b6287fb4


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
[ Download: CSV Export  ]
[ 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.