ETH Price: $2,395.70 (-1.38%)
Gas: 4.87 Gwei

Contract

0x1960d8A3994444b54814A8F5BcF56A1D5a8e8a68
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer193198292024-02-27 15:37:11221 days ago1709048231IN
0x1960d8A3...D5a8e8a68
0 ETH0.2906665863.5285566
Approve192344592024-02-15 16:15:47233 days ago1708013747IN
0x1960d8A3...D5a8e8a68
0 ETH0.0041433674.41925053
Approve192344482024-02-15 16:13:35233 days ago1708013615IN
0x1960d8A3...D5a8e8a68
0 ETH0.0025044969.56149371
Approve192344452024-02-15 16:12:59233 days ago1708013579IN
0x1960d8A3...D5a8e8a68
0 ETH0.0037724667.4087761
Approve192344452024-02-15 16:12:59233 days ago1708013579IN
0x1960d8A3...D5a8e8a68
0 ETH0.0037684267.4087761
Approve192344432024-02-15 16:12:35233 days ago1708013555IN
0x1960d8A3...D5a8e8a68
0 ETH0.0042032275.10587438
Approve192344382024-02-15 16:11:23233 days ago1708013483IN
0x1960d8A3...D5a8e8a68
0 ETH0.0041990275.03088931
Approve192344382024-02-15 16:11:23233 days ago1708013483IN
0x1960d8A3...D5a8e8a68
0 ETH0.0042783876.53088931
Approve192344372024-02-15 16:11:11233 days ago1708013471IN
0x1960d8A3...D5a8e8a68
0 ETH0.0040638972.61620899
Approve192344322024-02-15 16:10:11233 days ago1708013411IN
0x1960d8A3...D5a8e8a68
0 ETH0.0042576176.15940365
Approve192344322024-02-15 16:10:11233 days ago1708013411IN
0x1960d8A3...D5a8e8a68
0 ETH0.0043414777.65940365
Approve192344302024-02-15 16:09:47233 days ago1708013387IN
0x1960d8A3...D5a8e8a68
0 ETH0.0047308684.5341054
Approve192344282024-02-15 16:09:23233 days ago1708013363IN
0x1960d8A3...D5a8e8a68
0 ETH0.0048593286.92258358
Approve192344272024-02-15 16:09:11233 days ago1708013351IN
0x1960d8A3...D5a8e8a68
0 ETH0.0048935887.44160754
Approve192344252024-02-15 16:08:47233 days ago1708013327IN
0x1960d8A3...D5a8e8a68
0 ETH0.0051599692.77849161
Approve192344252024-02-15 16:08:47233 days ago1708013327IN
0x1960d8A3...D5a8e8a68
0 ETH0.0054715397.76885748
Approve192344232024-02-15 16:08:23233 days ago1708013303IN
0x1960d8A3...D5a8e8a68
0 ETH0.0054173196.80007228
Approve192344192024-02-15 16:07:35233 days ago1708013255IN
0x1960d8A3...D5a8e8a68
0 ETH0.0049896689.61964285
Approve192344192024-02-15 16:07:35233 days ago1708013255IN
0x1960d8A3...D5a8e8a68
0 ETH0.0052611594.00964285
Approve192344172024-02-15 16:07:11233 days ago1708013231IN
0x1960d8A3...D5a8e8a68
0 ETH0.0050806990.88251489
Approve192344132024-02-15 16:06:23233 days ago1708013183IN
0x1960d8A3...D5a8e8a68
0 ETH0.00564317100.94395012
Approve192344132024-02-15 16:06:23233 days ago1708013183IN
0x1960d8A3...D5a8e8a68
0 ETH0.00564317100.94395012
Approve192344122024-02-15 16:06:11233 days ago1708013171IN
0x1960d8A3...D5a8e8a68
0 ETH0.0057437102.7423174
Approve192344122024-02-15 16:06:11233 days ago1708013171IN
0x1960d8A3...D5a8e8a68
0 ETH0.0057437102.7423174
Approve192344122024-02-15 16:06:11233 days ago1708013171IN
0x1960d8A3...D5a8e8a68
0 ETH0.00559226100.0333174
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
192331612024-02-15 11:54:35233 days ago1707998075  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Interface

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : Token.sol
// website: https://eth-scriptions.com
// twitter(X): https://twitter.com/eth_scriptions
// telegram: https://t.me/eth_scriptions

