ETH Price: $2,614.89 (-2.26%)

Contract

0x24CCA47Fcc4fe09b51aBE8A8124C3da01765bE14
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Purchase160883232022-12-01 6:59:47668 days ago1669877987IN
0x24CCA47F...01765bE14
0 ETH0.0035783611.69180922
Purchase160855382022-11-30 21:39:47669 days ago1669844387IN
0x24CCA47F...01765bE14
0 ETH0.0037070412.30527031
Purchase160855372022-11-30 21:39:35669 days ago1669844375IN
0x24CCA47F...01765bE14
0 ETH0.0038176412.47363903
Purchase160855302022-11-30 21:38:11669 days ago1669844291IN
0x24CCA47F...01765bE14
0 ETH0.0039571813.04895795
Purchase160850322022-11-30 19:56:59669 days ago1669838219IN
0x24CCA47F...01765bE14
0 ETH0.0039101812.89396794
Purchase160846222022-11-30 18:34:35669 days ago1669833275IN
0x24CCA47F...01765bE14
0 ETH0.0059689419.81346784
Purchase160845772022-11-30 18:25:35669 days ago1669832735IN
0x24CCA47F...01765bE14
0 ETH0.0055429918.39954584
Purchase160845692022-11-30 18:23:59669 days ago1669832639IN
0x24CCA47F...01765bE14
0 ETH0.0062835520.5306726
Purchase160845592022-11-30 18:21:59669 days ago1669832519IN
0x24CCA47F...01765bE14
0 ETH0.0052188617.20938679
Purchase160845372022-11-30 18:17:35669 days ago1669832255IN
0x24CCA47F...01765bE14
0 ETH0.0045935215.00873245
Purchase153224962022-08-11 19:23:41780 days ago1660245821IN
0x24CCA47F...01765bE14
0 ETH0.0062675921
Purchase152993222022-08-08 3:56:04783 days ago1659930964IN
0x24CCA47F...01765bE14
0 ETH0.003154610.40241214
Purchase152138022022-07-25 20:18:21797 days ago1658780301IN
0x24CCA47F...01765bE14
0 ETH0.0074896925.09472131
Purchase150437772022-06-29 6:53:02823 days ago1656485582IN
0x24CCA47F...01765bE14
0 ETH0.0102142233.37360402
Purchase150437682022-06-29 6:51:08823 days ago1656485468IN
0x24CCA47F...01765bE14
0 ETH0.0091530929.90651995
Purchase150437322022-06-29 6:41:14823 days ago1656484874IN
0x24CCA47F...01765bE14
0 ETH0.0089396329.67443536
Purchase149460022022-06-11 19:29:16841 days ago1654975756IN
0x24CCA47F...01765bE14
0 ETH0.0063666221.13351926
Purchase149459882022-06-11 19:27:00841 days ago1654975620IN
0x24CCA47F...01765bE14
0 ETH0.007881125.75046372
Purchase149459792022-06-11 19:24:13841 days ago1654975453IN
0x24CCA47F...01765bE14
0 ETH0.006649521.72637718
Purchase149459732022-06-11 19:23:24841 days ago1654975404IN
0x24CCA47F...01765bE14
0 ETH0.0068032322.22864861
Purchase149459632022-06-11 19:21:00841 days ago1654975260IN
0x24CCA47F...01765bE14
0 ETH0.0069785622.80151694
Purchase149459542022-06-11 19:18:39841 days ago1654975119IN
0x24CCA47F...01765bE14
0 ETH0.0064939321.41396626
Purchase148946672022-06-03 2:48:55849 days ago1654224535IN
0x24CCA47F...01765bE14
0 ETH0.0205077367.0062661
Purchase148946622022-06-03 2:47:22849 days ago1654224442IN
0x24CCA47F...01765bE14
0 ETH0.0178756258.40618642
Purchase148946582022-06-03 2:45:48849 days ago1654224348IN
0x24CCA47F...01765bE14
0 ETH0.0129130242.19156477
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GenArt721Minter_LegendsOfMetaterra

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 7 : GenArt721Minter_LegendsOfMetaterra.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.

import "../../interfaces/0.8.x/IGenArt721CoreV2_PBAB.sol";
import "../../interfaces/0.8.x/IBonusContract.sol";

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";

pragma solidity 0.8.9;

/**
 * @title Powered by Art Blocks minter contract that allows tokens to be
 * minted with ETH or any ERC-20 token.
 * @author Art Blocks Inc.
 */
