ETH Price: $3,124.54 (-2.75%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Register Ple...199798612024-05-30 3:03:59244 days ago1717038239IN
0x85941600...49656c6bB
0.2 ETH0.000481416.47352106
Set Register Ple...199798572024-05-30 3:03:11244 days ago1717038191IN
0x85941600...49656c6bB
0.2 ETH0.000548337.37340129
Set Register Ple...199798542024-05-30 3:02:35244 days ago1717038155IN
0x85941600...49656c6bB
0.2 ETH0.000572757.70169909
Set Register Ple...199798422024-05-30 3:00:11244 days ago1717038011IN
0x85941600...49656c6bB
0.2 ETH0.000557297.49386305
Set Register Ple...199798322024-05-30 2:58:11244 days ago1717037891IN
0x85941600...49656c6bB
0.2 ETH0.000527677.09666531
Set Register Ple...199798312024-05-30 2:57:59244 days ago1717037879IN
0x85941600...49656c6bB
0.2 ETH0.00053447.18606371
Set Register Ple...199798152024-05-30 2:54:47244 days ago1717037687IN
0x85941600...49656c6bB
0.2 ETH0.000608048.17623649
Set Register Ple...199798052024-05-30 2:52:47244 days ago1717037567IN
0x85941600...49656c6bB
0.2 ETH0.000652528.77582024
Set Register Ple...199797232024-05-30 2:36:11244 days ago1717036571IN
0x85941600...49656c6bB
0.2 ETH0.000609788.19970229
Set Register Ple...199793832024-05-30 1:27:47244 days ago1717032467IN
0x85941600...49656c6bB
0.2 ETH0.000680319.14957181
Set Register Ple...199786782024-05-29 23:05:47244 days ago1717023947IN
0x85941600...49656c6bB
0.2 ETH0.000597.93497295
Set Register Ple...199781852024-05-29 21:26:47244 days ago1717018007IN
0x85941600...49656c6bB
0.2 ETH0.0008404611.30339851
Set Register Ple...199780732024-05-29 21:04:23244 days ago1717016663IN
0x85941600...49656c6bB
0.2 ETH0.0008044510.8173624
Set Register Ple...199780392024-05-29 20:57:35244 days ago1717016255IN
0x85941600...49656c6bB
0.2 ETH0.000691059.29403568
Set Register Ple...199780372024-05-29 20:57:11244 days ago1717016231IN
0x85941600...49656c6bB
0.2 ETH0.000586737.89102541
Set Register Ple...199780102024-05-29 20:51:47244 days ago1717015907IN
0x85941600...49656c6bB
0.2 ETH0.000741629.97417301
Set Register Ple...199778602024-05-29 20:21:35244 days ago1717014095IN
0x85941600...49656c6bB
0.2 ETH0.000674499.06984919
Set Register Ple...199777712024-05-29 20:03:47244 days ago1717013027IN
0x85941600...49656c6bB
0.2 ETH0.000847411.39491194
Set Register Ple...199776902024-05-29 19:47:35244 days ago1717012055IN
0x85941600...49656c6bB
0.2 ETH0.0007863710.57418232
Set Register Ple...199776862024-05-29 19:46:47244 days ago1717012007IN
0x85941600...49656c6bB
0.2 ETH0.0008108810.90380154
Set Register Ple...199776492024-05-29 19:39:23244 days ago1717011563IN
0x85941600...49656c6bB
0.2 ETH0.0008129710.93365431
Set Register Ple...199775572024-05-29 19:20:47244 days ago1717010447IN
0x85941600...49656c6bB
0.2 ETH0.0007882710.60326399
Set Register Ple...199775462024-05-29 19:18:35244 days ago1717010315IN
0x85941600...49656c6bB
0.2 ETH0.0007738210.40546246
Set Register Ple...199773752024-05-29 18:44:11244 days ago1717008251IN
0x85941600...49656c6bB
0.2 ETH0.0008081910.86759482
Set Register Ple...199773402024-05-29 18:37:11244 days ago1717007831IN
0x85941600...49656c6bB
0.2 ETH0.0008686111.68205516
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
199798612024-05-30 3:03:59244 days ago1717038239
0x85941600...49656c6bB
0.2 ETH
199798572024-05-30 3:03:11244 days ago1717038191
0x85941600...49656c6bB
0.2 ETH
199798542024-05-30 3:02:35244 days ago1717038155
0x85941600...49656c6bB
0.2 ETH
199798422024-05-30 3:00:11244 days ago1717038011
0x85941600...49656c6bB
0.2 ETH
199798322024-05-30 2:58:11244 days ago1717037891
0x85941600...49656c6bB
0.2 ETH
199798312024-05-30 2:57:59244 days ago1717037879
0x85941600...49656c6bB
0.2 ETH
199798152024-05-30 2:54:47244 days ago1717037687
0x85941600...49656c6bB
0.2 ETH
199798052024-05-30 2:52:47244 days ago1717037567
0x85941600...49656c6bB
0.2 ETH
199797232024-05-30 2:36:11244 days ago1717036571
0x85941600...49656c6bB
0.2 ETH
199793832024-05-30 1:27:47244 days ago1717032467
0x85941600...49656c6bB
0.2 ETH
199786782024-05-29 23:05:47244 days ago1717023947
0x85941600...49656c6bB
0.2 ETH
199781852024-05-29 21:26:47244 days ago1717018007
0x85941600...49656c6bB
0.2 ETH
199780732024-05-29 21:04:23244 days ago1717016663
0x85941600...49656c6bB
0.2 ETH
199780392024-05-29 20:57:35244 days ago1717016255
0x85941600...49656c6bB
0.2 ETH
199780372024-05-29 20:57:11244 days ago1717016231
0x85941600...49656c6bB
0.2 ETH
199780102024-05-29 20:51:47244 days ago1717015907
0x85941600...49656c6bB
0.2 ETH
199778602024-05-29 20:21:35244 days ago1717014095
0x85941600...49656c6bB
0.2 ETH
199777712024-05-29 20:03:47244 days ago1717013027
0x85941600...49656c6bB
0.2 ETH
199776902024-05-29 19:47:35244 days ago1717012055
0x85941600...49656c6bB
0.2 ETH
199776862024-05-29 19:46:47244 days ago1717012007
0x85941600...49656c6bB
0.2 ETH
199776492024-05-29 19:39:23244 days ago1717011563
0x85941600...49656c6bB
0.2 ETH
199775572024-05-29 19:20:47244 days ago1717010447
0x85941600...49656c6bB
0.2 ETH
199775462024-05-29 19:18:35244 days ago1717010315
0x85941600...49656c6bB
0.2 ETH
199773752024-05-29 18:44:11244 days ago1717008251
0x85941600...49656c6bB
0.2 ETH
199773402024-05-29 18:37:11244 days ago1717007831
0x85941600...49656c6bB
0.2 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FZPLEDGE

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : FZPLEDGE.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

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

contract FZPLEDGE is Ownable {
    using ECDSA for bytes32;

    address private signerAddress = 0xb24CaB5E7F4D697c68d8C475c0348A29f8B71f50;
    address private poolAddress = 0xc6f525953695e96F71e559D98b75F255AFE0BF32;
    bool public isPledgeLive = false;
    uint256 public pledgePrice = 0.2 ether;
    uint256 public maxReserved = 333;

    mapping(address => bool) public isPledged;

    event PoolAddressChanged(address indexed _from, address _to, address _oldAddress);
    event PledgePriceChanged(address indexed _from, uint256 _value);
    event PledgeToggled(address indexed _from, bool _value);
    event SignerAddressChanged(address indexed _from, address _to, address _oldAddress);
    event PledgeDirectRegistered(address indexed _from, address _to);
    event PledgeDirectUnset(address indexed _from, address _oldAddress);
    event PledgeRegistered(address indexed _from, uint256 _value, address _to);

    constructor(address _deployer) {
        transferOwnership(_deployer);
    }

    modifier checkSigned(
        address _address,
        uint256 _nonce,
        bytes32 _messageHash,
        bytes memory _signature
    ) {
        require(msg.value == pledgePrice, "Fund doesn't match pledge price!");
        require(
            _messageHash ==
                ECDSA.toEthSignedMessageHash(hashPacked(_address, _nonce)),
            "Invalid message hash"
        );
        require(
            signerAddress == ECDSA.recover(_messageHash, _signature),
            "Invalid signature"
        );
        _;
    }

    function togglePledge() external onlyOwner {
        isPledgeLive = !isPledgeLive;
        emit PledgeToggled(msg.sender, isPledgeLive);
    }

    function setPledgePrice(uint256 _pledgePrice) external onlyOwner {
        pledgePrice = _pledgePrice;
        emit PledgePriceChanged(msg.sender, pledgePrice);
    }

    function setRegisterPledgeDirect(address _directAddress) external onlyOwner {
        require(_directAddress != address(0), "Address is not valid!");
        require(!isPledged[_directAddress], "Address has claimed!");
        isPledged[_directAddress] = true;
        emit PledgeDirectRegistered(msg.sender, _directAddress);
    }

    function unsetRegisterPledgeDirect(address _directAddress) external onlyOwner {
        delete isPledged[_directAddress];
        emit PledgeDirectUnset(msg.sender, _directAddress);
    }

    function setRegisterPledge(
        uint256 _nonce,
        bytes32 _msgHash,
        bytes memory _signature
    ) external payable checkSigned(msg.sender, _nonce, _msgHash, _signature) {
        require(isPledgeLive, "Pledge is not live yet");
        require(!isPledged[msg.sender], "You already pledged!");
        isPledged[msg.sender] = true;
        (bool sent, ) = poolAddress.call{value: msg.value}("");
        require(sent, "Failed to send Ether");
        emit PledgeRegistered(msg.sender, msg.value, poolAddress);
    }

    function setPoolAddress(address _newPoolAddress) external onlyOwner {
        require(_newPoolAddress != address(0), "Address is not valid!");
        address oldAddress = poolAddress;
        poolAddress = _newPoolAddress;
        emit PoolAddressChanged(msg.sender, poolAddress, oldAddress);
    }

    function setSignerAddress(address _newSigner) external onlyOwner {
        require(_newSigner != address(0), "Address is not valid!");
        address oldAddress = signerAddress;
        signerAddress = _newSigner;
        emit SignerAddressChanged(msg.sender, signerAddress, oldAddress);
    }

    function hashPacked(address _address, uint256 _nonce)
        private
        pure
        returns (bytes32)
    {
        bytes memory hashData = abi.encodePacked(_address, _nonce);
        bytes32 hash = keccak256(hashData);
        return hash;
    }
}

File 2 of 7 : 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 7 : 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 4 of 7 : 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));
    }
}