// SPDX-License-Identifier: UNLICENSED

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 @openzeppelin/contracts/access/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC20/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(
        address owner,
        address spender
    ) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File @openzeppelin/contracts/utils/math/[email protected]

// Original license: 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 @openzeppelin/contracts/utils/math/[email protected]

// Original license: 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 @openzeppelin/contracts/utils/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @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 contracts/ERCS.sol

// Original license: SPDX_License_Identifier: UNLICENSED
pragma solidity ^0.8.21;

interface IERCS {
    function allowance(address, address) external view returns (uint256);

    function approve(
        address spender,
        uint256 amountOrId
    ) external returns (bool);

    function balanceOf(address) external view returns (uint256);

    function balanceOfERC20(address) external view returns (uint256);

    function baseTokenURI() external view returns (string memory);

    function _decimals() external view returns (uint8);

    function erc721totalSupply() external view returns (uint256);

    function getApproved(uint256) external view returns (address);

    function getBurnedToken() external view returns (uint256[] memory);

    function isApprovedForAll(address, address) external view returns (bool);

    function maxMintedId() external view returns (uint256);

    function name() external view returns (string memory);

    function owner() external view returns (address);

    function ownerOf(uint256 id) external view returns (address owner);

    function renounceOwnership() external;

    function safeTransferFrom(address from, address to, uint256 id) external;

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) external;

    function setApprovalForAll(address operator, bool approved) external;

    function setTokenURI(string memory _tokenURI) external;

    function setWhitelist(address target, bool state) external;

    function symbol() external view returns (string memory);

    function tokenIdPool(uint256) external view returns (uint256);

    function tokenURI(uint256 id) external returns (string memory);

    function _erc20Supply() external view returns (uint256);

    function transferFrom(
        address from,
        address to,
        uint256 amountOrId
    ) external;

    function transferOwnership(address newOwner) external;

    function whitelist(address) external view returns (bool);

    function transferERC20(
        address sender,
        address to,
        uint256 amount
    ) external returns (bool);

    function transferFromERC20(
        address sender,
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    function approveERC20(
        address sender,
        address spender,
        uint256 amount
    ) external returns (bool);
}

contract Interface is IERC20, IERC20Metadata, Context {
    IERCS public ercs;

    modifier onlyERCS() {
        require(
            _msgSender() == address(ercs),
            "onlyERCS can call this function"
        );
        _;
    }

    constructor() {
        ercs = IERCS(_msgSender());
    }

    function name() external view override returns (string memory) {
        return ercs.name();
    }

    function symbol() external view override returns (string memory) {
        return ercs.symbol();
    }

    function decimals() external view override returns (uint8) {
        return ercs._decimals();
    }

    function totalSupply() external view override returns (uint256) {
        return ercs._erc20Supply();
    }

    function balanceOf(
        address account
    ) external view override returns (uint256) {
        return ercs.balanceOfERC20(account);
    }

    function transfer(
        address to,
        uint256 amount
    ) external override returns (bool) {
        bool status = ercs.transferERC20(_msgSender(), to, amount);
        emit Transfer(_msgSender(), to, amount);
        return status;
    }

    function allowance(
        address owner,
        address spender
    ) external view override returns (uint256) {
        return ercs.allowance(owner, spender);
    }

    function approve(
        address spender,
        uint256 amount
    ) external override returns (bool) {
        bool status = ercs.approveERC20(_msgSender(), spender, amount);
        emit Approval(_msgSender(), spender, amount);
        return status;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external override returns (bool) {
        bool status = ercs.transferFromERC20(_msgSender(), from, to, amount);
        emit Transfer(from, to, amount);
        return status;
    }

    function log4(address from, address to, uint256 amount) external onlyERCS {
        emit Transfer(from, to, amount);
    }
}

abstract contract ERC721Receiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721Receiver.onERC721Received.selector;
    }
}