contract GenArt721Minter_LegendsOfMetaterra is ReentrancyGuard {
    /// PBAB core contract this minter may interact with.
    IGenArt721CoreV2_PBAB public genArtCoreContract;

    uint256 constant ONE_MILLION = 1_000_000;

    address payable public ownerAddress;
    uint256 public ownerPercentage;

    mapping(uint256 => bool) public projectIdToBonus;
    mapping(uint256 => address) public projectIdToBonusContractAddress;
    mapping(uint256 => bool) public contractFilterProject;
    mapping(address => mapping(uint256 => uint256)) public projectMintCounter;
    mapping(uint256 => uint256) public projectMintLimit;
    mapping(uint256 => bool) public projectMaxHasBeenInvoked;
    mapping(uint256 => uint256) public projectMaxInvocations;

    /**
     * @notice Initializes contract to be a Minter for PBAB core contract at
     * address `_genArt721Address`.
     */
    constructor(address _genArt721Address) ReentrancyGuard() {
        genArtCoreContract = IGenArt721CoreV2_PBAB(_genArt721Address);
    }

    /**
     * @notice Gets your balance of the ERC-20 token currently set
     * as the payment currency for project `_projectId`.
     * @param _projectId Project ID to be queried.
     * @return balance Balance of ERC-20
     */
    function getYourBalanceOfProjectERC20(uint256 _projectId)
        public
        view
        returns (uint256)
    {
        uint256 balance = IERC20(
            genArtCoreContract.projectIdToCurrencyAddress(_projectId)
        ).balanceOf(msg.sender);
        return balance;
    }

    /**
     * @notice Gets your allowance for this minter of the ERC-20
     * token currently set as the payment currency for project
     * `_projectId`.
     * @param _projectId Project ID to be queried.
     * @return remaining Remaining allowance of ERC-20
     */
    function checkYourAllowanceOfProjectERC20(uint256 _projectId)
        public
        view
        returns (uint256)
    {
        uint256 remaining = IERC20(
            genArtCoreContract.projectIdToCurrencyAddress(_projectId)
        ).allowance(msg.sender, address(this));
        return remaining;
    }

    /**
     * @notice Sets the mint limit of a single purchaser for project
     * `_projectId` to `_limit`.
     * @param _projectId Project ID to set the mint limit for.
     * @param _limit Number of times a given address may mint the project's
     * tokens.
     */
    function setProjectMintLimit(uint256 _projectId, uint8 _limit) public {
        require(
            genArtCoreContract.isWhitelisted(msg.sender),
            "can only be set by admin"
        );
        projectMintLimit[_projectId] = _limit;
    }

    /**
     * @notice Sets the maximum invocations of project `_projectId` based
     * on the value currently defined in the core contract.
     * @param _projectId Project ID to set the maximum invocations for.
     * @dev also checks and may refresh projectMaxHasBeenInvoked for project
     */
    function setProjectMaxInvocations(uint256 _projectId) public {
        require(
            genArtCoreContract.isWhitelisted(msg.sender),
            "can only be set by admin"
        );
        uint256 maxInvocations;
        uint256 invocations;
        (, , invocations, maxInvocations, , , , , ) = genArtCoreContract
            .projectTokenInfo(_projectId);
        projectMaxInvocations[_projectId] = maxInvocations;
        if (invocations < maxInvocations) {
            projectMaxHasBeenInvoked[_projectId] = false;
        }
    }

    /**
     * @notice Sets the owner address to `_ownerAddress`.
     * @param _ownerAddress New owner address.
     */
    function setOwnerAddress(address payable _ownerAddress) public {
        require(
            genArtCoreContract.isWhitelisted(msg.sender),
            "can only be set by admin"
        );
        ownerAddress = _ownerAddress;
    }

    /**
     * @notice Sets the owner mint revenue to `_ownerPercentage` percent.
     * @param _ownerPercentage New owner percentage.
     */
    function setOwnerPercentage(uint256 _ownerPercentage) public {
        require(
            genArtCoreContract.isWhitelisted(msg.sender),
            "can only be set by admin"
        );
        ownerPercentage = _ownerPercentage;
    }

    /**
     * @notice Toggles if contracts are allowed to mint tokens for
     * project `_projectId`.
     * @param _projectId Project ID to be toggled.
     */
    function toggleContractFilter(uint256 _projectId) public {
        require(
            genArtCoreContract.isWhitelisted(msg.sender),
            "can only be set by admin"
        );
        contractFilterProject[_projectId] = !contractFilterProject[_projectId];
    }

    /**
     * @notice Toggles if bonus contract for project `_projectId`.
     * @param _projectId Project ID to be toggled.
     */
    function artistToggleBonus(uint256 _projectId) public {
        require(
            msg.sender ==
                genArtCoreContract.projectIdToArtistAddress(_projectId),
            "can only be set by artist"
        );
        projectIdToBonus[_projectId] = !projectIdToBonus[_projectId];
    }

    /**
     * @notice Sets bonus contract for project `_projectId` to
     * `_bonusContractAddress`.
     * @param _projectId Project ID to be toggled.
     * @param _bonusContractAddress Bonus contract.
     */
    function artistSetBonusContractAddress(
        uint256 _projectId,
        address _bonusContractAddress
    ) public {
        require(
            msg.sender ==
                genArtCoreContract.projectIdToArtistAddress(_projectId),
            "can only be set by artist"
        );
        projectIdToBonusContractAddress[_projectId] = _bonusContractAddress;
    }

    /**
     * @notice Purchases a token from project `_projectId`.
     * @param _projectId Project ID to mint a token on.
     * @return _tokenId Token ID of minted token
     */
    function purchase(uint256 _projectId)
        public
        payable
        returns (uint256 _tokenId)
    {
        return purchaseTo(msg.sender, _projectId);
    }

    /**
     * @notice Purchases a token from project `_projectId` and sets
     * the token's owner to `_to`.
     * @param _to Address to be the new token's owner.
     * @param _projectId Project ID to mint a token on.
     * @return _tokenId Token ID of minted token
     */
    function purchaseTo(address _to, uint256 _projectId)
        public
        payable
        nonReentrant
        returns (uint256 _tokenId)
    {
        // CHECKS
        require(
            !projectMaxHasBeenInvoked[_projectId],
            "Maximum number of invocations reached"
        );
        // if contract filter is active prevent calls from another contract
        if (contractFilterProject[_projectId]) {
            require(msg.sender == tx.origin, "No Contract Buys");
        }

        // limit mints per address by project
        if (projectMintLimit[_projectId] > 0) {
            require(
                projectMintCounter[msg.sender][_projectId] <
                    projectMintLimit[_projectId],
                "Reached minting limit"
            );
            // EFFECTS
            projectMintCounter[msg.sender][_projectId]++;
        }

        uint256 tokenId = genArtCoreContract.mint(_to, _projectId, msg.sender);

        // What if this overflows, since default value of uint256 is 0?
        // That is intended, so that by default the minter allows infinite
        // transactions, allowing the `genArtCoreContract` to stop minting
        // `uint256 tokenInvocation = tokenId % ONE_MILLION;`
        if (
            projectMaxInvocations[_projectId] > 0 &&
            tokenId % ONE_MILLION == projectMaxInvocations[_projectId] - 1
        ) {
            projectMaxHasBeenInvoked[_projectId] = true;
        }

        // INTERACTIONS
        // bonus contract
        if (projectIdToBonus[_projectId]) {
            require(
                IBonusContract(projectIdToBonusContractAddress[_projectId])
                    .bonusIsActive(),
                "bonus must be active"
            );
            IBonusContract(projectIdToBonusContractAddress[_projectId])
                .triggerBonus(msg.sender);
        }

        // validate and split funds
        if (
            keccak256(
                abi.encodePacked(
                    genArtCoreContract.projectIdToCurrencySymbol(_projectId)
                )
            ) != keccak256(abi.encodePacked("ETH"))
        ) {
            require(
                msg.value == 0,
                "this project accepts a different currency and cannot accept ETH"
            );
            require(
                IERC20(
                    genArtCoreContract.projectIdToCurrencyAddress(_projectId)
                ).allowance(msg.sender, address(this)) >=
                    genArtCoreContract.projectIdToPricePerTokenInWei(
                        _projectId
                    ),
                "Insufficient Funds Approved for TX"
            );
            require(
                IERC20(
                    genArtCoreContract.projectIdToCurrencyAddress(_projectId)
                ).balanceOf(msg.sender) >=
                    genArtCoreContract.projectIdToPricePerTokenInWei(
                        _projectId
                    ),
                "Insufficient balance."
            );
            _splitFundsERC20(_projectId);
        } else {
            require(
                msg.value >=
                    genArtCoreContract.projectIdToPricePerTokenInWei(
                        _projectId
                    ),
                "Must send minimum value to mint!"
            );
            _splitFundsETH(_projectId);
        }

        return tokenId;
    }

    /**
     * @dev splits ETH funds between sender (if refund), foundation,
     * artist, and artist's additional payee for a token purchased on
     * project `_projectId`.
     * @dev utilizes transfer() to send ETH, so access lists may need to be
     * populated when purchasing tokens.
     */
    function _splitFundsETH(uint256 _projectId) internal {
        if (msg.value > 0) {
            uint256 pricePerTokenInWei = genArtCoreContract
                .projectIdToPricePerTokenInWei(_projectId);
            uint256 refund = msg.value -
                genArtCoreContract.projectIdToPricePerTokenInWei(_projectId);
            if (refund > 0) {
                (bool success_, ) = msg.sender.call{value: refund}("");
                require(success_, "Refund failed");
            }
            uint256 renderProviderAmount = (pricePerTokenInWei *
                genArtCoreContract.renderProviderPercentage()) / 100;
            if (renderProviderAmount > 0) {
                (bool success_, ) = genArtCoreContract
                    .renderProviderAddress()
                    .call{value: renderProviderAmount}("");
                require(success_, "Renderer payment failed");
            }

            uint256 remainingFunds = pricePerTokenInWei - renderProviderAmount;

            uint256 ownerFunds = (remainingFunds * ownerPercentage) / 100;
            if (ownerFunds > 0) {
                (bool success_, ) = ownerAddress.call{value: ownerFunds}("");
                require(success_, "Owner payment failed");
            }

            uint256 projectFunds = pricePerTokenInWei -
                renderProviderAmount -
                ownerFunds;
            uint256 additionalPayeeAmount;
            if (
                genArtCoreContract.projectIdToAdditionalPayeePercentage(
                    _projectId
                ) > 0
            ) {
                additionalPayeeAmount =
                    (projectFunds *
                        genArtCoreContract.projectIdToAdditionalPayeePercentage(
                            _projectId
                        )) /
                    100;
                if (additionalPayeeAmount > 0) {
                    (bool success_, ) = genArtCoreContract
                        .projectIdToAdditionalPayee(_projectId)
                        .call{value: additionalPayeeAmount}("");
                    require(success_, "Additional payment failed");
                }
            }
            uint256 creatorFunds = projectFunds - additionalPayeeAmount;
            if (creatorFunds > 0) {
                (bool success_, ) = genArtCoreContract
                    .projectIdToArtistAddress(_projectId)
                    .call{value: creatorFunds}("");
                require(success_, "Artist payment failed");
            }
        }
    }

    /**
     * @dev splits ERC-20 funds between render provider, owner, artist, and
     * artist's additional payee, for a token purchased on project
     `_projectId`.
     */
    function _splitFundsERC20(uint256 _projectId) internal {
        uint256 pricePerTokenInWei = genArtCoreContract
            .projectIdToPricePerTokenInWei(_projectId);
        uint256 renderProviderAmount = (pricePerTokenInWei *
            genArtCoreContract.renderProviderPercentage()) / 100;
        if (renderProviderAmount > 0) {
            IERC20(genArtCoreContract.projectIdToCurrencyAddress(_projectId))
                .transferFrom(
                    msg.sender,
                    genArtCoreContract.renderProviderAddress(),
                    renderProviderAmount
                );
        }
        uint256 remainingFunds = pricePerTokenInWei - renderProviderAmount;

        uint256 ownerFunds = (remainingFunds * ownerPercentage) / 100;
        if (ownerFunds > 0) {
            IERC20(genArtCoreContract.projectIdToCurrencyAddress(_projectId))
                .transferFrom(msg.sender, ownerAddress, ownerFunds);
        }

        uint256 projectFunds = pricePerTokenInWei -
            renderProviderAmount -
            ownerFunds;
        uint256 additionalPayeeAmount;
        if (
            genArtCoreContract.projectIdToAdditionalPayeePercentage(
                _projectId
            ) > 0
        ) {
            additionalPayeeAmount =
                (projectFunds *
                    genArtCoreContract.projectIdToAdditionalPayeePercentage(
                        _projectId
                    )) /
                100;
            if (additionalPayeeAmount > 0) {
                IERC20(
                    genArtCoreContract.projectIdToCurrencyAddress(_projectId)
                ).transferFrom(
                        msg.sender,
                        genArtCoreContract.projectIdToAdditionalPayee(
                            _projectId
                        ),
                        additionalPayeeAmount
                    );
            }
        }
        uint256 creatorFunds = projectFunds - additionalPayeeAmount;
        if (creatorFunds > 0) {
            IERC20(genArtCoreContract.projectIdToCurrencyAddress(_projectId))
                .transferFrom(
                    msg.sender,
                    genArtCoreContract.projectIdToArtistAddress(_projectId),
                    creatorFunds
                );
        }
    }
}