File 5 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 6 of 7 : 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 7 of 7 : 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);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_deployer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"}],"name":"PledgeDirectRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_oldAddress","type":"address"}],"name":"PledgeDirectUnset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"PledgePriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"},{"indexed":false,"internalType":"address","name":"_to","type":"address"}],"name":"PledgeRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"bool","name":"_value","type":"bool"}],"name":"PledgeToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"address","name":"_oldAddress","type":"address"}],"name":"PoolAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"address","name":"_oldAddress","type":"address"}],"name":"SignerAddressChanged","type":"event"},{"inputs":[],"name":"isPledgeLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPledged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReserved","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":"pledgePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pledgePrice","type":"uint256"}],"name":"setPledgePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPoolAddress","type":"address"}],"name":"setPoolAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes32","name":"_msgHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"setRegisterPledge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_directAddress","type":"address"}],"name":"setRegisterPledgeDirect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSigner","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePledge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_directAddress","type":"address"}],"name":"unsetRegisterPledgeDirect","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600180546001600160a01b03191673b24cab5e7f4d697c68d8c475c0348a29f8b71f50179055600280546001600160a81b03191673c6f525953695e96f71e559d98b75f255afe0bf321790556702c68af0bb14000060035561014d60045534801561006e57600080fd5b506040516200102c3803806200102c83398101604081905261008f916101d1565b610098336100a7565b6100a1816100f7565b50610201565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6100ff610175565b6001600160a01b0381166101695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610172816100a7565b50565b6000546001600160a01b031633146101cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610160565b565b6000602082840312156101e357600080fd5b81516001600160a01b03811681146101fa57600080fd5b9392505050565b610e1b80620002116000396000f3fe6080604052600436106100dd5760003560e01c8063715018a61161007f578063cd2c901011610059578063cd2c901014610236578063d3018cd814610256578063e9e15b4f14610269578063f2fde38b1461028957600080fd5b8063715018a6146101e35780638da5cb5b146101f8578063a9898fd91461022057600080fd5b80631baf43db116100bb5780631baf43db1461016d57806343a140371461018d57806344efe83f146101ae578063539afa35146101c357600080fd5b8063046dc166146100e2578063067b9506146101045780631b15ee8514610149575b600080fd5b3480156100ee57600080fd5b506101026100fd366004610c7d565b6102a9565b005b34801561011057600080fd5b5061013461011f366004610c7d565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561015557600080fd5b5061015f60035481565b604051908152602001610140565b34801561017957600080fd5b50610102610188366004610cad565b610342565b34801561019957600080fd5b5060025461013490600160a01b900460ff1681565b3480156101ba57600080fd5b50610102610388565b3480156101cf57600080fd5b506101026101de366004610c7d565b6103f6565b3480156101ef57600080fd5b506101026104da565b34801561020457600080fd5b506000546040516001600160a01b039091168152602001610140565b34801561022c57600080fd5b5061015f60045481565b34801561024257600080fd5b50610102610251366004610c7d565b6104ee565b610102610264366004610cdc565b610549565b34801561027557600080fd5b50610102610284366004610c7d565b61085b565b34801561029557600080fd5b506101026102a4366004610c7d565b6108e3565b6102b161095c565b6001600160a01b0381166102e05760405162461bcd60e51b81526004016102d790610da0565b60405180910390fd5b600180546001600160a01b038381166001600160a01b031983168117909355604080519384529116602083018190529133917f7f79a758079c8ff715826ba9a371c85dd9a922cfa735519ecbb8f5bee614a2b491015b60405180910390a25050565b61034a61095c565b600381905560405181815233907f075e87880618e94a1bd2194d905c60fe940e47ee7554a958b7a2a64fba02763f906020015b60405180910390a250565b61039061095c565b6002805460ff600160a01b808304821615810260ff60a01b19909316929092179283905560405133937f7199461f2fd99f0d70cddfa0cbf89c3248241eb61a797fe4cb996bd4113e06a7936103ec939104161515815260200190565b60405180910390a2565b6103fe61095c565b6001600160a01b0381166104245760405162461bcd60e51b81526004016102d790610da0565b6001600160a01b03811660009081526005602052604090205460ff16156104845760405162461bcd60e51b8152602060048201526014602482015273416464726573732068617320636c61696d65642160601b60448201526064016102d7565b6001600160a01b038116600081815260056020908152604091829020805460ff19166001179055905191825233917f3d29ba601904ee0ad216f42fe083486bfa3094140d4c1593b4d503a62a820d61910161037d565b6104e261095c565b6104ec60006109b6565b565b6104f661095c565b6001600160a01b038116600081815260056020908152604091829020805460ff19169055905191825233917fea0495dd1b556b057a098e37239dfb0429930bd53a4ec045a599807b0f5bccf1910161037d565b33838383600354341461059e5760405162461bcd60e51b815260206004820181905260248201527f46756e6420646f65736e2774206d6174636820706c656467652070726963652160448201526064016102d7565b60408051606086901b6bffffffffffffffffffffffff1916602080830191909152603480830187905283518084039091018152605490920190925280519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902082146106535760405162461bcd60e51b8152602060048201526014602482015273092dcecc2d8d2c840dacae6e6c2ceca40d0c2e6d60631b60448201526064016102d7565b61065d8282610a06565b6001546001600160a01b039081169116146106ae5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016102d7565b600254600160a01b900460ff166107005760405162461bcd60e51b8152602060048201526016602482015275141b195919d9481a5cc81b9bdd081b1a5d99481e595d60521b60448201526064016102d7565b3360009081526005602052604090205460ff16156107575760405162461bcd60e51b8152602060048201526014602482015273596f7520616c726561647920706c65646765642160601b60448201526064016102d7565b33600090815260056020526040808220805460ff1916600117905560025490516001600160a01b039091169034908381818185875af1925050503d80600081146107bd576040519150601f19603f3d011682016040523d82523d6000602084013e6107c2565b606091505b505090508061080a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016102d7565b600254604080513481526001600160a01b03909216602083015233917f78bcecfa2a1bdc0ad9611ddb3e848708a4b9a5f29f2ef512712001df00b2ac58910160405180910390a25050505050505050565b61086361095c565b6001600160a01b0381166108895760405162461bcd60e51b81526004016102d790610da0565b600280546001600160a01b038381166001600160a01b031983168117909355604080519384529116602083018190529133917f97e1d7bbe203ed7215a41ee43cce1662b33c45cefe223059dccfbe449b0ec7dd9101610336565b6108eb61095c565b6001600160a01b0381166109505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102d7565b610959816109b6565b50565b6000546001600160a01b031633146104ec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102d7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000610a158585610a2a565b91509150610a2281610a6f565b509392505050565b6000808251604103610a605760208301516040840151606085015160001a610a5487828585610bb9565b94509450505050610a68565b506000905060025b9250929050565b6000816004811115610a8357610a83610dcf565b03610a8b5750565b6001816004811115610a9f57610a9f610dcf565b03610aec5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016102d7565b6002816004811115610b0057610b00610dcf565b03610b4d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102d7565b6003816004811115610b6157610b61610dcf565b036109595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016102d7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610bf05750600090506003610c74565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610c44573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c6d57600060019250925050610c74565b9150600090505b94509492505050565b600060208284031215610c8f57600080fd5b81356001600160a01b0381168114610ca657600080fd5b9392505050565b600060208284031215610cbf57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215610cf157600080fd5b8335925060208401359150604084013567ffffffffffffffff80821115610d1757600080fd5b818601915086601f830112610d2b57600080fd5b813581811115610d3d57610d3d610cc6565b604051601f8201601f19908116603f01168101908382118183101715610d6557610d65610cc6565b81604052828152896020848701011115610d7e57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60208082526015908201527441646472657373206973206e6f742076616c69642160581b604082015260600190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220735dc4980b27810afa9bec7694349c4200135bf33c0088ab5b3d852dbf49f35064736f6c63430008110033000000000000000000000000cc9b5d0fac5c2b9bed68341c79c23d34a8e72a9c