abstract contract ERCS is Ownable {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 amount
    );
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed id
    );
    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );

    error TokenNotFound();
    error AlreadyExists();
    error InvalidRecipient();
    error InvalidSender();
    error UnsafeRecipient();
    error InvalidId();
    error IdNotAssigned();
    error PoolIsEmpty();
    error InvalidSetWhitelistCondition();
    error Unauthorized();
    error InvalidOwner();

    string public name;
    string public symbol;
    uint8 public immutable _decimals = 18;
    uint256 public immutable _erc20Supply;
    string public baseTokenURI;
    uint256 public erc721totalSupply;
    uint256[] public tokenIdPool;
    uint256 public maxMintedId;
    mapping(uint256 => bool) private idAssigned;
    mapping(address => uint256) public _balance;
    mapping(address => mapping(address => uint256)) public allowance;
    mapping(uint256 => address) public getApproved;
    mapping(address => mapping(address => bool)) public isApprovedForAll;
    mapping(uint256 => address) internal _ownerOf;
    mapping(address => uint256[]) internal _owned;
    mapping(uint256 => uint256) internal _ownedIndex;
    mapping(address => bool) public whitelist;

    Interface public tokenInterface;

    modifier caller() {
        if (_msgSender() != address(tokenInterface)) {
            revert Unauthorized();
        }
        _;
    }

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
        tokenInterface = new Interface();
    }

    function totalSupply() public view returns (uint256) {
        return erc721totalSupply;
    }

    function setWhitelist(address target, bool state) public onlyOwner {
        if (_balance[target] > 0) {
            revert InvalidSetWhitelistCondition();
        }
        whitelist[target] = state;
    }

    function ownerOf(uint256 id) public view returns (address owner) {
        owner = _ownerOf[id];

        if (owner == address(0)) {
            revert TokenNotFound();
        }
    }

    function setTokenURI(string memory _tokenURI) public onlyOwner {
        baseTokenURI = _tokenURI;
    }

    function tokenURI(uint256 id) public view virtual returns (string memory) {
        if (id >= erc721totalSupply || id <= 0) {
            revert InvalidId();
        }
        return string.concat(baseTokenURI, Strings.toString(id));
    }

    function approve(address spender, uint256 tokenId) public returns (bool) {
        address owner = _ownerOf[tokenId];

        if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) {
            revert Unauthorized();
        }

        getApproved[tokenId] = spender;

        emit Approval(owner, spender, tokenId);

        return true;
    }

    function setApprovalForAll(address operator, bool approved) public {
        isApprovedForAll[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    function transferFrom(address from, address to, uint256 tokenId) public {
        if (from != _ownerOf[tokenId]) {
            revert InvalidSender();
        }

        if (to == address(0)) {
            revert InvalidRecipient();
        }

        if (
            msg.sender != from &&
            !isApprovedForAll[from][msg.sender] &&
            msg.sender != getApproved[tokenId]
        ) {
            revert Unauthorized();
        }

        _balance[from] -= _getUnit();

        unchecked {
            _balance[to] += _getUnit();
        }

        _ownerOf[tokenId] = to;
        delete getApproved[tokenId];

        // update _owned for sender
        uint256 updatedId = _owned[from][_owned[from].length - 1];
        _owned[from][_ownedIndex[tokenId]] = updatedId;
        // pop
        _owned[from].pop();
        // update index for the moved id
        _ownedIndex[updatedId] = _ownedIndex[tokenId];
        // push token to to owned
        _owned[to].push(tokenId);
        // update index for to owned
        _ownedIndex[tokenId] = _owned[to].length - 1;

        emit Transfer(from, to, tokenId);
        tokenInterface.log4(from, to, _getUnit());
    }

    function transferFromERC20(
        address sender,
        address from,
        address to,
        uint256 amount
    ) external caller returns (bool) {
        uint256 allowed = allowance[from][sender];

        if (allowed != type(uint256).max)
            allowance[from][sender] = allowed - amount;

        return _transfer(from, to, amount);
    }

    function approveERC20(
        address sender,
        address spender,
        uint256 amount
    ) external caller returns (bool) {
        allowance[sender][spender] = amount;
        return true;
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public {
        transferFrom(from, to, id);

        if (
            to.code.length != 0 &&
            ERC721Receiver(to).onERC721Received(_msgSender(), from, id, data) !=
            ERC721Receiver.onERC721Received.selector
        ) {
            revert UnsafeRecipient();
        }
    }

    function transferERC20(
        address sender,
        address to,
        uint256 amount
    ) external caller returns (bool) {
        return _transfer(sender, to, amount);
    }

    function transfer(address to, uint256 amount) external returns (bool) {
        return _transfer(_msgSender(), to, amount);
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal returns (bool) {
        uint256 unit = _getUnit();
        uint256 balanceBeforeSender = _balance[from];
        uint256 balanceBeforeReceiver = _balance[to];

        _balance[from] -= amount;

        unchecked {
            _balance[to] += amount;
        }

        // Skip burn for certain addresses to save gas
        if (!whitelist[from]) {
            uint256 tokens_to_burn = (balanceBeforeSender / unit) -
                (_balance[from] / unit);
            for (uint256 i = 0; i < tokens_to_burn; i++) {
                _burn(from);
            }
        }

        // Skip minting for certain addresses to save gas
        if (!whitelist[to]) {
            uint256 tokens_to_mint = (_balance[to] / unit) -
                (balanceBeforeReceiver / unit);
            for (uint256 i = 0; i < tokens_to_mint; i++) {
                _mint(to);
            }
        }
        return true;
    }

    function balanceOfERC20(address account) public view returns (uint256) {
        return _balance[account];
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balance[account] / _getUnit();
    }

    // Internal utility logic
    function _getUnit() internal pure returns (uint256) {
        return 10 ** _decimals;
    }

    function _getIdFromPool() private returns (uint256) {
        if (tokenIdPool.length == 0) {
            revert PoolIsEmpty();
        }
        uint256 randomIndex = uint256(
            keccak256(
                abi.encodePacked(
                    block.timestamp,
                    _msgSender(),
                    tokenIdPool.length
                )
            )
        ) % tokenIdPool.length;
        uint256 id = tokenIdPool[randomIndex];
        tokenIdPool[randomIndex] = tokenIdPool[tokenIdPool.length - 1];
        tokenIdPool.pop();
        idAssigned[id] = true;
        return id;
    }

    function _returnIdToPool(uint256 id) private {
        if (!idAssigned[id]) {
            revert IdNotAssigned();
        }
        tokenIdPool.push(id);
        idAssigned[id] = false;
    }

    function _mint(address to) internal {
        if (to == address(0)) {
            revert InvalidRecipient();
        }

        uint256 id;

        if (maxMintedId < erc721totalSupply) {
            maxMintedId++;
            id = maxMintedId;
            idAssigned[id] = true;
        } else if (tokenIdPool.length > 0) {
            id = _getIdFromPool();
        } else {
            revert PoolIsEmpty();
        }

        _ownerOf[id] = to;
        _owned[to].push(id);
        _ownedIndex[id] = _owned[to].length - 1;

        emit Transfer(address(0), to, id);
    }

    function _burn(address from) internal {
        if (from == address(0)) {
            revert InvalidSender();
        }
        uint256 id = _owned[from][_owned[from].length - 1];
        _returnIdToPool(id);
        _owned[from].pop();
        delete _ownedIndex[id];
        delete _ownerOf[id];
        delete getApproved[id];

        emit Transfer(from, address(0), id);
    }

    /// @notice Function for native transfers with contract support
    function safeTransferFrom(address from, address to, uint256 id) public {
        transferFrom(from, to, id);

        if (
            to.code.length != 0 &&
            ERC721Receiver(to).onERC721Received(_msgSender(), from, id, "") !=
            ERC721Receiver.onERC721Received.selector
        ) {
            revert UnsafeRecipient();
        }
    }

    function tokenOfOwnerByIndex(
        address owner,
        uint256 index
    ) public view returns (uint256) {
        return _owned[owner][index];
    }
}

interface IUniswapV3Factory {
    /// @notice Emitted when the owner of the factory is changed
    /// @param oldOwner The owner before the owner was changed
    /// @param newOwner The owner after the owner was changed
    event OwnerChanged(address indexed oldOwner, address indexed newOwner);

    /// @notice Emitted when a pool is created
    /// @param token0 The first token of the pool by address sort order
    /// @param token1 The second token of the pool by address sort order
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks
    /// @param pool The address of the created pool
    event PoolCreated(
        address indexed token0,
        address indexed token1,
        uint24 indexed fee,
        int24 tickSpacing,
        address pool
    );

    /// @notice Emitted when a new fee amount is enabled for pool creation via the factory
    /// @param fee The enabled fee, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee
    event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing);

    /// @notice Returns the current owner of the factory
    /// @dev Can be changed by the current owner via setOwner
    /// @return The address of the factory owner
    function owner() external view returns (address);

    /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled
    /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context
    /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee
    /// @return The tick spacing
    function feeAmountTickSpacing(uint24 fee) external view returns (int24);

    /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist
    /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order
    /// @param tokenA The contract address of either token0 or token1
    /// @param tokenB The contract address of the other token
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @return pool The pool address
    function getPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external view returns (address pool);

    /// @notice Creates a pool for the given two tokens and fee
    /// @param tokenA One of the two tokens in the desired pool
    /// @param tokenB The other of the two tokens in the desired pool
    /// @param fee The desired fee for the pool
    /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved
    /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments
    /// are invalid.
    /// @return pool The address of the newly created pool
    function createPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external returns (address pool);

    /// @notice Updates the owner of the factory
    /// @dev Must be called by the current owner
    /// @param _owner The new owner of the factory
    function setOwner(address _owner) external;

    /// @notice Enables a fee amount with the given tickSpacing
    /// @dev Fee amounts may never be removed once enabled
    /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)
    /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount
    function enableFeeAmount(uint24 fee, int24 tickSpacing) external;
}

contract ERCSToken is ERCS {
    uint256 public constant _supply = 6666 * 10 ** 18;

    constructor() ERCS("ERC-S", "ES") {
        _erc20Supply = _supply;
        _decimals = 18;
        _balance[_msgSender()] = _erc20Supply;
        erc721totalSupply = _supply / 10 ** _decimals;
        whitelist[_msgSender()] = true;
        address v3Pool = IUniswapV3Factory(
            0x1F98431c8aD98523631AE4a59f267346ea31F984
        ).createPool(
                0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,
                address(tokenInterface),
                10000
            );
        whitelist[v3Pool] = true;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ercs","outputs":[{"internalType":"contract IERCS","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"log4","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561000f575f80fd5b5061001e61006160201b60201c565b5f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610068565b5f33905090565b611152806100755f395ff3fe608060405234801561000f575f80fd5b50600436106100a7575f3560e01c806337225be01161006f57806337225be01461016557806370a082311461018357806395d89b41146101b3578063a9059cbb146101d1578063bd48c03c14610201578063dd62ed3e1461021d576100a7565b806306fdde03146100ab578063095ea7b3146100c957806318160ddd146100f957806323b872dd14610117578063313ce56714610147575b5f80fd5b6100b361024d565b6040516100c09190610ae7565b60405180910390f35b6100e360048036038101906100de9190610ba5565b6102e3565b6040516100f09190610bfd565b60405180910390f35b610101610400565b60405161010e9190610c25565b60405180910390f35b610131600480360381019061012c9190610c3e565b610493565b60405161013e9190610bfd565b60405180910390f35b61014f6105ac565b60405161015c9190610ca9565b60405180910390f35b61016d61063f565b60405161017a9190610d1d565b60405180910390f35b61019d60048036038101906101989190610d36565b610662565b6040516101aa9190610c25565b60405180910390f35b6101bb610702565b6040516101c89190610ae7565b60405180910390f35b6101eb60048036038101906101e69190610ba5565b610798565b6040516101f89190610bfd565b60405180910390f35b61021b60048036038101906102169190610c3e565b6108b5565b005b61023760048036038101906102329190610d61565b6109b3565b6040516102449190610c25565b60405180910390f35b60605f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff1660e01b81526004015f60405180830381865afa1580156102b6573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906102de9190610ebd565b905090565b5f805f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8e5e4aa610328610a56565b86866040518463ffffffff1660e01b815260040161034893929190610f13565b6020604051808303815f875af1158015610364573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103889190610f72565b90508373ffffffffffffffffffffffffffffffffffffffff166103a9610a56565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516103ee9190610c25565b60405180910390a38091505092915050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d502f526040518163ffffffff1660e01b8152600401602060405180830381865afa15801561046a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061048e9190610fb1565b905090565b5f805f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd71105d6104d8610a56565b8787876040518563ffffffff1660e01b81526004016104fa9493929190610fdc565b6020604051808303815f875af1158015610516573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053a9190610f72565b90508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516105999190610c25565b60405180910390a3809150509392505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166332424aa36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610616573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061063a9190611049565b905090565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d93db24f836040518263ffffffff1660e01b81526004016106bc9190611074565b602060405180830381865afa1580156106d7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106fb9190610fb1565b9050919050565b60605f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b81526004015f60405180830381865afa15801561076b573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906107939190610ebd565b905090565b5f805f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639db5dbe46107dd610a56565b86866040518463ffffffff1660e01b81526004016107fd93929190610f13565b6020604051808303815f875af1158015610819573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083d9190610f72565b90508373ffffffffffffffffffffffffffffffffffffffff1661085e610a56565b73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516108a39190610c25565b60405180910390a38091505092915050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108f3610a56565b73ffffffffffffffffffffffffffffffffffffffff1614610949576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610940906110d7565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516109a69190610c25565b60405180910390a3505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e84846040518363ffffffff1660e01b8152600401610a0f9291906110f5565b602060405180830381865afa158015610a2a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a4e9190610fb1565b905092915050565b5f33905090565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015610a94578082015181840152602081019050610a79565b5f8484015250505050565b5f601f19601f8301169050919050565b5f610ab982610a5d565b610ac38185610a67565b9350610ad3818560208601610a77565b610adc81610a9f565b840191505092915050565b5f6020820190508181035f830152610aff8184610aaf565b905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610b4182610b18565b9050919050565b610b5181610b37565b8114610b5b575f80fd5b50565b5f81359050610b6c81610b48565b92915050565b5f819050919050565b610b8481610b72565b8114610b8e575f80fd5b50565b5f81359050610b9f81610b7b565b92915050565b5f8060408385031215610bbb57610bba610b10565b5b5f610bc885828601610b5e565b9250506020610bd985828601610b91565b9150509250929050565b5f8115159050919050565b610bf781610be3565b82525050565b5f602082019050610c105f830184610bee565b92915050565b610c1f81610b72565b82525050565b5f602082019050610c385f830184610c16565b92915050565b5f805f60608486031215610c5557610c54610b10565b5b5f610c6286828701610b5e565b9350506020610c7386828701610b5e565b9250506040610c8486828701610b91565b9150509250925092565b5f60ff82169050919050565b610ca381610c8e565b82525050565b5f602082019050610cbc5f830184610c9a565b92915050565b5f819050919050565b5f610ce5610ce0610cdb84610b18565b610cc2565b610b18565b9050919050565b5f610cf682610ccb565b9050919050565b5f610d0782610cec565b9050919050565b610d1781610cfd565b82525050565b5f602082019050610d305f830184610d0e565b92915050565b5f60208284031215610d4b57610d4a610b10565b5b5f610d5884828501610b5e565b91505092915050565b5f8060408385031215610d7757610d76610b10565b5b5f610d8485828601610b5e565b9250506020610d9585828601610b5e565b9150509250929050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610ddd82610a9f565b810181811067ffffffffffffffff82111715610dfc57610dfb610da7565b5b80604052505050565b5f610e0e610b07565b9050610e1a8282610dd4565b919050565b5f67ffffffffffffffff821115610e3957610e38610da7565b5b610e4282610a9f565b9050602081019050919050565b5f610e61610e5c84610e1f565b610e05565b905082815260208101848484011115610e7d57610e7c610da3565b5b610e88848285610a77565b509392505050565b5f82601f830112610ea457610ea3610d9f565b5b8151610eb4848260208601610e4f565b91505092915050565b5f60208284031215610ed257610ed1610b10565b5b5f82015167ffffffffffffffff811115610eef57610eee610b14565b5b610efb84828501610e90565b91505092915050565b610f0d81610b37565b82525050565b5f606082019050610f265f830186610f04565b610f336020830185610f04565b610f406040830184610c16565b949350505050565b610f5181610be3565b8114610f5b575f80fd5b50565b5f81519050610f6c81610f48565b92915050565b5f60208284031215610f8757610f86610b10565b5b5f610f9484828501610f5e565b91505092915050565b5f81519050610fab81610b7b565b92915050565b5f60208284031215610fc657610fc5610b10565b5b5f610fd384828501610f9d565b91505092915050565b5f608082019050610fef5f830187610f04565b610ffc6020830186610f04565b6110096040830185610f04565b6110166060830184610c16565b95945050505050565b61102881610c8e565b8114611032575f80fd5b50565b5f815190506110438161101f565b92915050565b5f6020828403121561105e5761105d610b10565b5b5f61106b84828501611035565b91505092915050565b5f6020820190506110875f830184610f04565b92915050565b7f6f6e6c79455243532063616e2063616c6c20746869732066756e6374696f6e005f82015250565b5f6110c1601f83610a67565b91506110cc8261108d565b602082019050919050565b5f6020820190508181035f8301526110ee816110b5565b9050919050565b5f6040820190506111085f830185610f04565b6111156020830184610f04565b939250505056fea2646970667358221220cec5a5af47cfcd60e2d202eea1f7f888b75eed409b14de7a36304f96dbddba8264736f6c63430008180033

Deployed Bytecode

0x608060405234801561000f575f80fd5b50600436106100a7575f3560e01c806337225be01161006f57806337225be01461016557806370a082311461018357806395d89b41146101b3578063a9059cbb146101d1578063bd48c03c14610201578063dd62ed3e1461021d576100a7565b806306fdde03146100ab578063095ea7b3146100c957806318160ddd146100f957806323b872dd14610117578063313ce56714610147575b5f80fd5b6100b361024d565b6040516100c09190610ae7565b60405180910390f35b6100e360048036038101906100de9190610ba5565b6102e3565b6040516100f09190610bfd565b60405180910390f35b610101610400565b60405161010e9190610c25565b60405180910390f35b610131600480360381019061012c9190610c3e565b610493565b60405161013e9190610bfd565b60405180910390f35b61014f6105ac565b60405161015c9190610ca9565b60405180910390f35b61016d61063f565b60405161017a9190610d1d565b60405180910390f35b61019d60048036038101906101989190610d36565b610662565b6040516101aa9190610c25565b60405180910390f35b6101bb610702565b6040516101c89190610ae7565b60405180910390f35b6101eb60048036038101906101e69190610ba5565b610798565b6040516101f89190610bfd565b60405180910390f35b61021b60048036038101906102169190610c3e565b6108b5565b005b61023760048036038101906102329190610d61565b6109b3565b6040516102449190610c25565b60405180910390f35b60605f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff1660e01b81526004015f60405180830381865afa1580156102b6573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906102de9190610ebd565b905090565b5f805f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8e5e4aa610328610a56565b86866040518463ffffffff1660e01b815260040161034893929190610f13565b6020604051808303815f875af1158015610364573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103889190610f72565b90508373ffffffffffffffffffffffffffffffffffffffff166103a9610a56565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516103ee9190610c25565b60405180910390a38091505092915050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d502f526040518163ffffffff1660e01b8152600401602060405180830381865afa15801561046a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061048e9190610fb1565b905090565b5f805f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd71105d6104d8610a56565b8787876040518563ffffffff1660e01b81526004016104fa9493929190610fdc565b6020604051808303815f875af1158015610516573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053a9190610f72565b90508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516105999190610c25565b60405180910390a3809150509392505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166332424aa36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610616573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061063a9190611049565b905090565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d93db24f836040518263ffffffff1660e01b81526004016106bc9190611074565b602060405180830381865afa1580156106d7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106fb9190610fb1565b9050919050565b60605f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b81526004015f60405180830381865afa15801561076b573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906107939190610ebd565b905090565b5f805f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639db5dbe46107dd610a56565b86866040518463ffffffff1660e01b81526004016107fd93929190610f13565b6020604051808303815f875af1158015610819573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083d9190610f72565b90508373ffffffffffffffffffffffffffffffffffffffff1661085e610a56565b73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516108a39190610c25565b60405180910390a38091505092915050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108f3610a56565b73ffffffffffffffffffffffffffffffffffffffff1614610949576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610940906110d7565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516109a69190610c25565b60405180910390a3505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e84846040518363ffffffff1660e01b8152600401610a0f9291906110f5565b602060405180830381865afa158015610a2a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a4e9190610fb1565b905092915050565b5f33905090565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015610a94578082015181840152602081019050610a79565b5f8484015250505050565b5f601f19601f8301169050919050565b5f610ab982610a5d565b610ac38185610a67565b9350610ad3818560208601610a77565b610adc81610a9f565b840191505092915050565b5f6020820190508181035f830152610aff8184610aaf565b905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610b4182610b18565b9050919050565b610b5181610b37565b8114610b5b575f80fd5b50565b5f81359050610b6c81610b48565b92915050565b5f819050919050565b610b8481610b72565b8114610b8e575f80fd5b50565b5f81359050610b9f81610b7b565b92915050565b5f8060408385031215610bbb57610bba610b10565b5b5f610bc885828601610b5e565b9250506020610bd985828601610b91565b9150509250929050565b5f8115159050919050565b610bf781610be3565b82525050565b5f602082019050610c105f830184610bee565b92915050565b610c1f81610b72565b82525050565b5f602082019050610c385f830184610c16565b92915050565b5f805f60608486031215610c5557610c54610b10565b5b5f610c6286828701610b5e565b9350506020610c7386828701610b5e565b9250506040610c8486828701610b91565b9150509250925092565b5f60ff82169050919050565b610ca381610c8e565b82525050565b5f602082019050610cbc5f830184610c9a565b92915050565b5f819050919050565b5f610ce5610ce0610cdb84610b18565b610cc2565b610b18565b9050919050565b5f610cf682610ccb565b9050919050565b5f610d0782610cec565b9050919050565b610d1781610cfd565b82525050565b5f602082019050610d305f830184610d0e565b92915050565b5f60208284031215610d4b57610d4a610b10565b5b5f610d5884828501610b5e565b91505092915050565b5f8060408385031215610d7757610d76610b10565b5b5f610d8485828601610b5e565b9250506020610d9585828601610b5e565b9150509250929050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610ddd82610a9f565b810181811067ffffffffffffffff82111715610dfc57610dfb610da7565b5b80604052505050565b5f610e0e610b07565b9050610e1a8282610dd4565b919050565b5f67ffffffffffffffff821115610e3957610e38610da7565b5b610e4282610a9f565b9050602081019050919050565b5f610e61610e5c84610e1f565b610e05565b905082815260208101848484011115610e7d57610e7c610da3565b5b610e88848285610a77565b509392505050565b5f82601f830112610ea457610ea3610d9f565b5b8151610eb4848260208601610e4f565b91505092915050565b5f60208284031215610ed257610ed1610b10565b5b5f82015167ffffffffffffffff811115610eef57610eee610b14565b5b610efb84828501610e90565b91505092915050565b610f0d81610b37565b82525050565b5f606082019050610f265f830186610f04565b610f336020830185610f04565b610f406040830184610c16565b949350505050565b610f5181610be3565b8114610f5b575f80fd5b50565b5f81519050610f6c81610f48565b92915050565b5f60208284031215610f8757610f86610b10565b5b5f610f9484828501610f5e565b91505092915050565b5f81519050610fab81610b7b565b92915050565b5f60208284031215610fc657610fc5610b10565b5b5f610fd384828501610f9d565b91505092915050565b5f608082019050610fef5f830187610f04565b610ffc6020830186610f04565b6110096040830185610f04565b6110166060830184610c16565b95945050505050565b61102881610c8e565b8114611032575f80fd5b50565b5f815190506110438161101f565b92915050565b5f6020828403121561105e5761105d610b10565b5b5f61106b84828501611035565b91505092915050565b5f6020820190506110875f830184610f04565b92915050565b7f6f6e6c79455243532063616e2063616c6c20746869732066756e6374696f6e005f82015250565b5f6110c1601f83610a67565b91506110cc8261108d565b602082019050919050565b5f6020820190508181035f8301526110ee816110b5565b9050919050565b5f6040820190506111085f830185610f04565b6111156020830184610f04565b939250505056fea2646970667358221220cec5a5af47cfcd60e2d202eea1f7f888b75eed409b14de7a36304f96dbddba8264736f6c63430008180033

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.