File 2 of 7 : IGenArt721CoreV2_PBAB.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.

pragma solidity ^0.8.0;

interface IGenArt721CoreV2_PBAB {
    /**
     * @notice Token ID `_tokenId` minted on project ID `_projectId` to `_to`.
     */
    event Mint(
        address indexed _to,
        uint256 indexed _tokenId,
        uint256 indexed _projectId
    );

    // getter function of public variable
    function admin() external view returns (address);

    // getter function of public variable
    function nextProjectId() external view returns (uint256);

    // getter function of public mapping
    function tokenIdToProjectId(uint256 tokenId)
        external
        view
        returns (uint256 projectId);

    function isWhitelisted(address sender) external view returns (bool);

    function projectIdToCurrencySymbol(uint256 _projectId)
        external
        view
        returns (string memory);

    function projectIdToCurrencyAddress(uint256 _projectId)
        external
        view
        returns (address);

    function projectIdToArtistAddress(uint256 _projectId)
        external
        view
        returns (address payable);

    function projectIdToPricePerTokenInWei(uint256 _projectId)
        external
        view
        returns (uint256);

    function projectIdToAdditionalPayee(uint256 _projectId)
        external
        view
        returns (address payable);

    function projectIdToAdditionalPayeePercentage(uint256 _projectId)
        external
        view
        returns (uint256);

    function projectTokenInfo(uint256 _projectId)
        external
        view
        returns (
            address,
            uint256,
            uint256,
            uint256,
            bool,
            address,
            uint256,
            string memory,
            address
        );

    function renderProviderAddress() external view returns (address payable);

    function renderProviderPercentage() external view returns (uint256);

    function mint(
        address _to,
        uint256 _projectId,
        address _by
    ) external returns (uint256 tokenId);

    function getRoyaltyData(uint256 _tokenId)
        external
        view
        returns (
            address artistAddress,
            address additionalPayee,
            uint256 additionalPayeePercentage,
            uint256 royaltyFeeByID
        );
}

File 3 of 7 : IBonusContract.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Creatd By: Art Blocks Inc.

pragma solidity ^0.8.0;

interface IBonusContract {
    function triggerBonus(address _to) external returns (bool);

    function bonusIsActive() external view returns (bool);
}

File 4 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

