ETH Price: $3,185.23 (+4.67%)

Contract

0xaFEEb2C497bc785BaCA88eDCA7F9e5cBac9BDf96
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...215249932024-12-31 20:59:4713 days ago1735678787IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.000382048.3
Approve199638982024-05-27 21:29:47231 days ago1716845387IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0011362123.34530017
Approve194520862024-03-17 4:06:47303 days ago1710648407IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0011221823.08555576
Withdraw194143522024-03-11 20:51:47308 days ago1710190307IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0021346170.02625111
Set Approval For...194030572024-03-10 6:58:35310 days ago1710053915IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0023592651.26822241
Set Approval For...192971402024-02-24 11:26:47325 days ago1708774007IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0011309524.57630239
Approve192967392024-02-24 10:06:23325 days ago1708769183IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0015592632.07712755
Set Approval For...192935242024-02-23 23:19:59325 days ago1708730399IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0013555129.45613834
Set Approval For...192815912024-02-22 7:11:59327 days ago1708585919IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0015765134.25859369
Approve192793982024-02-21 23:47:59327 days ago1708559279IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0021655344.54907404
Approve192765872024-02-21 14:19:59327 days ago1708525199IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0029538860.76704697
Approve192754592024-02-21 10:32:35328 days ago1708511555IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0017579236.16391509
Approve192729772024-02-21 2:08:47328 days ago1708481327IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0019918140.92496394
Approve192729612024-02-21 2:05:35328 days ago1708481135IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0019115939.32523808
Approve192718032024-02-20 22:12:11328 days ago1708467131IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0032605867.0764867
Mint192718022024-02-20 22:11:59328 days ago1708467119IN
0xaFEEb2C4...Bac9BDf96
0.04 ETH0.008476471.96201097
Mint192717632024-02-20 22:03:59328 days ago1708466639IN
0xaFEEb2C4...Bac9BDf96
0.04 ETH0.006710658.43436226
Approve192716782024-02-20 21:46:23328 days ago1708465583IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0023991749.35553802
Mint192716112024-02-20 21:32:59328 days ago1708464779IN
0xaFEEb2C4...Bac9BDf96
0.01 ETH0.0020023734.17839915
Approve192715572024-02-20 21:21:59328 days ago1708464119IN
0xaFEEb2C4...Bac9BDf96
0 ETH0.0018237437.47166749
Mint192715292024-02-20 21:16:11328 days ago1708463771IN
0xaFEEb2C4...Bac9BDf96
0.005 ETH0.0014108834.00868797
Mint192715122024-02-20 21:12:47328 days ago1708463567IN
0xaFEEb2C4...Bac9BDf96
0.01 ETH0.0019105832.61168504
Mint192714502024-02-20 21:00:23328 days ago1708462823IN
0xaFEEb2C4...Bac9BDf96
0.05 ETH0.0038098132.3441251
Mint192714452024-02-20 20:59:23328 days ago1708462763IN
0xaFEEb2C4...Bac9BDf96
0.005 ETH0.0018751432.00672753
Mint192714342024-02-20 20:57:11328 days ago1708462631IN
0xaFEEb2C4...Bac9BDf96
0.075 ETH0.0050756537.62809587
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
194143522024-03-11 20:51:47308 days ago1710190307
0xaFEEb2C4...Bac9BDf96
0.195 ETH
191966682024-02-10 8:57:11339 days ago1707555431
0xaFEEb2C4...Bac9BDf96
0.0915688 ETH
191962252024-02-10 7:28:11339 days ago1707550091
0xaFEEb2C4...Bac9BDf96
0.8872158 ETH
191949342024-02-10 3:08:11339 days ago1707534491
0xaFEEb2C4...Bac9BDf96
109.3122 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CardsProject

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 800 runs

Other Settings:
paris EvmVersion
File 1 of 8 : CardsProject.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import {Withdrawable} from "@esportsplus/contracts/contracts/utilities/Withdrawable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC404/ERC404.sol";


error InsufficientFunds();
error NotEnoughSupply();


contract CardsProject is ERC404, Withdrawable {
    string public dataURI;
    string public baseTokenURI;
    uint256 public currentPrice = 0.04 ether;
    uint256 public nextPrice = 0.04 ether;


    constructor() ERC404("Cards", "CARDS", 18, 10000, _msgSender()) {
        balanceOf[address(this)] = 10000 * 10 ** 18;
        dataURI = 'https://cardsproject.xyz/assets/cards/';
        setWhitelist(address(this), true);
    }


    function mint(uint256 quantity) external payable {
        uint256 cost = currentPrice * quantity / 1 ether;

        if (msg.value < cost) {
            revert InsufficientFunds();
        }

        _transfer(address(this), _msgSender(), quantity);
    }

    function setDataURI(string memory _dataURI) public onlyOwner {
        dataURI = _dataURI;
    }

    function setNameSymbol(
        string memory _name,
        string memory _symbol
    ) public onlyOwner {
        _setNameSymbol(_name, _symbol);
    }

    function setPrice(uint256 _currentPrice, uint256 _nextPrice) public onlyOwner {
        currentPrice = _currentPrice;
        nextPrice = _nextPrice;
    }

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

    function tokenURI(uint256 id) public view override returns (string memory) {
        if (bytes(baseTokenURI).length > 0) {
            return string.concat(baseTokenURI, Strings.toString(id));
        } else {
            string memory card;
            string memory image;

            uint8 seed = uint8(bytes1(keccak256(abi.encodePacked(id))));

            if (seed <= 160) {
                card = "Club";
                image = "1.png";
            } else if (seed <= 200) {
                card = "Diamond";
                image = "2.png";
            } else if (seed <= 244) {
                card = "Heart";
                image = "3.png";
            } else if (seed <= 252) {
                card = "Spade";
                image = "4.png";
            } else if (seed <= 255) {
                card = "Joker";
                image = "5.png";
            }

            string memory jsonPreImage = string.concat(
                string.concat(
                    string.concat('{"name": "Card #', Strings.toString(id)),
                    '","description":"Empowering connections and revelations through the art of play, cards aren\'t just played but experienced, bridging worlds, stories, and people.","external_url":"https://cardsproject.xyz","image":"'
                ),
                string.concat(dataURI, image)
            );
            string memory jsonPostImage = string.concat(
                '","attributes":[{"trait_type":"Faction","value":"',
                card
            );
            string memory jsonPostTraits = '"}]}';

            return
                string.concat(
                    "data:application/json;utf8,",
                    string.concat(
                        string.concat(jsonPreImage, jsonPostImage),
                        jsonPostTraits
                    )
                );
        }
    }

    function withdraw() public onlyOwner {
        _withdraw(_msgSender(), address(this).balance);
    }
}