Deployed Bytecode

0x6080604052600436106100dd5760003560e01c8063715018a61161007f578063cd2c901011610059578063cd2c901014610236578063d3018cd814610256578063e9e15b4f14610269578063f2fde38b1461028957600080fd5b8063715018a6146101e35780638da5cb5b146101f8578063a9898fd91461022057600080fd5b80631baf43db116100bb5780631baf43db1461016d57806343a140371461018d57806344efe83f146101ae578063539afa35146101c357600080fd5b8063046dc166146100e2578063067b9506146101045780631b15ee8514610149575b600080fd5b3480156100ee57600080fd5b506101026100fd366004610c7d565b6102a9565b005b34801561011057600080fd5b5061013461011f366004610c7d565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561015557600080fd5b5061015f60035481565b604051908152602001610140565b34801561017957600080fd5b50610102610188366004610cad565b610342565b34801561019957600080fd5b5060025461013490600160a01b900460ff1681565b3480156101ba57600080fd5b50610102610388565b3480156101cf57600080fd5b506101026101de366004610c7d565b6103f6565b3480156101ef57600080fd5b506101026104da565b34801561020457600080fd5b506000546040516001600160a01b039091168152602001610140565b34801561022c57600080fd5b5061015f60045481565b34801561024257600080fd5b50610102610251366004610c7d565b6104ee565b610102610264366004610cdc565b610549565b34801561027557600080fd5b50610102610284366004610c7d565b61085b565b34801561029557600080fd5b506101026102a4366004610c7d565b6108e3565b6102b161095c565b6001600160a01b0381166102e05760405162461bcd60e51b81526004016102d790610da0565b60405180910390fd5b600180546001600160a01b038381166001600160a01b031983168117909355604080519384529116602083018190529133917f7f79a758079c8ff715826ba9a371c85dd9a922cfa735519ecbb8f5bee614a2b491015b60405180910390a25050565b61034a61095c565b600381905560405181815233907f075e87880618e94a1bd2194d905c60fe940e47ee7554a958b7a2a64fba02763f906020015b60405180910390a250565b61039061095c565b6002805460ff600160a01b808304821615810260ff60a01b19909316929092179283905560405133937f7199461f2fd99f0d70cddfa0cbf89c3248241eb61a797fe4cb996bd4113e06a7936103ec939104161515815260200190565b60405180910390a2565b6103fe61095c565b6001600160a01b0381166104245760405162461bcd60e51b81526004016102d790610da0565b6001600160a01b03811660009081526005602052604090205460ff16156104845760405162461bcd60e51b8152602060048201526014602482015273416464726573732068617320636c61696d65642160601b60448201526064016102d7565b6001600160a01b038116600081815260056020908152604091829020805460ff19166001179055905191825233917f3d29ba601904ee0ad216f42fe083486bfa3094140d4c1593b4d503a62a820d61910161037d565b6104e261095c565b6104ec60006109b6565b565b6104f661095c565b6001600160a01b038116600081815260056020908152604091829020805460ff19169055905191825233917fea0495dd1b556b057a098e37239dfb0429930bd53a4ec045a599807b0f5bccf1910161037d565b33838383600354341461059e5760405162461bcd60e51b815260206004820181905260248201527f46756e6420646f65736e2774206d6174636820706c656467652070726963652160448201526064016102d7565b60408051606086901b6bffffffffffffffffffffffff1916602080830191909152603480830187905283518084039091018152605490920190925280519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902082146106535760405162461bcd60e51b8152602060048201526014602482015273092dcecc2d8d2c840dacae6e6c2ceca40d0c2e6d60631b60448201526064016102d7565b61065d8282610a06565b6001546001600160a01b039081169116146106ae5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016102d7565b600254600160a01b900460ff166107005760405162461bcd60e51b8152602060048201526016602482015275141b195919d9481a5cc81b9bdd081b1a5d99481e595d60521b60448201526064016102d7565b3360009081526005602052604090205460ff16156107575760405162461bcd60e51b8152602060048201526014602482015273596f7520616c726561647920706c65646765642160601b60448201526064016102d7565b33600090815260056020526040808220805460ff1916600117905560025490516001600160a01b039091169034908381818185875af1925050503d80600081146107bd576040519150601f19603f3d011682016040523d82523d6000602084013e6107c2565b606091505b505090508061080a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016102d7565b600254604080513481526001600160a01b03909216602083015233917f78bcecfa2a1bdc0ad9611ddb3e848708a4b9a5f29f2ef512712001df00b2ac58910160405180910390a25050505050505050565b61086361095c565b6001600160a01b0381166108895760405162461bcd60e51b81526004016102d790610da0565b600280546001600160a01b038381166001600160a01b031983168117909355604080519384529116602083018190529133917f97e1d7bbe203ed7215a41ee43cce1662b33c45cefe223059dccfbe449b0ec7dd9101610336565b6108eb61095c565b6001600160a01b0381166109505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102d7565b610959816109b6565b50565b6000546001600160a01b031633146104ec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102d7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000610a158585610a2a565b91509150610a2281610a6f565b509392505050565b6000808251604103610a605760208301516040840151606085015160001a610a5487828585610bb9565b94509450505050610a68565b506000905060025b9250929050565b6000816004811115610a8357610a83610dcf565b03610a8b5750565b6001816004811115610a9f57610a9f610dcf565b03610aec5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016102d7565b6002816004811115610b0057610b00610dcf565b03610b4d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102d7565b6003816004811115610b6157610b61610dcf565b036109595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016102d7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610bf05750600090506003610c74565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610c44573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c6d57600060019250925050610c74565b9150600090505b94509492505050565b600060208284031215610c8f57600080fd5b81356001600160a01b0381168114610ca657600080fd5b9392505050565b600060208284031215610cbf57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215610cf157600080fd5b8335925060208401359150604084013567ffffffffffffffff80821115610d1757600080fd5b818601915086601f830112610d2b57600080fd5b813581811115610d3d57610d3d610cc6565b604051601f8201601f19908116603f01168101908382118183101715610d6557610d65610cc6565b81604052828152896020848701011115610d7e57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60208082526015908201527441646472657373206973206e6f742076616c69642160581b604082015260600190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220735dc4980b27810afa9bec7694349c4200135bf33c0088ab5b3d852dbf49f35064736f6c63430008110033

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

000000000000000000000000cc9b5d0fac5c2b9bed68341c79c23d34a8e72a9c

-----Decoded View---------------
Arg [0] : _deployer (address): 0xCC9B5D0FAC5c2B9bEd68341C79c23D34A8e72A9c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000cc9b5d0fac5c2b9bed68341c79c23d34a8e72a9c


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  ]
[ 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.