File 6 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 7 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_genArt721Address","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"_bonusContractAddress","type":"address"}],"name":"artistSetBonusContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"artistToggleBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"checkYourAllowanceOfProjectERC20","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"contractFilterProject","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genArtCoreContract","outputs":[{"internalType":"contract IGenArt721CoreV2_PBAB","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"getYourBalanceOfProjectERC20","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToBonus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToBonusContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectMaxHasBeenInvoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectMaxInvocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"purchase","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"purchaseTo","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_ownerAddress","type":"address"}],"name":"setOwnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ownerPercentage","type":"uint256"}],"name":"setOwnerPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"setProjectMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint8","name":"_limit","type":"uint8"}],"name":"setProjectMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleContractFilter","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002af238038062002af283398101604081905262000034916200005f565b6001600081905580546001600160a01b0319166001600160a01b039290921691909117905562000091565b6000602082840312156200007257600080fd5b81516001600160a01b03811681146200008a57600080fd5b9392505050565b612a5180620000a16000396000f3fe60806040526004361061012a5760003560e01c806373709417116100ab57806395e3b0de1161006f57806395e3b0de14610392578063a9809600146103b2578063efef39a1146103d2578063f4632103146103e5578063f7bd4b8814610405578063f9f96b9e1461042557600080fd5b806373709417146102cc5780637e6906de146102fc5780637f38902b1461033f578063891407c01461035f5780638f84aa091461037257600080fd5b806341da7555116100f257806341da7555146101fc578063462add461461021257806356690aaf14610252578063569f6f921461027f57806362f7a7ed1461029f57600080fd5b8063231c22811461012f578063331a6bf514610151578063393b011c146101715780633a4657b4146101915780633c34b9f0146101dc575b600080fd5b34801561013b57600080fd5b5061014f61014a3660046125c8565b610455565b005b34801561015d57600080fd5b5061014f61016c366004612613565b610512565b34801561017d57600080fd5b5061014f61018c366004612630565b6105d0565b34801561019d57600080fd5b506101c96101ac366004612649565b600760209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b3480156101e857600080fd5b5061014f6101f7366004612675565b610671565b34801561020857600080fd5b506101c960035481565b34801561021e57600080fd5b5061024261022d366004612630565b60096020526000908152604090205460ff1681565b60405190151581526020016101d3565b34801561025e57600080fd5b506101c961026d366004612630565b600a6020526000908152604090205481565b34801561028b57600080fd5b5061014f61029a366004612630565b61074b565b3480156102ab57600080fd5b506101c96102ba366004612630565b60086020526000908152604090205481565b3480156102d857600080fd5b506102426102e7366004612630565b60046020526000908152604090205460ff1681565b34801561030857600080fd5b50610332610317366004612630565b6005602052600090815260409020546001600160a01b031681565b6040516101d3919061269a565b34801561034b57600080fd5b50600154610332906001600160a01b031681565b6101c961036d366004612649565b610807565b34801561037e57600080fd5b50600254610332906001600160a01b031681565b34801561039e57600080fd5b5061014f6103ad366004612630565b6111f5565b3480156103be57600080fd5b506101c96103cd366004612630565b6112c1565b6101c96103e0366004612630565b6113c4565b3480156103f157600080fd5b506101c9610400366004612630565b6113d6565b34801561041157600080fd5b5061014f610420366004612630565b61148b565b34801561043157600080fd5b50610242610440366004612630565b60066020526000908152604090205460ff1681565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061048590339060040161269a565b60206040518083038186803b15801561049d57600080fd5b505afa1580156104b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d591906126c3565b6104fa5760405162461bcd60e51b81526004016104f1906126de565b60405180910390fd5b60009182526008602052604090912060ff9091169055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061054290339060040161269a565b60206040518083038186803b15801561055a57600080fd5b505afa15801561056e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059291906126c3565b6105ae5760405162461bcd60e51b81526004016104f1906126de565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061060090339060040161269a565b60206040518083038186803b15801561061857600080fd5b505afa15801561062c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065091906126c3565b61066c5760405162461bcd60e51b81526004016104f1906126de565b600355565b60015460405163a47d29cb60e01b8152600481018490526001600160a01b039091169063a47d29cb9060240160206040518083038186803b1580156106b557600080fd5b505afa1580156106c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ed9190612710565b6001600160a01b0316336001600160a01b03161461071d5760405162461bcd60e51b81526004016104f19061272d565b60009182526005602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061077b90339060040161269a565b60206040518083038186803b15801561079357600080fd5b505afa1580156107a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cb91906126c3565b6107e75760405162461bcd60e51b81526004016104f1906126de565b6000908152600660205260409020805460ff19811660ff90911615179055565b60006002600054141561085c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104f1565b600260009081558281526009602052604090205460ff16156108ce5760405162461bcd60e51b815260206004820152602560248201527f4d6178696d756d206e756d626572206f6620696e766f636174696f6e732072656044820152641858da195960da1b60648201526084016104f1565b60008281526006602052604090205460ff1615610927573332146109275760405162461bcd60e51b815260206004820152601060248201526f4e6f20436f6e7472616374204275797360801b60448201526064016104f1565b600082815260086020526040902054156109d2576000828152600860209081526040808320543384526007835281842086855290925290912054106109a65760405162461bcd60e51b815260206004820152601560248201527414995858da1959081b5a5b9d1a5b99c81b1a5b5a5d605a1b60448201526064016104f1565b33600090815260076020908152604080832085845290915281208054916109cc83612776565b91905055505b600154604051630d4d151360e01b81526001600160a01b038581166004830152602482018590523360448301526000921690630d4d151390606401602060405180830381600087803b158015610a2757600080fd5b505af1158015610a3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5f9190612791565b6000848152600a602052604090205490915015801590610aa457506000838152600a6020526040902054610a95906001906127aa565b610aa2620f4240836127d7565b145b15610ac3576000838152600960205260409020805460ff191660011790555b60008381526004602052604090205460ff1615610c35576000838152600560209081526040918290205482516305e667fd60e21b815292516001600160a01b03909116926317999ff4926004808301939192829003018186803b158015610b2957600080fd5b505afa158015610b3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6191906126c3565b610ba45760405162461bcd60e51b8152602060048201526014602482015273626f6e7573206d7573742062652061637469766560601b60448201526064016104f1565b6000838152600560205260409081902054905163f473237d60e01b81526001600160a01b039091169063f473237d90610be190339060040161269a565b602060405180830381600087803b158015610bfb57600080fd5b505af1158015610c0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3391906126c3565b505b6040516208aa8960eb1b602082015260230160408051808303601f190181529082905280516020909101206001546320927ec960e01b83526004830186905290916001600160a01b03909116906320927ec99060240160006040518083038186803b158015610ca357600080fd5b505afa158015610cb7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cdf91908101906128b9565b604051602001610cef91906128f6565b6040516020818303038152906040528051906020012014611115573415610d7e5760405162461bcd60e51b815260206004820152603f60248201527f746869732070726f6a6563742061636365707473206120646966666572656e7460448201527f2063757272656e637920616e642063616e6e6f7420616363657074204554480060648201526084016104f1565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b158015610dc257600080fd5b505afa158015610dd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfa9190612791565b60015460405163498dd0c160e01b8152600481018690526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015610e3e57600080fd5b505afa158015610e52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e769190612710565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b03919091169063dd62ed3e9060440160206040518083038186803b158015610ebd57600080fd5b505afa158015610ed1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef59190612791565b1015610f4e5760405162461bcd60e51b815260206004820152602260248201527f496e73756666696369656e742046756e647320417070726f76656420666f72206044820152610a8b60f31b60648201526084016104f1565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b158015610f9257600080fd5b505afa158015610fa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fca9190612791565b60015460405163498dd0c160e01b8152600481018690526001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561100e57600080fd5b505afa158015611022573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110469190612710565b6001600160a01b03166370a08231336040518263ffffffff1660e01b8152600401611071919061269a565b60206040518083038186803b15801561108957600080fd5b505afa15801561109d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c19190612791565b10156111075760405162461bcd60e51b815260206004820152601560248201527424b739bab33334b1b4b2b73a103130b630b731b29760591b60448201526064016104f1565b611110836115ee565b6111e9565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b15801561115957600080fd5b505afa15801561116d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111919190612791565b3410156111e05760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e64206d696e696d756d2076616c756520746f206d696e742160448201526064016104f1565b6111e983611e11565b60016000559392505050565b60015460405163a47d29cb60e01b8152600481018390526001600160a01b039091169063a47d29cb9060240160206040518083038186803b15801561123957600080fd5b505afa15801561124d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112719190612710565b6001600160a01b0316336001600160a01b0316146112a15760405162461bcd60e51b81526004016104f19061272d565b6000908152600460205260409020805460ff19811660ff90911615179055565b60015460405163498dd0c160e01b81526004810183905260009182916001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561130a57600080fd5b505afa15801561131e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113429190612710565b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161136d919061269a565b60206040518083038186803b15801561138557600080fd5b505afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd9190612791565b9392505050565b60006113d03383610807565b92915050565b60015460405163498dd0c160e01b81526004810183905260009182916001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561141f57600080fd5b505afa158015611433573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114579190612710565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b03919091169063dd62ed3e9060440161136d565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf906114bb90339060040161269a565b60206040518083038186803b1580156114d357600080fd5b505afa1580156114e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150b91906126c3565b6115275760405162461bcd60e51b81526004016104f1906126de565b6001546040516346161b1160e11b81526004810183905260009182916001600160a01b0390911690638c2c36229060240160006040518083038186803b15801561157057600080fd5b505afa158015611584573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115ac9190810190612912565b5050506000898152600a6020526040902083905550909550909350505050818110156115e9576000838152600960205260409020805460ff191690555b505050565b600154604051633dc303c160e21b8152600481018390526000916001600160a01b03169063f70c0f049060240160206040518083038186803b15801561163357600080fd5b505afa158015611647573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166b9190612791565b905060006064600160009054906101000a90046001600160a01b03166001600160a01b0316632e9eb74f6040518163ffffffff1660e01b815260040160206040518083038186803b1580156116bf57600080fd5b505afa1580156116d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f79190612791565b61170190846129c4565b61170b91906129e3565b905080156118975760015460405163498dd0c160e01b8152600481018590526001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561175757600080fd5b505afa15801561176b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178f9190612710565b6001600160a01b03166323b872dd33600160009054906101000a90046001600160a01b03166001600160a01b031663cfbf4d976040518163ffffffff1660e01b815260040160206040518083038186803b1580156117ec57600080fd5b505afa158015611800573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118249190612710565b846040518463ffffffff1660e01b8152600401611843939291906129f7565b602060405180830381600087803b15801561185d57600080fd5b505af1158015611871573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189591906126c3565b505b60006118a382846127aa565b905060006064600354836118b791906129c4565b6118c191906129e3565b905080156119cf5760015460405163498dd0c160e01b8152600481018790526001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561190d57600080fd5b505afa158015611921573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119459190612710565b6002546040516323b872dd60e01b81526001600160a01b03928316926323b872dd9261197b9233929091169086906004016129f7565b602060405180830381600087803b15801561199557600080fd5b505af11580156119a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cd91906126c3565b505b6000816119dc85876127aa565b6119e691906127aa565b60015460405163cc74234b60e01b81526004810189905291925060009182916001600160a01b03169063cc74234b9060240160206040518083038186803b158015611a3057600080fd5b505afa158015611a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a689190612791565b1115611c7d5760015460405163cc74234b60e01b8152600481018990526064916001600160a01b03169063cc74234b9060240160206040518083038186803b158015611ab357600080fd5b505afa158015611ac7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aeb9190612791565b611af590846129c4565b611aff91906129e3565b90508015611c7d5760015460405163498dd0c160e01b8152600481018990526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015611b4b57600080fd5b505afa158015611b5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b839190612710565b600154604051636bd8225b60e11b8152600481018a90526001600160a01b03928316926323b872dd92339291169063d7b044b69060240160206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a9190612710565b846040518463ffffffff1660e01b8152600401611c29939291906129f7565b602060405180830381600087803b158015611c4357600080fd5b505af1158015611c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7b91906126c3565b505b6000611c8982846127aa565b90508015611e075760015460405163498dd0c160e01b8152600481018a90526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015611cd557600080fd5b505afa158015611ce9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0d9190612710565b60015460405163a47d29cb60e01b8152600481018b90526001600160a01b03928316926323b872dd92339291169063a47d29cb9060240160206040518083038186803b158015611d5c57600080fd5b505afa158015611d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d949190612710565b846040518463ffffffff1660e01b8152600401611db3939291906129f7565b602060405180830381600087803b158015611dcd57600080fd5b505af1158015611de1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0591906126c3565b505b5050505050505050565b34156125c557600154604051633dc303c160e21b8152600481018390526000916001600160a01b03169063f70c0f049060240160206040518083038186803b158015611e5c57600080fd5b505afa158015611e70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e949190612791565b600154604051633dc303c160e21b8152600481018590529192506000916001600160a01b039091169063f70c0f049060240160206040518083038186803b158015611ede57600080fd5b505afa158015611ef2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f169190612791565b611f2090346127aa565b90508015611fb257604051600090339083908381818185875af1925050503d8060008114611f6a576040519150601f19603f3d011682016040523d82523d6000602084013e611f6f565b606091505b5050905080611fb05760405162461bcd60e51b815260206004820152600d60248201526c1499599d5b990819985a5b1959609a1b60448201526064016104f1565b505b60006064600160009054906101000a90046001600160a01b03166001600160a01b0316632e9eb74f6040518163ffffffff1660e01b815260040160206040518083038186803b15801561200457600080fd5b505afa158015612018573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203c9190612791565b61204690856129c4565b61205091906129e3565b90508015612171576001546040805163cfbf4d9760e01b815290516000926001600160a01b03169163cfbf4d97916004808301926020929190829003018186803b15801561209d57600080fd5b505afa1580156120b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d59190612710565b6001600160a01b03168260405160006040518083038185875af1925050503d806000811461211f576040519150601f19603f3d011682016040523d82523d6000602084013e612124565b606091505b505090508061216f5760405162461bcd60e51b815260206004820152601760248201527614995b99195c995c881c185e5b595b9d0819985a5b1959604a1b60448201526064016104f1565b505b600061217d82856127aa565b9050600060646003548361219191906129c4565b61219b91906129e3565b9050801561223f576002546040516000916001600160a01b03169083908381818185875af1925050503d80600081146121f0576040519150601f19603f3d011682016040523d82523d6000602084013e6121f5565b606091505b505090508061223d5760405162461bcd60e51b815260206004820152601460248201527313dddb995c881c185e5b595b9d0819985a5b195960621b60448201526064016104f1565b505b60008161224c85886127aa565b61225691906127aa565b60015460405163cc74234b60e01b8152600481018a905291925060009182916001600160a01b03169063cc74234b9060240160206040518083038186803b1580156122a057600080fd5b505afa1580156122b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d89190612791565b11156124925760015460405163cc74234b60e01b8152600481018a90526064916001600160a01b03169063cc74234b9060240160206040518083038186803b15801561232357600080fd5b505afa158015612337573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235b9190612791565b61236590846129c4565b61236f91906129e3565b9050801561249257600154604051636bd8225b60e11b8152600481018a90526000916001600160a01b03169063d7b044b69060240160206040518083038186803b1580156123bc57600080fd5b505afa1580156123d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f49190612710565b6001600160a01b03168260405160006040518083038185875af1925050503d806000811461243e576040519150601f19603f3d011682016040523d82523d6000602084013e612443565b606091505b50509050806124905760405162461bcd60e51b81526020600482015260196024820152781059191a5d1a5bdb985b081c185e5b595b9d0819985a5b1959603a1b60448201526064016104f1565b505b600061249e82846127aa565b90508015611e055760015460405163a47d29cb60e01b8152600481018b90526000916001600160a01b03169063a47d29cb9060240160206040518083038186803b1580156124eb57600080fd5b505afa1580156124ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125239190612710565b6001600160a01b03168260405160006040518083038185875af1925050503d806000811461256d576040519150601f19603f3d011682016040523d82523d6000602084013e612572565b606091505b50509050806125bb5760405162461bcd60e51b8152602060048201526015602482015274105c9d1a5cdd081c185e5b595b9d0819985a5b1959605a1b60448201526064016104f1565b5050505050505050505b50565b600080604083850312156125db57600080fd5b82359150602083013560ff811681146125f357600080fd5b809150509250929050565b6001600160a01b03811681146125c557600080fd5b60006020828403121561262557600080fd5b81356113bd816125fe565b60006020828403121561264257600080fd5b5035919050565b6000806040838503121561265c57600080fd5b8235612667816125fe565b946020939093013593505050565b6000806040838503121561268857600080fd5b8235915060208301356125f3816125fe565b6001600160a01b0391909116815260200190565b805180151581146126be57600080fd5b919050565b6000602082840312156126d557600080fd5b6113bd826126ae565b60208082526018908201527731b0b71037b7363c9031329039b2ba10313c9030b236b4b760411b604082015260600190565b60006020828403121561272257600080fd5b81516113bd816125fe565b60208082526019908201527818d85b881bdb9b1e481899481cd95d08189e48185c9d1a5cdd603a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561278a5761278a612760565b5060010190565b6000602082840312156127a357600080fd5b5051919050565b6000828210156127bc576127bc612760565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826127e6576127e66127c1565b500690565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561281c578181015183820152602001612804565b8381111561282b576000848401525b50505050565b600082601f83011261284257600080fd5b815167ffffffffffffffff8082111561285d5761285d6127eb565b604051601f8301601f19908116603f01168101908282118183101715612885576128856127eb565b8160405283815286602085880101111561289e57600080fd5b6128af846020830160208901612801565b9695505050505050565b6000602082840312156128cb57600080fd5b815167ffffffffffffffff8111156128e257600080fd5b6128ee84828501612831565b949350505050565b60008251612908818460208701612801565b9190910192915050565b60008060008060008060008060006101208a8c03121561293157600080fd5b895161293c816125fe565b8099505060208a0151975060408a0151965060608a0151955061296160808b016126ae565b945060a08a0151612971816125fe565b60c08b015160e08c0151919550935067ffffffffffffffff81111561299557600080fd5b6129a18c828d01612831565b9250506101008a01516129b3816125fe565b809150509295985092959850929598565b60008160001904831182151516156129de576129de612760565b500290565b6000826129f2576129f26127c1565b500490565b6001600160a01b03938416815291909216602082015260408101919091526060019056fea26469706673582212207eb3fd8223bbdde29b9b5a79d0af4a59cb53277ce37067134788a9d3b6cf963564736f6c63430008090033000000000000000000000000010be6545e14f1dc50256286d9920e833f809c6a