File 2 of 8 : Withdrawable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

error AlreadyWithdrawnForThisMonth();
error AmountExceedsBalance(string method);
error TransferFailed();
error WithdrawLockupActive();

abstract contract Withdrawable {

    bool private _locked;

    mapping(uint256 => bool) private _months;


    function _withdraw(address receiver, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AmountExceedsBalance({ method: '_withdraw' });
        }

        (bool success, ) = payable(receiver).call{value: amount}('');

        if (!success) {
            revert TransferFailed();
        }
    }

    // Withdraw x% once per month
    function _withdrawOncePerMonth(address receiver, uint256 bips, uint256 deployedAt) internal {
        unchecked {
            uint256 amount = address(this).balance;
            uint256 month = ((block.timestamp - deployedAt) / 4 weeks) + 1;

            if (_months[month]) {
                revert AlreadyWithdrawnForThisMonth();
            }

            _months[month] = true;

            _withdraw(receiver, (amount * bips) / 10000);
        }
    }

    // Withdraw With x% Lockup
    // - x% available for withdraw on sale
    // - x% held by contract until `timestamp`
    function _withdrawWithLockup(address receiver, uint256 bips, uint256 unlockAt) internal {
        unchecked {
            uint256 amount = address(this).balance;

            if (amount < ((amount * bips) / 10000)) {
                revert AmountExceedsBalance({ method: '_withdrawWithLockup' });
            }

            // x% can be withdrawn to kickstart project; Remaining x% will be
            // held throughout `lockup` period
            if (!_locked) {
                amount = (amount * bips) / 10000;
                _locked = true;
            }
            else if (block.timestamp < unlockAt) {
                revert WithdrawLockupActive();
            }

            _withdraw(receiver, amount);
        }
    }
}

File 3 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

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