Deployed Bytecode

0x60806040526004361061012a5760003560e01c806373709417116100ab57806395e3b0de1161006f57806395e3b0de14610392578063a9809600146103b2578063efef39a1146103d2578063f4632103146103e5578063f7bd4b8814610405578063f9f96b9e1461042557600080fd5b806373709417146102cc5780637e6906de146102fc5780637f38902b1461033f578063891407c01461035f5780638f84aa091461037257600080fd5b806341da7555116100f257806341da7555146101fc578063462add461461021257806356690aaf14610252578063569f6f921461027f57806362f7a7ed1461029f57600080fd5b8063231c22811461012f578063331a6bf514610151578063393b011c146101715780633a4657b4146101915780633c34b9f0146101dc575b600080fd5b34801561013b57600080fd5b5061014f61014a3660046125c8565b610455565b005b34801561015d57600080fd5b5061014f61016c366004612613565b610512565b34801561017d57600080fd5b5061014f61018c366004612630565b6105d0565b34801561019d57600080fd5b506101c96101ac366004612649565b600760209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b3480156101e857600080fd5b5061014f6101f7366004612675565b610671565b34801561020857600080fd5b506101c960035481565b34801561021e57600080fd5b5061024261022d366004612630565b60096020526000908152604090205460ff1681565b60405190151581526020016101d3565b34801561025e57600080fd5b506101c961026d366004612630565b600a6020526000908152604090205481565b34801561028b57600080fd5b5061014f61029a366004612630565b61074b565b3480156102ab57600080fd5b506101c96102ba366004612630565b60086020526000908152604090205481565b3480156102d857600080fd5b506102426102e7366004612630565b60046020526000908152604090205460ff1681565b34801561030857600080fd5b50610332610317366004612630565b6005602052600090815260409020546001600160a01b031681565b6040516101d3919061269a565b34801561034b57600080fd5b50600154610332906001600160a01b031681565b6101c961036d366004612649565b610807565b34801561037e57600080fd5b50600254610332906001600160a01b031681565b34801561039e57600080fd5b5061014f6103ad366004612630565b6111f5565b3480156103be57600080fd5b506101c96103cd366004612630565b6112c1565b6101c96103e0366004612630565b6113c4565b3480156103f157600080fd5b506101c9610400366004612630565b6113d6565b34801561041157600080fd5b5061014f610420366004612630565b61148b565b34801561043157600080fd5b50610242610440366004612630565b60066020526000908152604090205460ff1681565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061048590339060040161269a565b60206040518083038186803b15801561049d57600080fd5b505afa1580156104b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d591906126c3565b6104fa5760405162461bcd60e51b81526004016104f1906126de565b60405180910390fd5b60009182526008602052604090912060ff9091169055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061054290339060040161269a565b60206040518083038186803b15801561055a57600080fd5b505afa15801561056e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059291906126c3565b6105ae5760405162461bcd60e51b81526004016104f1906126de565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061060090339060040161269a565b60206040518083038186803b15801561061857600080fd5b505afa15801561062c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065091906126c3565b61066c5760405162461bcd60e51b81526004016104f1906126de565b600355565b60015460405163a47d29cb60e01b8152600481018490526001600160a01b039091169063a47d29cb9060240160206040518083038186803b1580156106b557600080fd5b505afa1580156106c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ed9190612710565b6001600160a01b0316336001600160a01b03161461071d5760405162461bcd60e51b81526004016104f19061272d565b60009182526005602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061077b90339060040161269a565b60206040518083038186803b15801561079357600080fd5b505afa1580156107a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cb91906126c3565b6107e75760405162461bcd60e51b81526004016104f1906126de565b6000908152600660205260409020805460ff19811660ff90911615179055565b60006002600054141561085c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104f1565b600260009081558281526009602052604090205460ff16156108ce5760405162461bcd60e51b815260206004820152602560248201527f4d6178696d756d206e756d626572206f6620696e766f636174696f6e732072656044820152641858da195960da1b60648201526084016104f1565b60008281526006602052604090205460ff1615610927573332146109275760405162461bcd60e51b815260206004820152601060248201526f4e6f20436f6e7472616374204275797360801b60448201526064016104f1565b600082815260086020526040902054156109d2576000828152600860209081526040808320543384526007835281842086855290925290912054106109a65760405162461bcd60e51b815260206004820152601560248201527414995858da1959081b5a5b9d1a5b99c81b1a5b5a5d605a1b60448201526064016104f1565b33600090815260076020908152604080832085845290915281208054916109cc83612776565b91905055505b600154604051630d4d151360e01b81526001600160a01b038581166004830152602482018590523360448301526000921690630d4d151390606401602060405180830381600087803b158015610a2757600080fd5b505af1158015610a3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5f9190612791565b6000848152600a602052604090205490915015801590610aa457506000838152600a6020526040902054610a95906001906127aa565b610aa2620f4240836127d7565b145b15610ac3576000838152600960205260409020805460ff191660011790555b60008381526004602052604090205460ff1615610c35576000838152600560209081526040918290205482516305e667fd60e21b815292516001600160a01b03909116926317999ff4926004808301939192829003018186803b158015610b2957600080fd5b505afa158015610b3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6191906126c3565b610ba45760405162461bcd60e51b8152602060048201526014602482015273626f6e7573206d7573742062652061637469766560601b60448201526064016104f1565b6000838152600560205260409081902054905163f473237d60e01b81526001600160a01b039091169063f473237d90610be190339060040161269a565b602060405180830381600087803b158015610bfb57600080fd5b505af1158015610c0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3391906126c3565b505b6040516208aa8960eb1b602082015260230160408051808303601f190181529082905280516020909101206001546320927ec960e01b83526004830186905290916001600160a01b03909116906320927ec99060240160006040518083038186803b158015610ca357600080fd5b505afa158015610cb7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cdf91908101906128b9565b604051602001610cef91906128f6565b6040516020818303038152906040528051906020012014611115573415610d7e5760405162461bcd60e51b815260206004820152603f60248201527f746869732070726f6a6563742061636365707473206120646966666572656e7460448201527f2063757272656e637920616e642063616e6e6f7420616363657074204554480060648201526084016104f1565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b158015610dc257600080fd5b505afa158015610dd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfa9190612791565b60015460405163498dd0c160e01b8152600481018690526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015610e3e57600080fd5b505afa158015610e52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e769190612710565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b03919091169063dd62ed3e9060440160206040518083038186803b158015610ebd57600080fd5b505afa158015610ed1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef59190612791565b1015610f4e5760405162461bcd60e51b815260206004820152602260248201527f496e73756666696369656e742046756e647320417070726f76656420666f72206044820152610a8b60f31b60648201526084016104f1565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b158015610f9257600080fd5b505afa158015610fa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fca9190612791565b60015460405163498dd0c160e01b8152600481018690526001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561100e57600080fd5b505afa158015611022573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110469190612710565b6001600160a01b03166370a08231336040518263ffffffff1660e01b8152600401611071919061269a565b60206040518083038186803b15801561108957600080fd5b505afa15801561109d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c19190612791565b10156111075760405162461bcd60e51b815260206004820152601560248201527424b739bab33334b1b4b2b73a103130b630b731b29760591b60448201526064016104f1565b611110836115ee565b6111e9565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b15801561115957600080fd5b505afa15801561116d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111919190612791565b3410156111e05760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e64206d696e696d756d2076616c756520746f206d696e742160448201526064016104f1565b6111e983611e11565b60016000559392505050565b60015460405163a47d29cb60e01b8152600481018390526001600160a01b039091169063a47d29cb9060240160206040518083038186803b15801561123957600080fd5b505afa15801561124d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112719190612710565b6001600160a01b0316336001600160a01b0316146112a15760405162461bcd60e51b81526004016104f19061272d565b6000908152600460205260409020805460ff19811660ff90911615179055565b60015460405163498dd0c160e01b81526004810183905260009182916001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561130a57600080fd5b505afa15801561131e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113429190612710565b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161136d919061269a565b60206040518083038186803b15801561138557600080fd5b505afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd9190612791565b9392505050565b60006113d03383610807565b92915050565b60015460405163498dd0c160e01b81526004810183905260009182916001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561141f57600080fd5b505afa158015611433573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114579190612710565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b03919091169063dd62ed3e9060440161136d565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf906114bb90339060040161269a565b60206040518083038186803b1580156114d357600080fd5b505afa1580156114e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150b91906126c3565b6115275760405162461bcd60e51b81526004016104f1906126de565b6001546040516346161b1160e11b81526004810183905260009182916001600160a01b0390911690638c2c36229060240160006040518083038186803b15801561157057600080fd5b505afa158015611584573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115ac9190810190612912565b5050506000898152600a6020526040902083905550909550909350505050818110156115e9576000838152600960205260409020805460ff191690555b505050565b600154604051633dc303c160e21b8152600481018390526000916001600160a01b03169063f70c0f049060240160206040518083038186803b15801561163357600080fd5b505afa158015611647573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166b9190612791565b905060006064600160009054906101000a90046001600160a01b03166001600160a01b0316632e9eb74f6040518163ffffffff1660e01b815260040160206040518083038186803b1580156116bf57600080fd5b505afa1580156116d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f79190612791565b61170190846129c4565b61170b91906129e3565b905080156118975760015460405163498dd0c160e01b8152600481018590526001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561175757600080fd5b505afa15801561176b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178f9190612710565b6001600160a01b03166323b872dd33600160009054906101000a90046001600160a01b03166001600160a01b031663cfbf4d976040518163ffffffff1660e01b815260040160206040518083038186803b1580156117ec57600080fd5b505afa158015611800573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118249190612710565b846040518463ffffffff1660e01b8152600401611843939291906129f7565b602060405180830381600087803b15801561185d57600080fd5b505af1158015611871573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189591906126c3565b505b60006118a382846127aa565b905060006064600354836118b791906129c4565b6118c191906129e3565b905080156119cf5760015460405163498dd0c160e01b8152600481018790526001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561190d57600080fd5b505afa158015611921573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119459190612710565b6002546040516323b872dd60e01b81526001600160a01b03928316926323b872dd9261197b9233929091169086906004016129f7565b602060405180830381600087803b15801561199557600080fd5b505af11580156119a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cd91906126c3565b505b6000816119dc85876127aa565b6119e691906127aa565b60015460405163cc74234b60e01b81526004810189905291925060009182916001600160a01b03169063cc74234b9060240160206040518083038186803b158015611a3057600080fd5b505afa158015611a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a689190612791565b1115611c7d5760015460405163cc74234b60e01b8152600481018990526064916001600160a01b03169063cc74234b9060240160206040518083038186803b158015611ab357600080fd5b505afa158015611ac7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aeb9190612791565b611af590846129c4565b611aff91906129e3565b90508015611c7d5760015460405163498dd0c160e01b8152600481018990526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015611b4b57600080fd5b505afa158015611b5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b839190612710565b600154604051636bd8225b60e11b8152600481018a90526001600160a01b03928316926323b872dd92339291169063d7b044b69060240160206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a9190612710565b846040518463ffffffff1660e01b8152600401611c29939291906129f7565b602060405180830381600087803b158015611c4357600080fd5b505af1158015611c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7b91906126c3565b505b6000611c8982846127aa565b90508015611e075760015460405163498dd0c160e01b8152600481018a90526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015611cd557600080fd5b505afa158015611ce9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0d9190612710565b60015460405163a47d29cb60e01b8152600481018b90526001600160a01b03928316926323b872dd92339291169063a47d29cb9060240160206040518083038186803b158015611d5c57600080fd5b505afa158015611d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d949190612710565b846040518463ffffffff1660e01b8152600401611db3939291906129f7565b602060405180830381600087803b158015611dcd57600080fd5b505af1158015611de1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0591906126c3565b505b5050505050505050565b34156125c557600154604051633dc303c160e21b8152600481018390526000916001600160a01b03169063f70c0f049060240160206040518083038186803b158015611e5c57600080fd5b505afa158015611e70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e949190612791565b600154604051633dc303c160e21b8152600481018590529192506000916001600160a01b039091169063f70c0f049060240160206040518083038186803b158015611ede57600080fd5b505afa158015611ef2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f169190612791565b611f2090346127aa565b90508015611fb257604051600090339083908381818185875af1925050503d8060008114611f6a576040519150601f19603f3d011682016040523d82523d6000602084013e611f6f565b606091505b5050905080611fb05760405162461bcd60e51b815260206004820152600d60248201526c1499599d5b990819985a5b1959609a1b60448201526064016104f1565b505b60006064600160009054906101000a90046001600160a01b03166001600160a01b0316632e9eb74f6040518163ffffffff1660e01b815260040160206040518083038186803b15801561200457600080fd5b505afa158015612018573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203c9190612791565b61204690856129c4565b61205091906129e3565b90508015612171576001546040805163cfbf4d9760e01b815290516000926001600160a01b03169163cfbf4d97916004808301926020929190829003018186803b15801561209d57600080fd5b505afa1580156120b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d59190612710565b6001600160a01b03168260405160006040518083038185875af1925050503d806000811461211f576040519150601f19603f3d011682016040523d82523d6000602084013e612124565b606091505b505090508061216f5760405162461bcd60e51b815260206004820152601760248201527614995b99195c995c881c185e5b595b9d0819985a5b1959604a1b60448201526064016104f1565b505b600061217d82856127aa565b9050600060646003548361219191906129c4565b61219b91906129e3565b9050801561223f576002546040516000916001600160a01b03169083908381818185875af1925050503d80600081146121f0576040519150601f19603f3d011682016040523d82523d6000602084013e6121f5565b606091505b505090508061223d5760405162461bcd60e51b815260206004820152601460248201527313dddb995c881c185e5b595b9d0819985a5b195960621b60448201526064016104f1565b505b60008161224c85886127aa565b61225691906127aa565b60015460405163cc74234b60e01b8152600481018a905291925060009182916001600160a01b03169063cc74234b9060240160206040518083038186803b1580156122a057600080fd5b505afa1580156122b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d89190612791565b11156124925760015460405163cc74234b60e01b8152600481018a90526064916001600160a01b03169063cc74234b9060240160206040518083038186803b15801561232357600080fd5b505afa158015612337573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235b9190612791565b61236590846129c4565b61236f91906129e3565b9050801561249257600154604051636bd8225b60e11b8152600481018a90526000916001600160a01b03169063d7b044b69060240160206040518083038186803b1580156123bc57600080fd5b505afa1580156123d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f49190612710565b6001600160a01b03168260405160006040518083038185875af1925050503d806000811461243e576040519150601f19603f3d011682016040523d82523d6000602084013e612443565b606091505b50509050806124905760405162461bcd60e51b81526020600482015260196024820152781059191a5d1a5bdb985b081c185e5b595b9d0819985a5b1959603a1b60448201526064016104f1565b505b600061249e82846127aa565b90508015611e055760015460405163a47d29cb60e01b8152600481018b90526000916001600160a01b03169063a47d29cb9060240160206040518083038186803b1580156124eb57600080fd5b505afa1580156124ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125239190612710565b6001600160a01b03168260405160006040518083038185875af1925050503d806000811461256d576040519150601f19603f3d011682016040523d82523d6000602084013e612572565b606091505b50509050806125bb5760405162461bcd60e51b8152602060048201526015602482015274105c9d1a5cdd081c185e5b595b9d0819985a5b1959605a1b60448201526064016104f1565b5050505050505050505b50565b600080604083850312156125db57600080fd5b82359150602083013560ff811681146125f357600080fd5b809150509250929050565b6001600160a01b03811681146125c557600080fd5b60006020828403121561262557600080fd5b81356113bd816125fe565b60006020828403121561264257600080fd5b5035919050565b6000806040838503121561265c57600080fd5b8235612667816125fe565b946020939093013593505050565b6000806040838503121561268857600080fd5b8235915060208301356125f3816125fe565b6001600160a01b0391909116815260200190565b805180151581146126be57600080fd5b919050565b6000602082840312156126d557600080fd5b6113bd826126ae565b60208082526018908201527731b0b71037b7363c9031329039b2ba10313c9030b236b4b760411b604082015260600190565b60006020828403121561272257600080fd5b81516113bd816125fe565b60208082526019908201527818d85b881bdb9b1e481899481cd95d08189e48185c9d1a5cdd603a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561278a5761278a612760565b5060010190565b6000602082840312156127a357600080fd5b5051919050565b6000828210156127bc576127bc612760565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826127e6576127e66127c1565b500690565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561281c578181015183820152602001612804565b8381111561282b576000848401525b50505050565b600082601f83011261284257600080fd5b815167ffffffffffffffff8082111561285d5761285d6127eb565b604051601f8301601f19908116603f01168101908282118183101715612885576128856127eb565b8160405283815286602085880101111561289e57600080fd5b6128af846020830160208901612801565b9695505050505050565b6000602082840312156128cb57600080fd5b815167ffffffffffffffff8111156128e257600080fd5b6128ee84828501612831565b949350505050565b60008251612908818460208701612801565b9190910192915050565b60008060008060008060008060006101208a8c03121561293157600080fd5b895161293c816125fe565b8099505060208a0151975060408a0151965060608a0151955061296160808b016126ae565b945060a08a0151612971816125fe565b60c08b015160e08c0151919550935067ffffffffffffffff81111561299557600080fd5b6129a18c828d01612831565b9250506101008a01516129b3816125fe565b809150509295985092959850929598565b60008160001904831182151516156129de576129de612760565b500290565b6000826129f2576129f26127c1565b500490565b6001600160a01b03938416815291909216602082015260408101919091526060019056fea26469706673582212207eb3fd8223bbdde29b9b5a79d0af4a59cb53277ce37067134788a9d3b6cf963564736f6c63430008090033

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

000000000000000000000000010be6545e14f1dc50256286d9920e833f809c6a

-----Decoded View---------------
Arg [0] : _genArt721Address (address): 0x010bE6545e14f1DC50256286d9920e833F809C6A

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000010be6545e14f1dc50256286d9920e833f809c6a


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.