File 5 of 8 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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 towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (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 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                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.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 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.

            uint256 twos = denominator & (0 - denominator);
            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 (unsignedRoundsUp(rounding) && 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
     * towards zero.
     *
     * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 6 of 8 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @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 8 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @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), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(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) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        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 bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 8 of 8 : ERC404.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";

error Unauthorized();
error InvalidOwner();

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

/// @dev    In order to support full functionality of ERC20 and ERC721
///         supply assumptions are made that slightly constraint usage.
///         Ensure decimals are sufficiently large (standard 18 recommended)
///         as ids are effectively encoded in the lowest range of amounts.
///
///         NFTs are spent on ERC20 functions in a FILO queue, this is by
///         design.
abstract contract ERC404 is Ownable {
    event ERC20Transfer(address indexed from, address indexed to, uint256 amount);
    event Approval(address indexed owner, address indexed spender, uint256 amount);
    event Transfer(address indexed from, address indexed to, uint256 indexed id);
    event ERC721Approval(address indexed owner, address indexed spender, uint256 indexed id);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    error NotFound();
    error AlreadyExists();
    error InvalidRecipient();
    error InvalidSender();
    error UnsafeRecipient();

    /// @dev Token name
    string public name;

    /// @dev Token symbol
    string public symbol;

    /// @dev Decimals for fractional representation
    uint8 public immutable decimals;

    /// @dev Total supply in fractionalized representation
    uint256 public immutable totalSupply;

    /// @dev Current mint counter, monotonically increasing to ensure accurate ownership
    uint256 public minted;

    /// @dev Balance of user in fractional representation
    mapping(address => uint256) public balanceOf;

    /// @dev Allowance of user in fractional representation
    mapping(address => mapping(address => uint256)) public allowance;

    /// @dev Approval in native representaion
    mapping(uint256 => address) public getApproved;

    /// @dev Approval for all in native representation
    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /// @dev Owner of id in native representation
    mapping(uint256 => address) internal _ownerOf;

    /// @dev Array of owned ids in native representation
    mapping(address => uint256[]) internal _owned;

    /// @dev Tracks indices for the _owned mapping
    mapping(uint256 => uint256) internal _ownedIndex;

    /// @dev Addresses whitelisted from minting / burning for gas savings (pairs, routers, etc)
    mapping(address => bool) public whitelist;

    // Constructor
    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals,
        uint256 _totalNativeSupply,
        address _owner
    ) Ownable(_owner) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
        totalSupply = _totalNativeSupply * (10 ** decimals);
    }

    /// @notice Initialization function to set pairs / etc
    ///         saving gas by avoiding mint / burn on unnecessary targets
    function setWhitelist(address target, bool state) public onlyOwner {
        whitelist[target] = state;
    }

    /// @notice Function to find owner of a given native token
    function ownerOf(uint256 id) public view virtual returns (address owner) {
        owner = _ownerOf[id];

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

    /// @notice tokenURI must be implemented by child contract
    function tokenURI(uint256 id) public view virtual returns (string memory);

    /// @notice Function for token approvals
    /// @dev This function assumes id / native if amount less than or equal to current max id
    function approve(
        address spender,
        uint256 amountOrId
    ) public virtual returns (bool) {
        if (amountOrId <= minted && amountOrId > 0) {
            address owner = _ownerOf[amountOrId];

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

            getApproved[amountOrId] = spender;

            emit Approval(owner, spender, amountOrId);
        } else {
            allowance[msg.sender][spender] = amountOrId;

            emit Approval(msg.sender, spender, amountOrId);
        }

        return true;
    }

    /// @notice Function native approvals
    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    /// @notice Function for mixed transfers
    /// @dev This function assumes id / native if amount less than or equal to current max id
    function transferFrom(
        address from,
        address to,
        uint256 amountOrId
    ) public virtual {
        if (amountOrId <= minted) {
            if (from != _ownerOf[amountOrId]) {
                revert InvalidSender();
            }

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

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

            balanceOf[from] -= _getUnit();

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

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

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

            emit Transfer(from, to, amountOrId);
            emit ERC20Transfer(from, to, _getUnit());
        } else {
            uint256 allowed = allowance[from][msg.sender];

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

            _transfer(from, to, amountOrId);
        }
    }

    /// @notice Function for fractional transfers
    function transfer(
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        return _transfer(msg.sender, to, amount);
    }

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

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

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

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

    /// @notice Internal function for fractional transfers
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal returns (bool) {
        uint256 unit = _getUnit();
        uint256 balanceBeforeSender = balanceOf[from];
        uint256 balanceBeforeReceiver = balanceOf[to];

        balanceOf[from] -= amount;

        unchecked {
            balanceOf[to] += amount;
        }

        // Skip burn for certain addresses to save gas
        if (!whitelist[from]) {
            uint256 tokens_to_burn = (balanceBeforeSender / unit) -
                (balanceOf[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 = (balanceOf[to] / unit) -
                (balanceBeforeReceiver / unit);
            for (uint256 i = 0; i < tokens_to_mint; i++) {
                _mint(to);
            }
        }

        emit ERC20Transfer(from, to, amount);
        return true;
    }

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

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

        unchecked {
            minted++;
        }

        uint256 id = minted;

        if (_ownerOf[id] != address(0)) {
            revert AlreadyExists();
        }

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

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

    function _burn(address from) internal virtual {
        if (from == address(0)) {
            revert InvalidSender();
        }

        uint256 id = _owned[from][_owned[from].length - 1];
        _owned[from].pop();
        delete _ownedIndex[id];
        delete _ownerOf[id];
        delete getApproved[id];

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

    function _setNameSymbol(
        string memory _name,
        string memory _symbol
    ) internal {
        name = _name;
        symbol = _symbol;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[{"internalType":"string","name":"method","type":"string"}],"name":"AmountExceedsBalance","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":"amount","type":"uint256"}],"name":"ERC20Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ERC721Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_dataURI","type":"string"}],"name":"setDataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"setNameSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_currentPrice","type":"uint256"},{"internalType":"uint256","name":"_nextPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","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":"amountOrId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052668e1bc9bf040000601055668e1bc9bf0400006011553480156200002757600080fd5b5060405180604001604052806005815260200164436172647360d81b81525060405180604001604052806005815260200164434152445360d81b8152506012612710620000796200015b60201b60201c565b806001600160a01b038116620000aa57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000b5816200015f565b506001620000c48682620002bc565b506002620000d38582620002bc565b5060ff83166080819052620000ea90600a6200049d565b620000f69083620004b5565b60a05250503060009081526004602090815260409182902069021e19e0c9bab240000090558151606081019092526026808352919450909250620029419150830139600e90620001479082620002bc565b5062000155306001620001af565b620004cf565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001b9620001e4565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314620002135760405163118cdaa760e01b8152336004820152602401620000a1565b565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200024057607f821691505b6020821081036200026157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002b7576000816000526020600020601f850160051c81016020861015620002925750805b601f850160051c820191505b81811015620002b3578281556001016200029e565b5050505b505050565b81516001600160401b03811115620002d857620002d862000215565b620002f081620002e984546200022b565b8462000267565b602080601f8311600181146200032857600084156200030f5750858301515b600019600386901b1c1916600185901b178555620002b3565b600085815260208120601f198616915b82811015620003595788860151825594840194600190910190840162000338565b5085821015620003785787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620003df578160001904821115620003c357620003c362000388565b80851615620003d157918102915b93841c9390800290620003a3565b509250929050565b600082620003f85750600162000497565b81620004075750600062000497565b81600181146200042057600281146200042b576200044b565b600191505062000497565b60ff8411156200043f576200043f62000388565b50506001821b62000497565b5060208310610133831016604e8410600b841016171562000470575081810a62000497565b6200047c83836200039e565b806000190482111562000493576200049362000388565b0290505b92915050565b6000620004ae60ff841683620003e7565b9392505050565b808202811582820484141762000497576200049762000388565b60805160a051612445620004fc60003960006102a301526000818161032701526113cb01526124456000f3fe6080604052600436106101e35760003560e01c806395d89b4111610102578063d547cfb711610095578063ef9089d611610064578063ef9089d6146105fc578063f28ca1dd14610612578063f2fde38b14610627578063f7d975771461064757600080fd5b8063d547cfb714610554578063dd62ed3e14610569578063e0df5b6f146105a1578063e985e9c5146105c157600080fd5b8063a22cb465116100d1578063a22cb465146104d4578063a9059cbb146104f4578063b88d4fde14610514578063c87b56dd1461053457600080fd5b806395d89b41146104665780639b19251a1461047b5780639d1b464a146104ab578063a0712d68146104c157600080fd5b806342842e0e1161017a5780636352211e116101495780636352211e146103e657806370a0823114610406578063715018a6146104335780638da5cb5b1461044857600080fd5b806342842e0e146103705780634f02c42014610390578063504334c2146103a657806353d6fd59146103c657600080fd5b806318d217c3116101b657806318d217c3146102d357806323b872dd146102f5578063313ce567146103155780633ccfd60b1461035b57600080fd5b806306fdde03146101e8578063081812fc14610213578063095ea7b31461026157806318160ddd14610291575b600080fd5b3480156101f457600080fd5b506101fd610667565b60405161020a9190611aab565b60405180910390f35b34801561021f57600080fd5b5061024961022e366004611ade565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161020a565b34801561026d57600080fd5b5061028161027c366004611b0e565b6106f5565b604051901515815260200161020a565b34801561029d57600080fd5b506102c57f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161020a565b3480156102df57600080fd5b506102f36102ee366004611bdb565b610846565b005b34801561030157600080fd5b506102f3610310366004611c18565b61085e565b34801561032157600080fd5b506103497f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff909116815260200161020a565b34801561036757600080fd5b506102f3610be7565b34801561037c57600080fd5b506102f361038b366004611c18565b610bfb565b34801561039c57600080fd5b506102c560035481565b3480156103b257600080fd5b506102f36103c1366004611c54565b610cd0565b3480156103d257600080fd5b506102f36103e1366004611cb8565b610ce2565b3480156103f257600080fd5b50610249610401366004611ade565b610d15565b34801561041257600080fd5b506102c5610421366004611cf4565b60046020526000908152604090205481565b34801561043f57600080fd5b506102f3610d50565b34801561045457600080fd5b506000546001600160a01b0316610249565b34801561047257600080fd5b506101fd610d62565b34801561048757600080fd5b50610281610496366004611cf4565b600b6020526000908152604090205460ff1681565b3480156104b757600080fd5b506102c560105481565b6102f36104cf366004611ade565b610d6f565b3480156104e057600080fd5b506102f36104ef366004611cb8565b610dc0565b34801561050057600080fd5b5061028161050f366004611b0e565b610e2c565b34801561052057600080fd5b506102f361052f366004611d0f565b610e40565b34801561054057600080fd5b506101fd61054f366004611ade565b610f03565b34801561056057600080fd5b506101fd611313565b34801561057557600080fd5b506102c5610584366004611daa565b600560209081526000928352604080842090915290825290205481565b3480156105ad57600080fd5b506102f36105bc366004611bdb565b611320565b3480156105cd57600080fd5b506102816105dc366004611daa565b600760209081526000928352604080842090915290825290205460ff1681565b34801561060857600080fd5b506102c560115481565b34801561061e57600080fd5b506101fd611334565b34801561063357600080fd5b506102f3610642366004611cf4565b611341565b34801561065357600080fd5b506102f3610662366004611ddd565b611384565b6001805461067490611dff565b80601f01602080910402602001604051908101604052809291908181526020018280546106a090611dff565b80156106ed5780601f106106c2576101008083540402835291602001916106ed565b820191906000526020600020905b8154815290600101906020018083116106d057829003601f168201915b505050505081565b600060035482111580156107095750600082115b156107e0576000828152600860205260409020546001600160a01b031633811480159061075a57506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b15610777576040516282b42960e81b815260040160405180910390fd5b60008381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35061083c565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b61084e611397565b600e61085a8282611e89565b5050565b6003548111610b78576000818152600860205260409020546001600160a01b038481169116146108a157604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166108c857604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061090557506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b801561092857506000818152600660205260409020546001600160a01b03163314155b15610945576040516282b42960e81b815260040160405180910390fd5b61094d6113c4565b6001600160a01b03841660009081526004602052604081208054909190610975908490611f5f565b9091555061098390506113c4565b6001600160a01b03808416600081815260046020908152604080832080549096019095558582526008815284822080546001600160a01b0319908116909417905560068152848220805490931690925591861682526009905290812080546109ed90600190611f5f565b815481106109fd576109fd611f72565b60009182526020808320909101546001600160a01b0387168352600982526040808420868552600a90935290922054815492935083928110610a4157610a41611f72565b60009182526020808320909101929092556001600160a01b0386168152600990915260409020805480610a7657610a76611f88565b600082815260208082208301600019908101839055909201909255838252600a8152604080832054848452818420556001600160a01b038616808452600983529083208054600181810183558286529385200186905592529054610ada9190611f5f565b6000838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610b616113c4565b60405190815260200160405180910390a350505050565b6001600160a01b03831660009081526005602090815260408083203384529091529020546000198114610bd457610baf8282611f5f565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b610bdf8484846113f6565b50505b505050565b610bef611397565b610bf933476115a4565b565b610c0683838361085e565b6001600160a01b0382163b15801590610cb25750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca59190611f9e565b6001600160e01b03191614155b15610be257604051633da6393160e01b815260040160405180910390fd5b610cd8611397565b61085a8282611669565b610cea611397565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000818152600860205260409020546001600160a01b031680610d4b5760405163c5723b5160e01b815260040160405180910390fd5b919050565b610d58611397565b610bf96000611682565b6002805461067490611dff565b6000670de0b6b3a764000082601054610d889190611fc8565b610d929190611fdf565b905080341015610db55760405163356680b760e01b815260040160405180910390fd5b610be23033846113f6565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610e393384846113f6565b9392505050565b610e4b85858561085e565b6001600160a01b0384163b15801590610ee55750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610e959033908a90899089908990600401612001565b6020604051808303816000875af1158015610eb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed89190611f9e565b6001600160e01b03191614155b15610bdf57604051633da6393160e01b815260040160405180910390fd5b60606000600f8054610f1490611dff565b90501115610f4e57600f610f27836116d2565b604051602001610f38929190612055565b6040516020818303038152906040529050919050565b606080600084604051602001610f6691815260200190565b6040516020818303038152906040528051906020012060f81c905060a08160ff1611610fe8576040518060400160405280600481526020016321b63ab160e11b81525092506040518060400160405280600581526020017f312e706e6700000000000000000000000000000000000000000000000000000081525091506111e4565b60c88160ff1611611068576040518060400160405280600781526020017f4469616d6f6e640000000000000000000000000000000000000000000000000081525092506040518060400160405280600581526020017f322e706e6700000000000000000000000000000000000000000000000000000081525091506111e4565b60f48160ff16116110e8576040518060400160405280600581526020017f486561727400000000000000000000000000000000000000000000000000000081525092506040518060400160405280600581526020017f332e706e6700000000000000000000000000000000000000000000000000000081525091506111e4565b60fc8160ff1611611168576040518060400160405280600581526020017f537061646500000000000000000000000000000000000000000000000000000081525092506040518060400160405280600581526020017f342e706e6700000000000000000000000000000000000000000000000000000081525091506111e4565b60ff8160ff16116111e4576040518060400160405280600581526020017f4a6f6b657200000000000000000000000000000000000000000000000000000081525092506040518060400160405280600581526020017f352e706e6700000000000000000000000000000000000000000000000000000081525091505b60006111ef866116d2565b6040516020016111ff91906120dc565b60408051601f198184030181529082905261121c91602001612121565b604051602081830303815290604052600e8460405160200161123f929190612055565b60408051601f198184030181529082905261125d9291602001612246565b6040516020818303038152906040529050600084604051602001611281919061226c565b60408051601f1981840301815282820182526004835263227d5d7d60e01b60208481019190915291519093506112bb918591859101612246565b60408051601f19818403018152908290526112da918390602001612246565b60408051601f19818403018152908290526112f7916020016122d7565b6040516020818303038152906040529650505050505050919050565b600f805461067490611dff565b611328611397565b600f61085a8282611e89565b600e805461067490611dff565b611349611397565b6001600160a01b03811661137857604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61138181611682565b50565b61138c611397565b601091909155601155565b6000546001600160a01b03163314610bf95760405163118cdaa760e01b815233600482015260240161136f565b60006113f17f0000000000000000000000000000000000000000000000000000000000000000600a612400565b905090565b6000806114016113c4565b6001600160a01b038087166000818152600460205260408082208054948a168352908220549282529394509192909186919061143d8386611f5f565b90915550506001600160a01b03808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff166114cf576001600160a01b03871660009081526004602052604081205461149a908590611fdf565b6114a48585611fdf565b6114ae9190611f5f565b905060005b818110156114cc576114c489611772565b6001016114b3565b50505b6001600160a01b0386166000908152600b602052604090205460ff1661154a5760006114fb8483611fdf565b6001600160a01b03881660009081526004602052604090205461151f908690611fdf565b6115299190611f5f565b905060005b818110156115475761153f8861189a565b60010161152e565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161158f91815260200190565b60405180910390a35060019695505050505050565b804710156115f557604051637249410960e01b815260206004820152600960248201527f5f77697468647261770000000000000000000000000000000000000000000000604482015260640161136f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611642576040519150601f19603f3d011682016040523d82523d6000602084013e611647565b606091505b5050905080610be2576040516312171d8360e31b815260040160405180910390fd5b60016116758382611e89565b506002610be28282611e89565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060006116df836119a5565b600101905060008167ffffffffffffffff8111156116ff576116ff611b38565b6040519080825280601f01601f191660200182016040528015611729576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461173357509392505050565b6001600160a01b03811661179957604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b038116600090815260096020526040812080546117bf90600190611f5f565b815481106117cf576117cf611f72565b9060005260206000200154905060096000836001600160a01b03166001600160a01b0316815260200190815260200160002080548061181057611810611f88565b600082815260208082208301600019908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0381166118c157604051634e46966960e11b815260040160405180910390fd5b60038054600101908190556000818152600860205260409020546001600160a01b0316156119025760405163119b4fd360e11b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b0319166001600160a01b03871690811790915580845260098352908320805460018181018355828652938520018590559252905461195a9190611f5f565b6000828152600a602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106119ee577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611a1a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611a3857662386f26fc10000830492506010015b6305f5e1008310611a50576305f5e100830492506008015b6127108310611a6457612710830492506004015b60648310611a76576064830492506002015b600a83106108405760010192915050565b60005b83811015611aa2578181015183820152602001611a8a565b50506000910152565b6020815260008251806020840152611aca816040850160208701611a87565b601f01601f19169190910160400192915050565b600060208284031215611af057600080fd5b5035919050565b80356001600160a01b0381168114610d4b57600080fd5b60008060408385031215611b2157600080fd5b611b2a83611af7565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611b5f57600080fd5b813567ffffffffffffffff80821115611b7a57611b7a611b38565b604051601f8301601f19908116603f01168101908282118183101715611ba257611ba2611b38565b81604052838152866020858801011115611bbb57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215611bed57600080fd5b813567ffffffffffffffff811115611c0457600080fd5b611c1084828501611b4e565b949350505050565b600080600060608486031215611c2d57600080fd5b611c3684611af7565b9250611c4460208501611af7565b9150604084013590509250925092565b60008060408385031215611c6757600080fd5b823567ffffffffffffffff80821115611c7f57600080fd5b611c8b86838701611b4e565b93506020850135915080821115611ca157600080fd5b50611cae85828601611b4e565b9150509250929050565b60008060408385031215611ccb57600080fd5b611cd483611af7565b915060208301358015158114611ce957600080fd5b809150509250929050565b600060208284031215611d0657600080fd5b610e3982611af7565b600080600080600060808688031215611d2757600080fd5b611d3086611af7565b9450611d3e60208701611af7565b935060408601359250606086013567ffffffffffffffff80821115611d6257600080fd5b818801915088601f830112611d7657600080fd5b813581811115611d8557600080fd5b896020828501011115611d9757600080fd5b9699959850939650602001949392505050565b60008060408385031215611dbd57600080fd5b611dc683611af7565b9150611dd460208401611af7565b90509250929050565b60008060408385031215611df057600080fd5b50508035926020909101359150565b600181811c90821680611e1357607f821691505b602082108103611e3357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610be2576000816000526020600020601f850160051c81016020861015611e625750805b601f850160051c820191505b81811015611e8157828155600101611e6e565b505050505050565b815167ffffffffffffffff811115611ea357611ea3611b38565b611eb781611eb18454611dff565b84611e39565b602080601f831160018114611eec5760008415611ed45750858301515b600019600386901b1c1916600185901b178555611e81565b600085815260208120601f198616915b82811015611f1b57888601518255948401946001909101908401611efc565b5085821015611f395787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8181038181111561084057610840611f49565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215611fb057600080fd5b81516001600160e01b031981168114610e3957600080fd5b808202811582820484141761084057610840611f49565b600082611ffc57634e487b7160e01b600052601260045260246000fd5b500490565b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b600080845461206381611dff565b6001828116801561207b5760018114612090576120bf565b60ff19841687528215158302870194506120bf565b8860005260208060002060005b858110156120b65781548a82015290840190820161209d565b50505082870194505b5050505083516120d3818360208801611a87565b01949350505050565b7f7b226e616d65223a202243617264202300000000000000000000000000000000815260008251612114816010850160208701611a87565b9190910160100192915050565b60008251612133818460208701611a87565b7f222c226465736372697074696f6e223a22456d706f776572696e6720636f6e6e9201918252507f656374696f6e7320616e6420726576656c6174696f6e73207468726f7567682060208201527f74686520617274206f6620706c61792c206361726473206172656e2774206a7560408201527f737420706c617965642062757420657870657269656e6365642c20627269646760608201527f696e6720776f726c64732c2073746f726965732c20616e642070656f706c652e60808201527f222c2265787465726e616c5f75726c223a2268747470733a2f2f63617264737060a08201527f726f6a6563742e78797a222c22696d616765223a22000000000000000000000060c082015260d501919050565b60008351612258818460208801611a87565b8351908301906120d3818360208801611a87565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a224681527f616374696f6e222c2276616c7565223a220000000000000000000000000000006020820152600082516122ca816031850160208701611a87565b9190910160310192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081526000825161230f81601b850160208701611a87565b91909101601b0192915050565b600181815b8085111561235757816000190482111561233d5761233d611f49565b8085161561234a57918102915b93841c9390800290612321565b509250929050565b60008261236e57506001610840565b8161237b57506000610840565b8160018114612391576002811461239b576123b7565b6001915050610840565b60ff8411156123ac576123ac611f49565b50506001821b610840565b5060208310610133831016604e8410600b84101617156123da575081810a610840565b6123e4838361231c565b80600019048211156123f8576123f8611f49565b029392505050565b6000610e3960ff84168361235f56fea264697066735822122017d1852738fab9ab6eded414e78efce51d8fc9b2fe6df948ddfea353670bb6f264736f6c6343000817003368747470733a2f2f636172647370726f6a6563742e78797a2f6173736574732f63617264732f

Deployed Bytecode

0x6080604052600436106101e35760003560e01c806395d89b4111610102578063d547cfb711610095578063ef9089d611610064578063ef9089d6146105fc578063f28ca1dd14610612578063f2fde38b14610627578063f7d975771461064757600080fd5b8063d547cfb714610554578063dd62ed3e14610569578063e0df5b6f146105a1578063e985e9c5146105c157600080fd5b8063a22cb465116100d1578063a22cb465146104d4578063a9059cbb146104f4578063b88d4fde14610514578063c87b56dd1461053457600080fd5b806395d89b41146104665780639b19251a1461047b5780639d1b464a146104ab578063a0712d68146104c157600080fd5b806342842e0e1161017a5780636352211e116101495780636352211e146103e657806370a0823114610406578063715018a6146104335780638da5cb5b1461044857600080fd5b806342842e0e146103705780634f02c42014610390578063504334c2146103a657806353d6fd59146103c657600080fd5b806318d217c3116101b657806318d217c3146102d357806323b872dd146102f5578063313ce567146103155780633ccfd60b1461035b57600080fd5b806306fdde03146101e8578063081812fc14610213578063095ea7b31461026157806318160ddd14610291575b600080fd5b3480156101f457600080fd5b506101fd610667565b60405161020a9190611aab565b60405180910390f35b34801561021f57600080fd5b5061024961022e366004611ade565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161020a565b34801561026d57600080fd5b5061028161027c366004611b0e565b6106f5565b604051901515815260200161020a565b34801561029d57600080fd5b506102c57f00000000000000000000000000000000000000000000021e19e0c9bab240000081565b60405190815260200161020a565b3480156102df57600080fd5b506102f36102ee366004611bdb565b610846565b005b34801561030157600080fd5b506102f3610310366004611c18565b61085e565b34801561032157600080fd5b506103497f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff909116815260200161020a565b34801561036757600080fd5b506102f3610be7565b34801561037c57600080fd5b506102f361038b366004611c18565b610bfb565b34801561039c57600080fd5b506102c560035481565b3480156103b257600080fd5b506102f36103c1366004611c54565b610cd0565b3480156103d257600080fd5b506102f36103e1366004611cb8565b610ce2565b3480156103f257600080fd5b50610249610401366004611ade565b610d15565b34801561041257600080fd5b506102c5610421366004611cf4565b60046020526000908152604090205481565b34801561043f57600080fd5b506102f3610d50565b34801561045457600080fd5b506000546001600160a01b0316610249565b34801561047257600080fd5b506101fd610d62565b34801561048757600080fd5b50610281610496366004611cf4565b600b6020526000908152604090205460ff1681565b3480156104b757600080fd5b506102c560105481565b6102f36104cf366004611ade565b610d6f565b3480156104e057600080fd5b506102f36104ef366004611cb8565b610dc0565b34801561050057600080fd5b5061028161050f366004611b0e565b610e2c565b34801561052057600080fd5b506102f361052f366004611d0f565b610e40565b34801561054057600080fd5b506101fd61054f366004611ade565b610f03565b34801561056057600080fd5b506101fd611313565b34801561057557600080fd5b506102c5610584366004611daa565b600560209081526000928352604080842090915290825290205481565b3480156105ad57600080fd5b506102f36105bc366004611bdb565b611320565b3480156105cd57600080fd5b506102816105dc366004611daa565b600760209081526000928352604080842090915290825290205460ff1681565b34801561060857600080fd5b506102c560115481565b34801561061e57600080fd5b506101fd611334565b34801561063357600080fd5b506102f3610642366004611cf4565b611341565b34801561065357600080fd5b506102f3610662366004611ddd565b611384565b6001805461067490611dff565b80601f01602080910402602001604051908101604052809291908181526020018280546106a090611dff565b80156106ed5780601f106106c2576101008083540402835291602001916106ed565b820191906000526020600020905b8154815290600101906020018083116106d057829003601f168201915b505050505081565b600060035482111580156107095750600082115b156107e0576000828152600860205260409020546001600160a01b031633811480159061075a57506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b15610777576040516282b42960e81b815260040160405180910390fd5b60008381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35061083c565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b61084e611397565b600e61085a8282611e89565b5050565b6003548111610b78576000818152600860205260409020546001600160a01b038481169116146108a157604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166108c857604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061090557506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b801561092857506000818152600660205260409020546001600160a01b03163314155b15610945576040516282b42960e81b815260040160405180910390fd5b61094d6113c4565b6001600160a01b03841660009081526004602052604081208054909190610975908490611f5f565b9091555061098390506113c4565b6001600160a01b03808416600081815260046020908152604080832080549096019095558582526008815284822080546001600160a01b0319908116909417905560068152848220805490931690925591861682526009905290812080546109ed90600190611f5f565b815481106109fd576109fd611f72565b60009182526020808320909101546001600160a01b0387168352600982526040808420868552600a90935290922054815492935083928110610a4157610a41611f72565b60009182526020808320909101929092556001600160a01b0386168152600990915260409020805480610a7657610a76611f88565b600082815260208082208301600019908101839055909201909255838252600a8152604080832054848452818420556001600160a01b038616808452600983529083208054600181810183558286529385200186905592529054610ada9190611f5f565b6000838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610b616113c4565b60405190815260200160405180910390a350505050565b6001600160a01b03831660009081526005602090815260408083203384529091529020546000198114610bd457610baf8282611f5f565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b610bdf8484846113f6565b50505b505050565b610bef611397565b610bf933476115a4565b565b610c0683838361085e565b6001600160a01b0382163b15801590610cb25750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca59190611f9e565b6001600160e01b03191614155b15610be257604051633da6393160e01b815260040160405180910390fd5b610cd8611397565b61085a8282611669565b610cea611397565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000818152600860205260409020546001600160a01b031680610d4b5760405163c5723b5160e01b815260040160405180910390fd5b919050565b610d58611397565b610bf96000611682565b6002805461067490611dff565b6000670de0b6b3a764000082601054610d889190611fc8565b610d929190611fdf565b905080341015610db55760405163356680b760e01b815260040160405180910390fd5b610be23033846113f6565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610e393384846113f6565b9392505050565b610e4b85858561085e565b6001600160a01b0384163b15801590610ee55750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610e959033908a90899089908990600401612001565b6020604051808303816000875af1158015610eb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed89190611f9e565b6001600160e01b03191614155b15610bdf57604051633da6393160e01b815260040160405180910390fd5b60606000600f8054610f1490611dff565b90501115610f4e57600f610f27836116d2565b604051602001610f38929190612055565b6040516020818303038152906040529050919050565b606080600084604051602001610f6691815260200190565b6040516020818303038152906040528051906020012060f81c905060a08160ff1611610fe8576040518060400160405280600481526020016321b63ab160e11b81525092506040518060400160405280600581526020017f312e706e6700000000000000000000000000000000000000000000000000000081525091506111e4565b60c88160ff1611611068576040518060400160405280600781526020017f4469616d6f6e640000000000000000000000000000000000000000000000000081525092506040518060400160405280600581526020017f322e706e6700000000000000000000000000000000000000000000000000000081525091506111e4565b60f48160ff16116110e8576040518060400160405280600581526020017f486561727400000000000000000000000000000000000000000000000000000081525092506040518060400160405280600581526020017f332e706e6700000000000000000000000000000000000000000000000000000081525091506111e4565b60fc8160ff1611611168576040518060400160405280600581526020017f537061646500000000000000000000000000000000000000000000000000000081525092506040518060400160405280600581526020017f342e706e6700000000000000000000000000000000000000000000000000000081525091506111e4565b60ff8160ff16116111e4576040518060400160405280600581526020017f4a6f6b657200000000000000000000000000000000000000000000000000000081525092506040518060400160405280600581526020017f352e706e6700000000000000000000000000000000000000000000000000000081525091505b60006111ef866116d2565b6040516020016111ff91906120dc565b60408051601f198184030181529082905261121c91602001612121565b604051602081830303815290604052600e8460405160200161123f929190612055565b60408051601f198184030181529082905261125d9291602001612246565b6040516020818303038152906040529050600084604051602001611281919061226c565b60408051601f1981840301815282820182526004835263227d5d7d60e01b60208481019190915291519093506112bb918591859101612246565b60408051601f19818403018152908290526112da918390602001612246565b60408051601f19818403018152908290526112f7916020016122d7565b6040516020818303038152906040529650505050505050919050565b600f805461067490611dff565b611328611397565b600f61085a8282611e89565b600e805461067490611dff565b611349611397565b6001600160a01b03811661137857604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61138181611682565b50565b61138c611397565b601091909155601155565b6000546001600160a01b03163314610bf95760405163118cdaa760e01b815233600482015260240161136f565b60006113f17f0000000000000000000000000000000000000000000000000000000000000012600a612400565b905090565b6000806114016113c4565b6001600160a01b038087166000818152600460205260408082208054948a168352908220549282529394509192909186919061143d8386611f5f565b90915550506001600160a01b03808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff166114cf576001600160a01b03871660009081526004602052604081205461149a908590611fdf565b6114a48585611fdf565b6114ae9190611f5f565b905060005b818110156114cc576114c489611772565b6001016114b3565b50505b6001600160a01b0386166000908152600b602052604090205460ff1661154a5760006114fb8483611fdf565b6001600160a01b03881660009081526004602052604090205461151f908690611fdf565b6115299190611f5f565b905060005b818110156115475761153f8861189a565b60010161152e565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161158f91815260200190565b60405180910390a35060019695505050505050565b804710156115f557604051637249410960e01b815260206004820152600960248201527f5f77697468647261770000000000000000000000000000000000000000000000604482015260640161136f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611642576040519150601f19603f3d011682016040523d82523d6000602084013e611647565b606091505b5050905080610be2576040516312171d8360e31b815260040160405180910390fd5b60016116758382611e89565b506002610be28282611e89565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060006116df836119a5565b600101905060008167ffffffffffffffff8111156116ff576116ff611b38565b6040519080825280601f01601f191660200182016040528015611729576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461173357509392505050565b6001600160a01b03811661179957604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b038116600090815260096020526040812080546117bf90600190611f5f565b815481106117cf576117cf611f72565b9060005260206000200154905060096000836001600160a01b03166001600160a01b0316815260200190815260200160002080548061181057611810611f88565b600082815260208082208301600019908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0381166118c157604051634e46966960e11b815260040160405180910390fd5b60038054600101908190556000818152600860205260409020546001600160a01b0316156119025760405163119b4fd360e11b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b0319166001600160a01b03871690811790915580845260098352908320805460018181018355828652938520018590559252905461195a9190611f5f565b6000828152600a602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106119ee577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611a1a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611a3857662386f26fc10000830492506010015b6305f5e1008310611a50576305f5e100830492506008015b6127108310611a6457612710830492506004015b60648310611a76576064830492506002015b600a83106108405760010192915050565b60005b83811015611aa2578181015183820152602001611a8a565b50506000910152565b6020815260008251806020840152611aca816040850160208701611a87565b601f01601f19169190910160400192915050565b600060208284031215611af057600080fd5b5035919050565b80356001600160a01b0381168114610d4b57600080fd5b60008060408385031215611b2157600080fd5b611b2a83611af7565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611b5f57600080fd5b813567ffffffffffffffff80821115611b7a57611b7a611b38565b604051601f8301601f19908116603f01168101908282118183101715611ba257611ba2611b38565b81604052838152866020858801011115611bbb57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215611bed57600080fd5b813567ffffffffffffffff811115611c0457600080fd5b611c1084828501611b4e565b949350505050565b600080600060608486031215611c2d57600080fd5b611c3684611af7565b9250611c4460208501611af7565b9150604084013590509250925092565b60008060408385031215611c6757600080fd5b823567ffffffffffffffff80821115611c7f57600080fd5b611c8b86838701611b4e565b93506020850135915080821115611ca157600080fd5b50611cae85828601611b4e565b9150509250929050565b60008060408385031215611ccb57600080fd5b611cd483611af7565b915060208301358015158114611ce957600080fd5b809150509250929050565b600060208284031215611d0657600080fd5b610e3982611af7565b600080600080600060808688031215611d2757600080fd5b611d3086611af7565b9450611d3e60208701611af7565b935060408601359250606086013567ffffffffffffffff80821115611d6257600080fd5b818801915088601f830112611d7657600080fd5b813581811115611d8557600080fd5b896020828501011115611d9757600080fd5b9699959850939650602001949392505050565b60008060408385031215611dbd57600080fd5b611dc683611af7565b9150611dd460208401611af7565b90509250929050565b60008060408385031215611df057600080fd5b50508035926020909101359150565b600181811c90821680611e1357607f821691505b602082108103611e3357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610be2576000816000526020600020601f850160051c81016020861015611e625750805b601f850160051c820191505b81811015611e8157828155600101611e6e565b505050505050565b815167ffffffffffffffff811115611ea357611ea3611b38565b611eb781611eb18454611dff565b84611e39565b602080601f831160018114611eec5760008415611ed45750858301515b600019600386901b1c1916600185901b178555611e81565b600085815260208120601f198616915b82811015611f1b57888601518255948401946001909101908401611efc565b5085821015611f395787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8181038181111561084057610840611f49565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215611fb057600080fd5b81516001600160e01b031981168114610e3957600080fd5b808202811582820484141761084057610840611f49565b600082611ffc57634e487b7160e01b600052601260045260246000fd5b500490565b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b600080845461206381611dff565b6001828116801561207b5760018114612090576120bf565b60ff19841687528215158302870194506120bf565b8860005260208060002060005b858110156120b65781548a82015290840190820161209d565b50505082870194505b5050505083516120d3818360208801611a87565b01949350505050565b7f7b226e616d65223a202243617264202300000000000000000000000000000000815260008251612114816010850160208701611a87565b9190910160100192915050565b60008251612133818460208701611a87565b7f222c226465736372697074696f6e223a22456d706f776572696e6720636f6e6e9201918252507f656374696f6e7320616e6420726576656c6174696f6e73207468726f7567682060208201527f74686520617274206f6620706c61792c206361726473206172656e2774206a7560408201527f737420706c617965642062757420657870657269656e6365642c20627269646760608201527f696e6720776f726c64732c2073746f726965732c20616e642070656f706c652e60808201527f222c2265787465726e616c5f75726c223a2268747470733a2f2f63617264737060a08201527f726f6a6563742e78797a222c22696d616765223a22000000000000000000000060c082015260d501919050565b60008351612258818460208801611a87565b8351908301906120d3818360208801611a87565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a224681527f616374696f6e222c2276616c7565223a220000000000000000000000000000006020820152600082516122ca816031850160208701611a87565b9190910160310192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081526000825161230f81601b850160208701611a87565b91909101601b0192915050565b600181815b8085111561235757816000190482111561233d5761233d611f49565b8085161561234a57918102915b93841c9390800290612321565b509250929050565b60008261236e57506001610840565b8161237b57506000610840565b8160018114612391576002811461239b576123b7565b6001915050610840565b60ff8411156123ac576123ac611f49565b50506001821b610840565b5060208310610133831016604e8410600b84101617156123da575081810a610840565b6123e4838361231c565b80600019048211156123f8576123f8611f49565b029392505050565b6000610e3960ff84168361235f56fea264697066735822122017d1852738fab9ab6eded414e78efce51d8fc9b2fe6df948ddfea353670bb6f264736f6c63430008170033

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.