ETH Price: $2,400.71 (-3.28%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Purchase210421952024-10-25 11:00:4710 days ago1729854047IN
0xB5C1F9c5...3C3CDf39c
0.1 ETH0.001422115.88361691
Purchase192285822024-02-14 20:29:11264 days ago1707942551IN
0xB5C1F9c5...3C3CDf39c
0.05 ETH0.0048569721.62423522
Purchase192285802024-02-14 20:28:47264 days ago1707942527IN
0xB5C1F9c5...3C3CDf39c
0.05 ETH0.0050387322.43347994
Purchase192285792024-02-14 20:28:35264 days ago1707942515IN
0xB5C1F9c5...3C3CDf39c
0.05 ETH0.0044791419.94206229
Purchase192285562024-02-14 20:23:59264 days ago1707942239IN
0xB5C1F9c5...3C3CDf39c
0.05 ETH0.0044568119.84262397
Purchase192285142024-02-14 20:15:35264 days ago1707941735IN
0xB5C1F9c5...3C3CDf39c
0.05 ETH0.0064197626.56000612
Purchase192284922024-02-14 20:11:11264 days ago1707941471IN
0xB5C1F9c5...3C3CDf39c
0.05 ETH0.0065280327.00794255
Purchase191132902024-01-29 16:11:35280 days ago1706544695IN
0xB5C1F9c5...3C3CDf39c
0.15 ETH0.0047659422.08713999
Purchase191132862024-01-29 16:10:47280 days ago1706544647IN
0xB5C1F9c5...3C3CDf39c
0.15 ETH0.005192824.06539012
Purchase190766182024-01-24 12:52:59285 days ago1706100779IN
0xB5C1F9c5...3C3CDf39c
0.15 ETH0.0032955415.09785484
Purchase To188100992023-12-18 3:07:35322 days ago1702868855IN
0xB5C1F9c5...3C3CDf39c
0 ETH0.0134433179.52461682
Purchase To188100922023-12-18 3:06:11322 days ago1702868771IN
0xB5C1F9c5...3C3CDf39c
0 ETH0.0138688982.04211265
Purchase To188100922023-12-18 3:06:11322 days ago1702868771IN
0xB5C1F9c5...3C3CDf39c
0 ETH0.0138688982.04211265
Purchase To188100882023-12-18 3:05:23322 days ago1702868723IN
0xB5C1F9c5...3C3CDf39c
0 ETH0.0128644776.10587091
Purchase To188100852023-12-18 3:04:47322 days ago1702868687IN
0xB5C1F9c5...3C3CDf39c
0 ETH0.0123565473.09577821
Purchase To188100852023-12-18 3:04:47322 days ago1702868687IN
0xB5C1F9c5...3C3CDf39c
0 ETH0.0123565473.09577821
Purchase To188100852023-12-18 3:04:47322 days ago1702868687IN
0xB5C1F9c5...3C3CDf39c
0 ETH0.0123565473.09577821
Purchase To187953182023-12-16 1:16:35325 days ago1702689395IN
0xB5C1F9c5...3C3CDf39c
0.0333 ETH0.0095370446.33661019
Purchase To187879232023-12-15 0:23:59326 days ago1702599839IN
0xB5C1F9c5...3C3CDf39c
0.0333 ETH0.0078360235.14970606
Purchase To187742362023-12-13 2:20:47328 days ago1702434047IN
0xB5C1F9c5...3C3CDf39c
0.0333 ETH0.0110860249.72804192
Purchase To187739632023-12-13 1:25:35328 days ago1702430735IN
0xB5C1F9c5...3C3CDf39c
0.0333 ETH0.0115792551.94050533
Purchase To187643462023-12-11 17:06:35329 days ago1702314395IN
0xB5C1F9c5...3C3CDf39c
0.0333 ETH0.0100687848.9172664
Purchase To187643362023-12-11 17:04:35329 days ago1702314275IN
0xB5C1F9c5...3C3CDf39c
0.0333 ETH0.0092359444.8710729
Purchase To187643292023-12-11 17:03:11329 days ago1702314191IN
0xB5C1F9c5...3C3CDf39c
0.0333 ETH0.0089458743.46181648
Purchase To187314642023-12-07 2:33:23334 days ago1701916403IN
0xB5C1F9c5...3C3CDf39c
0.0333 ETH0.0085511538.3595574
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
210421952024-10-25 11:00:4710 days ago1729854047
0xB5C1F9c5...3C3CDf39c
0.0594 ETH
210421952024-10-25 11:00:4710 days ago1729854047
0xB5C1F9c5...3C3CDf39c
0.0306 ETH
210421952024-10-25 11:00:4710 days ago1729854047
0xB5C1F9c5...3C3CDf39c
0.01 ETH
192285822024-02-14 20:29:11264 days ago1707942551
0xB5C1F9c5...3C3CDf39c
0.0315 ETH
192285822024-02-14 20:29:11264 days ago1707942551
0xB5C1F9c5...3C3CDf39c
0.0135 ETH
192285822024-02-14 20:29:11264 days ago1707942551
0xB5C1F9c5...3C3CDf39c
0.005 ETH
192285802024-02-14 20:28:47264 days ago1707942527
0xB5C1F9c5...3C3CDf39c
0.0315 ETH
192285802024-02-14 20:28:47264 days ago1707942527
0xB5C1F9c5...3C3CDf39c
0.0135 ETH
192285802024-02-14 20:28:47264 days ago1707942527
0xB5C1F9c5...3C3CDf39c
0.005 ETH
192285792024-02-14 20:28:35264 days ago1707942515
0xB5C1F9c5...3C3CDf39c
0.0315 ETH
192285792024-02-14 20:28:35264 days ago1707942515
0xB5C1F9c5...3C3CDf39c
0.0135 ETH
192285792024-02-14 20:28:35264 days ago1707942515
0xB5C1F9c5...3C3CDf39c
0.005 ETH
192285562024-02-14 20:23:59264 days ago1707942239
0xB5C1F9c5...3C3CDf39c
0.0315 ETH
192285562024-02-14 20:23:59264 days ago1707942239
0xB5C1F9c5...3C3CDf39c
0.0135 ETH
192285562024-02-14 20:23:59264 days ago1707942239
0xB5C1F9c5...3C3CDf39c
0.005 ETH
192285142024-02-14 20:15:35264 days ago1707941735
0xB5C1F9c5...3C3CDf39c
0.0315 ETH
192285142024-02-14 20:15:35264 days ago1707941735
0xB5C1F9c5...3C3CDf39c
0.0135 ETH
192285142024-02-14 20:15:35264 days ago1707941735
0xB5C1F9c5...3C3CDf39c
0.005 ETH
192284922024-02-14 20:11:11264 days ago1707941471
0xB5C1F9c5...3C3CDf39c
0.0315 ETH
192284922024-02-14 20:11:11264 days ago1707941471
0xB5C1F9c5...3C3CDf39c
0.0135 ETH
192284922024-02-14 20:11:11264 days ago1707941471
0xB5C1F9c5...3C3CDf39c
0.005 ETH
191132902024-01-29 16:11:35280 days ago1706544695
0xB5C1F9c5...3C3CDf39c
0.0945 ETH
191132902024-01-29 16:11:35280 days ago1706544695
0xB5C1F9c5...3C3CDf39c
0.0405 ETH
191132902024-01-29 16:11:35280 days ago1706544695
0xB5C1F9c5...3C3CDf39c
0.015 ETH
191132862024-01-29 16:10:47280 days ago1706544647
0xB5C1F9c5...3C3CDf39c
0.0945 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GenArt721Minter_BrightMomentsFlex

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 25 runs

Other Settings:
default evmVersion
File 1 of 7 : GenArt721Minter_BrightMomentsFlex.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-4.5/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin-4.5/contracts/utils/Strings.sol";
import "@openzeppelin-4.5/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_BrightMomentsFlex 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 : 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 3 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 4 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);
}

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 25
  },
  "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"}]

60806040523480156200001157600080fd5b5060405162002ad038038062002ad083398101604081905262000034916200005f565b6001600081905580546001600160a01b0319166001600160a01b039290921691909117905562000091565b6000602082840312156200007257600080fd5b81516001600160a01b03811681146200008a57600080fd5b9392505050565b612a2f80620000a16000396000f3fe6080604052600436106100fa5760003560e01c8063231c2281146100ff578063331a6bf514610121578063393b011c146101415780633a4657b4146101615780633c34b9f0146101ac57806341da7555146101cc578063462add46146101e257806356690aaf14610222578063569f6f921461024f57806362f7a7ed1461026f578063737094171461029c5780637e6906de146102cc5780637f38902b1461030f578063891407c01461032f5780638f84aa091461034257806395e3b0de14610362578063a980960014610382578063efef39a1146103a2578063f4632103146103b5578063f7bd4b88146103d5578063f9f96b9e146103f5575b600080fd5b34801561010b57600080fd5b5061011f61011a36600461258f565b610425565b005b34801561012d57600080fd5b5061011f61013c3660046125da565b6104e2565b34801561014d57600080fd5b5061011f61015c3660046125f7565b6105a0565b34801561016d57600080fd5b5061019961017c366004612610565b600760209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b3480156101b857600080fd5b5061011f6101c736600461263c565b610641565b3480156101d857600080fd5b5061019960035481565b3480156101ee57600080fd5b506102126101fd3660046125f7565b60096020526000908152604090205460ff1681565b60405190151581526020016101a3565b34801561022e57600080fd5b5061019961023d3660046125f7565b600a6020526000908152604090205481565b34801561025b57600080fd5b5061011f61026a3660046125f7565b61071b565b34801561027b57600080fd5b5061019961028a3660046125f7565b60086020526000908152604090205481565b3480156102a857600080fd5b506102126102b73660046125f7565b60046020526000908152604090205460ff1681565b3480156102d857600080fd5b506103026102e73660046125f7565b6005602052600090815260409020546001600160a01b031681565b6040516101a39190612661565b34801561031b57600080fd5b50600154610302906001600160a01b031681565b61019961033d366004612610565b6107d7565b34801561034e57600080fd5b50600254610302906001600160a01b031681565b34801561036e57600080fd5b5061011f61037d3660046125f7565b6111c3565b34801561038e57600080fd5b5061019961039d3660046125f7565b61128f565b6101996103b03660046125f7565b611392565b3480156103c157600080fd5b506101996103d03660046125f7565b6113a4565b3480156103e157600080fd5b5061011f6103f03660046125f7565b611452565b34801561040157600080fd5b506102126104103660046125f7565b60066020526000908152604090205460ff1681565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf90610455903390600401612661565b60206040518083038186803b15801561046d57600080fd5b505afa158015610481573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a5919061268a565b6104ca5760405162461bcd60e51b81526004016104c1906126a5565b60405180910390fd5b60009182526008602052604090912060ff9091169055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf90610512903390600401612661565b60206040518083038186803b15801561052a57600080fd5b505afa15801561053e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610562919061268a565b61057e5760405162461bcd60e51b81526004016104c1906126a5565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf906105d0903390600401612661565b60206040518083038186803b1580156105e857600080fd5b505afa1580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610620919061268a565b61063c5760405162461bcd60e51b81526004016104c1906126a5565b600355565b60015460405163a47d29cb60e01b8152600481018490526001600160a01b039091169063a47d29cb9060240160206040518083038186803b15801561068557600080fd5b505afa158015610699573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bd91906126d7565b6001600160a01b0316336001600160a01b0316146106ed5760405162461bcd60e51b81526004016104c1906126f4565b60009182526005602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061074b903390600401612661565b60206040518083038186803b15801561076357600080fd5b505afa158015610777573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079b919061268a565b6107b75760405162461bcd60e51b81526004016104c1906126a5565b6000908152600660205260409020805460ff19811660ff90911615179055565b60006002600054141561082c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104c1565b600260009081558281526009602052604090205460ff161561089e5760405162461bcd60e51b815260206004820152602560248201527f4d6178696d756d206e756d626572206f6620696e766f636174696f6e732072656044820152641858da195960da1b60648201526084016104c1565b60008281526006602052604090205460ff16156108f7573332146108f75760405162461bcd60e51b815260206004820152601060248201526f4e6f20436f6e7472616374204275797360801b60448201526064016104c1565b600082815260086020526040902054156109a2576000828152600860209081526040808320543384526007835281842086855290925290912054106109765760405162461bcd60e51b815260206004820152601560248201527414995858da1959081b5a5b9d1a5b99c81b1a5b5a5d605a1b60448201526064016104c1565b336000908152600760209081526040808320858452909152812080549161099c8361273d565b91905055505b600154604051630d4d151360e01b81526001600160a01b038581166004830152602482018590523360448301526000921690630d4d151390606401602060405180830381600087803b1580156109f757600080fd5b505af1158015610a0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2f9190612758565b6000848152600a602052604090205490915015801590610a7457506000838152600a6020526040902054610a6590600190612771565b610a72620f42408361279e565b145b15610a93576000838152600960205260409020805460ff191660011790555b60008381526004602052604090205460ff1615610c05576000838152600560209081526040918290205482516305e667fd60e21b815292516001600160a01b03909116926317999ff4926004808301939192829003018186803b158015610af957600080fd5b505afa158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b31919061268a565b610b745760405162461bcd60e51b8152602060048201526014602482015273626f6e7573206d7573742062652061637469766560601b60448201526064016104c1565b6000838152600560205260409081902054905163f473237d60e01b81526001600160a01b039091169063f473237d90610bb1903390600401612661565b602060405180830381600087803b158015610bcb57600080fd5b505af1158015610bdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c03919061268a565b505b6040516208aa8960eb1b602082015260230160408051808303601f190181529082905280516020909101206001546320927ec960e01b83526004830186905290916001600160a01b03909116906320927ec99060240160006040518083038186803b158015610c7357600080fd5b505afa158015610c87573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610caf919081019061287f565b604051602001610cbf91906128bb565b60405160208183030381529060405280519060200120146110e3573415610d4e5760405162461bcd60e51b815260206004820152603f60248201527f746869732070726f6a6563742061636365707473206120646966666572656e7460448201527f2063757272656e637920616e642063616e6e6f7420616363657074204554480060648201526084016104c1565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b158015610d9257600080fd5b505afa158015610da6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dca9190612758565b60015460405163498dd0c160e01b8152600481018690526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015610e0e57600080fd5b505afa158015610e22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4691906126d7565b6001600160a01b031663dd62ed3e33306040518363ffffffff1660e01b8152600401610e739291906128d7565b60206040518083038186803b158015610e8b57600080fd5b505afa158015610e9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec39190612758565b1015610f1c5760405162461bcd60e51b815260206004820152602260248201527f496e73756666696369656e742046756e647320417070726f76656420666f72206044820152610a8b60f31b60648201526084016104c1565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b158015610f6057600080fd5b505afa158015610f74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f989190612758565b60015460405163498dd0c160e01b8152600481018690526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015610fdc57600080fd5b505afa158015610ff0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101491906126d7565b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161103f9190612661565b60206040518083038186803b15801561105757600080fd5b505afa15801561106b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108f9190612758565b10156110d55760405162461bcd60e51b815260206004820152601560248201527424b739bab33334b1b4b2b73a103130b630b731b29760591b60448201526064016104c1565b6110de836115b5565b6111b7565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b15801561112757600080fd5b505afa15801561113b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115f9190612758565b3410156111ae5760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e64206d696e696d756d2076616c756520746f206d696e742160448201526064016104c1565b6111b783611dd8565b60016000559392505050565b60015460405163a47d29cb60e01b8152600481018390526001600160a01b039091169063a47d29cb9060240160206040518083038186803b15801561120757600080fd5b505afa15801561121b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123f91906126d7565b6001600160a01b0316336001600160a01b03161461126f5760405162461bcd60e51b81526004016104c1906126f4565b6000908152600460205260409020805460ff19811660ff90911615179055565b60015460405163498dd0c160e01b81526004810183905260009182916001600160a01b039091169063498dd0c19060240160206040518083038186803b1580156112d857600080fd5b505afa1580156112ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131091906126d7565b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161133b9190612661565b60206040518083038186803b15801561135357600080fd5b505afa158015611367573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138b9190612758565b9392505050565b600061139e33836107d7565b92915050565b60015460405163498dd0c160e01b81526004810183905260009182916001600160a01b039091169063498dd0c19060240160206040518083038186803b1580156113ed57600080fd5b505afa158015611401573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142591906126d7565b6001600160a01b031663dd62ed3e33306040518363ffffffff1660e01b815260040161133b9291906128d7565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf90611482903390600401612661565b60206040518083038186803b15801561149a57600080fd5b505afa1580156114ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d2919061268a565b6114ee5760405162461bcd60e51b81526004016104c1906126a5565b6001546040516346161b1160e11b81526004810183905260009182916001600160a01b0390911690638c2c36229060240160006040518083038186803b15801561153757600080fd5b505afa15801561154b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261157391908101906128f1565b5050506000898152600a6020526040902083905550909550909350505050818110156115b0576000838152600960205260409020805460ff191690555b505050565b600154604051633dc303c160e21b8152600481018390526000916001600160a01b03169063f70c0f049060240160206040518083038186803b1580156115fa57600080fd5b505afa15801561160e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116329190612758565b905060006064600160009054906101000a90046001600160a01b03166001600160a01b0316632e9eb74f6040518163ffffffff1660e01b815260040160206040518083038186803b15801561168657600080fd5b505afa15801561169a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116be9190612758565b6116c890846129a2565b6116d291906129c1565b9050801561185e5760015460405163498dd0c160e01b8152600481018590526001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561171e57600080fd5b505afa158015611732573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175691906126d7565b6001600160a01b03166323b872dd33600160009054906101000a90046001600160a01b03166001600160a01b031663cfbf4d976040518163ffffffff1660e01b815260040160206040518083038186803b1580156117b357600080fd5b505afa1580156117c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117eb91906126d7565b846040518463ffffffff1660e01b815260040161180a939291906129d5565b602060405180830381600087803b15801561182457600080fd5b505af1158015611838573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185c919061268a565b505b600061186a8284612771565b9050600060646003548361187e91906129a2565b61188891906129c1565b905080156119965760015460405163498dd0c160e01b8152600481018790526001600160a01b039091169063498dd0c19060240160206040518083038186803b1580156118d457600080fd5b505afa1580156118e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190c91906126d7565b6002546040516323b872dd60e01b81526001600160a01b03928316926323b872dd926119429233929091169086906004016129d5565b602060405180830381600087803b15801561195c57600080fd5b505af1158015611970573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611994919061268a565b505b6000816119a38587612771565b6119ad9190612771565b60015460405163cc74234b60e01b81526004810189905291925060009182916001600160a01b03169063cc74234b9060240160206040518083038186803b1580156119f757600080fd5b505afa158015611a0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2f9190612758565b1115611c445760015460405163cc74234b60e01b8152600481018990526064916001600160a01b03169063cc74234b9060240160206040518083038186803b158015611a7a57600080fd5b505afa158015611a8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab29190612758565b611abc90846129a2565b611ac691906129c1565b90508015611c445760015460405163498dd0c160e01b8152600481018990526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015611b1257600080fd5b505afa158015611b26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b4a91906126d7565b600154604051636bd8225b60e11b8152600481018a90526001600160a01b03928316926323b872dd92339291169063d7b044b69060240160206040518083038186803b158015611b9957600080fd5b505afa158015611bad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bd191906126d7565b846040518463ffffffff1660e01b8152600401611bf0939291906129d5565b602060405180830381600087803b158015611c0a57600080fd5b505af1158015611c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c42919061268a565b505b6000611c508284612771565b90508015611dce5760015460405163498dd0c160e01b8152600481018a90526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015611c9c57600080fd5b505afa158015611cb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd491906126d7565b60015460405163a47d29cb60e01b8152600481018b90526001600160a01b03928316926323b872dd92339291169063a47d29cb9060240160206040518083038186803b158015611d2357600080fd5b505afa158015611d37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5b91906126d7565b846040518463ffffffff1660e01b8152600401611d7a939291906129d5565b602060405180830381600087803b158015611d9457600080fd5b505af1158015611da8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dcc919061268a565b505b5050505050505050565b341561258c57600154604051633dc303c160e21b8152600481018390526000916001600160a01b03169063f70c0f049060240160206040518083038186803b158015611e2357600080fd5b505afa158015611e37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5b9190612758565b600154604051633dc303c160e21b8152600481018590529192506000916001600160a01b039091169063f70c0f049060240160206040518083038186803b158015611ea557600080fd5b505afa158015611eb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edd9190612758565b611ee79034612771565b90508015611f7957604051600090339083908381818185875af1925050503d8060008114611f31576040519150601f19603f3d011682016040523d82523d6000602084013e611f36565b606091505b5050905080611f775760405162461bcd60e51b815260206004820152600d60248201526c1499599d5b990819985a5b1959609a1b60448201526064016104c1565b505b60006064600160009054906101000a90046001600160a01b03166001600160a01b0316632e9eb74f6040518163ffffffff1660e01b815260040160206040518083038186803b158015611fcb57600080fd5b505afa158015611fdf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120039190612758565b61200d90856129a2565b61201791906129c1565b90508015612138576001546040805163cfbf4d9760e01b815290516000926001600160a01b03169163cfbf4d97916004808301926020929190829003018186803b15801561206457600080fd5b505afa158015612078573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209c91906126d7565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146120e6576040519150601f19603f3d011682016040523d82523d6000602084013e6120eb565b606091505b50509050806121365760405162461bcd60e51b815260206004820152601760248201527614995b99195c995c881c185e5b595b9d0819985a5b1959604a1b60448201526064016104c1565b505b60006121448285612771565b9050600060646003548361215891906129a2565b61216291906129c1565b90508015612206576002546040516000916001600160a01b03169083908381818185875af1925050503d80600081146121b7576040519150601f19603f3d011682016040523d82523d6000602084013e6121bc565b606091505b50509050806122045760405162461bcd60e51b815260206004820152601460248201527313dddb995c881c185e5b595b9d0819985a5b195960621b60448201526064016104c1565b505b6000816122138588612771565b61221d9190612771565b60015460405163cc74234b60e01b8152600481018a905291925060009182916001600160a01b03169063cc74234b9060240160206040518083038186803b15801561226757600080fd5b505afa15801561227b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229f9190612758565b11156124595760015460405163cc74234b60e01b8152600481018a90526064916001600160a01b03169063cc74234b9060240160206040518083038186803b1580156122ea57600080fd5b505afa1580156122fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123229190612758565b61232c90846129a2565b61233691906129c1565b9050801561245957600154604051636bd8225b60e11b8152600481018a90526000916001600160a01b03169063d7b044b69060240160206040518083038186803b15801561238357600080fd5b505afa158015612397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123bb91906126d7565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114612405576040519150601f19603f3d011682016040523d82523d6000602084013e61240a565b606091505b50509050806124575760405162461bcd60e51b81526020600482015260196024820152781059191a5d1a5bdb985b081c185e5b595b9d0819985a5b1959603a1b60448201526064016104c1565b505b60006124658284612771565b90508015611dcc5760015460405163a47d29cb60e01b8152600481018b90526000916001600160a01b03169063a47d29cb9060240160206040518083038186803b1580156124b257600080fd5b505afa1580156124c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ea91906126d7565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114612534576040519150601f19603f3d011682016040523d82523d6000602084013e612539565b606091505b50509050806125825760405162461bcd60e51b8152602060048201526015602482015274105c9d1a5cdd081c185e5b595b9d0819985a5b1959605a1b60448201526064016104c1565b5050505050505050505b50565b600080604083850312156125a257600080fd5b82359150602083013560ff811681146125ba57600080fd5b809150509250929050565b6001600160a01b038116811461258c57600080fd5b6000602082840312156125ec57600080fd5b813561138b816125c5565b60006020828403121561260957600080fd5b5035919050565b6000806040838503121561262357600080fd5b823561262e816125c5565b946020939093013593505050565b6000806040838503121561264f57600080fd5b8235915060208301356125ba816125c5565b6001600160a01b0391909116815260200190565b8051801515811461268557600080fd5b919050565b60006020828403121561269c57600080fd5b61138b82612675565b60208082526018908201527731b0b71037b7363c9031329039b2ba10313c9030b236b4b760411b604082015260600190565b6000602082840312156126e957600080fd5b815161138b816125c5565b60208082526019908201527818d85b881bdb9b1e481899481cd95d08189e48185c9d1a5cdd603a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561275157612751612727565b5060010190565b60006020828403121561276a57600080fd5b5051919050565b60008282101561278357612783612727565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826127ad576127ad612788565b500690565b634e487b7160e01b600052604160045260246000fd5b60005b838110156127e35781810151838201526020016127cb565b838111156127f2576000848401525b50505050565b600082601f83011261280957600080fd5b81516001600160401b0380821115612823576128236127b2565b604051601f8301601f19908116603f0116810190828211818310171561284b5761284b6127b2565b8160405283815286602085880101111561286457600080fd5b6128758460208301602089016127c8565b9695505050505050565b60006020828403121561289157600080fd5b81516001600160401b038111156128a757600080fd5b6128b3848285016127f8565b949350505050565b600082516128cd8184602087016127c8565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b60008060008060008060008060006101208a8c03121561291057600080fd5b895161291b816125c5565b8099505060208a0151975060408a0151965060608a0151955061294060808b01612675565b945060a08a0151612950816125c5565b60c08b015160e08c015191955093506001600160401b0381111561297357600080fd5b61297f8c828d016127f8565b9250506101008a0151612991816125c5565b809150509295985092959850929598565b60008160001904831182151516156129bc576129bc612727565b500290565b6000826129d0576129d0612788565b500490565b6001600160a01b03938416815291909216602082015260408101919091526060019056fea26469706673582212208220d6a274542b7a1e42883754c9b7b4668521690f8527d416b9da8433d1b06464736f6c634300080900330000000000000000000000007c3ea2b7b3befa1115ab51c09f0c9f245c500b18

Deployed Bytecode

0x6080604052600436106100fa5760003560e01c8063231c2281146100ff578063331a6bf514610121578063393b011c146101415780633a4657b4146101615780633c34b9f0146101ac57806341da7555146101cc578063462add46146101e257806356690aaf14610222578063569f6f921461024f57806362f7a7ed1461026f578063737094171461029c5780637e6906de146102cc5780637f38902b1461030f578063891407c01461032f5780638f84aa091461034257806395e3b0de14610362578063a980960014610382578063efef39a1146103a2578063f4632103146103b5578063f7bd4b88146103d5578063f9f96b9e146103f5575b600080fd5b34801561010b57600080fd5b5061011f61011a36600461258f565b610425565b005b34801561012d57600080fd5b5061011f61013c3660046125da565b6104e2565b34801561014d57600080fd5b5061011f61015c3660046125f7565b6105a0565b34801561016d57600080fd5b5061019961017c366004612610565b600760209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b3480156101b857600080fd5b5061011f6101c736600461263c565b610641565b3480156101d857600080fd5b5061019960035481565b3480156101ee57600080fd5b506102126101fd3660046125f7565b60096020526000908152604090205460ff1681565b60405190151581526020016101a3565b34801561022e57600080fd5b5061019961023d3660046125f7565b600a6020526000908152604090205481565b34801561025b57600080fd5b5061011f61026a3660046125f7565b61071b565b34801561027b57600080fd5b5061019961028a3660046125f7565b60086020526000908152604090205481565b3480156102a857600080fd5b506102126102b73660046125f7565b60046020526000908152604090205460ff1681565b3480156102d857600080fd5b506103026102e73660046125f7565b6005602052600090815260409020546001600160a01b031681565b6040516101a39190612661565b34801561031b57600080fd5b50600154610302906001600160a01b031681565b61019961033d366004612610565b6107d7565b34801561034e57600080fd5b50600254610302906001600160a01b031681565b34801561036e57600080fd5b5061011f61037d3660046125f7565b6111c3565b34801561038e57600080fd5b5061019961039d3660046125f7565b61128f565b6101996103b03660046125f7565b611392565b3480156103c157600080fd5b506101996103d03660046125f7565b6113a4565b3480156103e157600080fd5b5061011f6103f03660046125f7565b611452565b34801561040157600080fd5b506102126104103660046125f7565b60066020526000908152604090205460ff1681565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf90610455903390600401612661565b60206040518083038186803b15801561046d57600080fd5b505afa158015610481573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a5919061268a565b6104ca5760405162461bcd60e51b81526004016104c1906126a5565b60405180910390fd5b60009182526008602052604090912060ff9091169055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf90610512903390600401612661565b60206040518083038186803b15801561052a57600080fd5b505afa15801561053e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610562919061268a565b61057e5760405162461bcd60e51b81526004016104c1906126a5565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf906105d0903390600401612661565b60206040518083038186803b1580156105e857600080fd5b505afa1580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610620919061268a565b61063c5760405162461bcd60e51b81526004016104c1906126a5565b600355565b60015460405163a47d29cb60e01b8152600481018490526001600160a01b039091169063a47d29cb9060240160206040518083038186803b15801561068557600080fd5b505afa158015610699573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bd91906126d7565b6001600160a01b0316336001600160a01b0316146106ed5760405162461bcd60e51b81526004016104c1906126f4565b60009182526005602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf9061074b903390600401612661565b60206040518083038186803b15801561076357600080fd5b505afa158015610777573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079b919061268a565b6107b75760405162461bcd60e51b81526004016104c1906126a5565b6000908152600660205260409020805460ff19811660ff90911615179055565b60006002600054141561082c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104c1565b600260009081558281526009602052604090205460ff161561089e5760405162461bcd60e51b815260206004820152602560248201527f4d6178696d756d206e756d626572206f6620696e766f636174696f6e732072656044820152641858da195960da1b60648201526084016104c1565b60008281526006602052604090205460ff16156108f7573332146108f75760405162461bcd60e51b815260206004820152601060248201526f4e6f20436f6e7472616374204275797360801b60448201526064016104c1565b600082815260086020526040902054156109a2576000828152600860209081526040808320543384526007835281842086855290925290912054106109765760405162461bcd60e51b815260206004820152601560248201527414995858da1959081b5a5b9d1a5b99c81b1a5b5a5d605a1b60448201526064016104c1565b336000908152600760209081526040808320858452909152812080549161099c8361273d565b91905055505b600154604051630d4d151360e01b81526001600160a01b038581166004830152602482018590523360448301526000921690630d4d151390606401602060405180830381600087803b1580156109f757600080fd5b505af1158015610a0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2f9190612758565b6000848152600a602052604090205490915015801590610a7457506000838152600a6020526040902054610a6590600190612771565b610a72620f42408361279e565b145b15610a93576000838152600960205260409020805460ff191660011790555b60008381526004602052604090205460ff1615610c05576000838152600560209081526040918290205482516305e667fd60e21b815292516001600160a01b03909116926317999ff4926004808301939192829003018186803b158015610af957600080fd5b505afa158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b31919061268a565b610b745760405162461bcd60e51b8152602060048201526014602482015273626f6e7573206d7573742062652061637469766560601b60448201526064016104c1565b6000838152600560205260409081902054905163f473237d60e01b81526001600160a01b039091169063f473237d90610bb1903390600401612661565b602060405180830381600087803b158015610bcb57600080fd5b505af1158015610bdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c03919061268a565b505b6040516208aa8960eb1b602082015260230160408051808303601f190181529082905280516020909101206001546320927ec960e01b83526004830186905290916001600160a01b03909116906320927ec99060240160006040518083038186803b158015610c7357600080fd5b505afa158015610c87573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610caf919081019061287f565b604051602001610cbf91906128bb565b60405160208183030381529060405280519060200120146110e3573415610d4e5760405162461bcd60e51b815260206004820152603f60248201527f746869732070726f6a6563742061636365707473206120646966666572656e7460448201527f2063757272656e637920616e642063616e6e6f7420616363657074204554480060648201526084016104c1565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b158015610d9257600080fd5b505afa158015610da6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dca9190612758565b60015460405163498dd0c160e01b8152600481018690526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015610e0e57600080fd5b505afa158015610e22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4691906126d7565b6001600160a01b031663dd62ed3e33306040518363ffffffff1660e01b8152600401610e739291906128d7565b60206040518083038186803b158015610e8b57600080fd5b505afa158015610e9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec39190612758565b1015610f1c5760405162461bcd60e51b815260206004820152602260248201527f496e73756666696369656e742046756e647320417070726f76656420666f72206044820152610a8b60f31b60648201526084016104c1565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b158015610f6057600080fd5b505afa158015610f74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f989190612758565b60015460405163498dd0c160e01b8152600481018690526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015610fdc57600080fd5b505afa158015610ff0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101491906126d7565b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161103f9190612661565b60206040518083038186803b15801561105757600080fd5b505afa15801561106b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108f9190612758565b10156110d55760405162461bcd60e51b815260206004820152601560248201527424b739bab33334b1b4b2b73a103130b630b731b29760591b60448201526064016104c1565b6110de836115b5565b6111b7565b600154604051633dc303c160e21b8152600481018590526001600160a01b039091169063f70c0f049060240160206040518083038186803b15801561112757600080fd5b505afa15801561113b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115f9190612758565b3410156111ae5760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e64206d696e696d756d2076616c756520746f206d696e742160448201526064016104c1565b6111b783611dd8565b60016000559392505050565b60015460405163a47d29cb60e01b8152600481018390526001600160a01b039091169063a47d29cb9060240160206040518083038186803b15801561120757600080fd5b505afa15801561121b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123f91906126d7565b6001600160a01b0316336001600160a01b03161461126f5760405162461bcd60e51b81526004016104c1906126f4565b6000908152600460205260409020805460ff19811660ff90911615179055565b60015460405163498dd0c160e01b81526004810183905260009182916001600160a01b039091169063498dd0c19060240160206040518083038186803b1580156112d857600080fd5b505afa1580156112ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131091906126d7565b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161133b9190612661565b60206040518083038186803b15801561135357600080fd5b505afa158015611367573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138b9190612758565b9392505050565b600061139e33836107d7565b92915050565b60015460405163498dd0c160e01b81526004810183905260009182916001600160a01b039091169063498dd0c19060240160206040518083038186803b1580156113ed57600080fd5b505afa158015611401573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142591906126d7565b6001600160a01b031663dd62ed3e33306040518363ffffffff1660e01b815260040161133b9291906128d7565b600154604051633af32abf60e01b81526001600160a01b0390911690633af32abf90611482903390600401612661565b60206040518083038186803b15801561149a57600080fd5b505afa1580156114ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d2919061268a565b6114ee5760405162461bcd60e51b81526004016104c1906126a5565b6001546040516346161b1160e11b81526004810183905260009182916001600160a01b0390911690638c2c36229060240160006040518083038186803b15801561153757600080fd5b505afa15801561154b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261157391908101906128f1565b5050506000898152600a6020526040902083905550909550909350505050818110156115b0576000838152600960205260409020805460ff191690555b505050565b600154604051633dc303c160e21b8152600481018390526000916001600160a01b03169063f70c0f049060240160206040518083038186803b1580156115fa57600080fd5b505afa15801561160e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116329190612758565b905060006064600160009054906101000a90046001600160a01b03166001600160a01b0316632e9eb74f6040518163ffffffff1660e01b815260040160206040518083038186803b15801561168657600080fd5b505afa15801561169a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116be9190612758565b6116c890846129a2565b6116d291906129c1565b9050801561185e5760015460405163498dd0c160e01b8152600481018590526001600160a01b039091169063498dd0c19060240160206040518083038186803b15801561171e57600080fd5b505afa158015611732573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175691906126d7565b6001600160a01b03166323b872dd33600160009054906101000a90046001600160a01b03166001600160a01b031663cfbf4d976040518163ffffffff1660e01b815260040160206040518083038186803b1580156117b357600080fd5b505afa1580156117c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117eb91906126d7565b846040518463ffffffff1660e01b815260040161180a939291906129d5565b602060405180830381600087803b15801561182457600080fd5b505af1158015611838573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185c919061268a565b505b600061186a8284612771565b9050600060646003548361187e91906129a2565b61188891906129c1565b905080156119965760015460405163498dd0c160e01b8152600481018790526001600160a01b039091169063498dd0c19060240160206040518083038186803b1580156118d457600080fd5b505afa1580156118e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190c91906126d7565b6002546040516323b872dd60e01b81526001600160a01b03928316926323b872dd926119429233929091169086906004016129d5565b602060405180830381600087803b15801561195c57600080fd5b505af1158015611970573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611994919061268a565b505b6000816119a38587612771565b6119ad9190612771565b60015460405163cc74234b60e01b81526004810189905291925060009182916001600160a01b03169063cc74234b9060240160206040518083038186803b1580156119f757600080fd5b505afa158015611a0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2f9190612758565b1115611c445760015460405163cc74234b60e01b8152600481018990526064916001600160a01b03169063cc74234b9060240160206040518083038186803b158015611a7a57600080fd5b505afa158015611a8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab29190612758565b611abc90846129a2565b611ac691906129c1565b90508015611c445760015460405163498dd0c160e01b8152600481018990526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015611b1257600080fd5b505afa158015611b26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b4a91906126d7565b600154604051636bd8225b60e11b8152600481018a90526001600160a01b03928316926323b872dd92339291169063d7b044b69060240160206040518083038186803b158015611b9957600080fd5b505afa158015611bad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bd191906126d7565b846040518463ffffffff1660e01b8152600401611bf0939291906129d5565b602060405180830381600087803b158015611c0a57600080fd5b505af1158015611c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c42919061268a565b505b6000611c508284612771565b90508015611dce5760015460405163498dd0c160e01b8152600481018a90526001600160a01b039091169063498dd0c19060240160206040518083038186803b158015611c9c57600080fd5b505afa158015611cb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd491906126d7565b60015460405163a47d29cb60e01b8152600481018b90526001600160a01b03928316926323b872dd92339291169063a47d29cb9060240160206040518083038186803b158015611d2357600080fd5b505afa158015611d37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5b91906126d7565b846040518463ffffffff1660e01b8152600401611d7a939291906129d5565b602060405180830381600087803b158015611d9457600080fd5b505af1158015611da8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dcc919061268a565b505b5050505050505050565b341561258c57600154604051633dc303c160e21b8152600481018390526000916001600160a01b03169063f70c0f049060240160206040518083038186803b158015611e2357600080fd5b505afa158015611e37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5b9190612758565b600154604051633dc303c160e21b8152600481018590529192506000916001600160a01b039091169063f70c0f049060240160206040518083038186803b158015611ea557600080fd5b505afa158015611eb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edd9190612758565b611ee79034612771565b90508015611f7957604051600090339083908381818185875af1925050503d8060008114611f31576040519150601f19603f3d011682016040523d82523d6000602084013e611f36565b606091505b5050905080611f775760405162461bcd60e51b815260206004820152600d60248201526c1499599d5b990819985a5b1959609a1b60448201526064016104c1565b505b60006064600160009054906101000a90046001600160a01b03166001600160a01b0316632e9eb74f6040518163ffffffff1660e01b815260040160206040518083038186803b158015611fcb57600080fd5b505afa158015611fdf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120039190612758565b61200d90856129a2565b61201791906129c1565b90508015612138576001546040805163cfbf4d9760e01b815290516000926001600160a01b03169163cfbf4d97916004808301926020929190829003018186803b15801561206457600080fd5b505afa158015612078573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209c91906126d7565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146120e6576040519150601f19603f3d011682016040523d82523d6000602084013e6120eb565b606091505b50509050806121365760405162461bcd60e51b815260206004820152601760248201527614995b99195c995c881c185e5b595b9d0819985a5b1959604a1b60448201526064016104c1565b505b60006121448285612771565b9050600060646003548361215891906129a2565b61216291906129c1565b90508015612206576002546040516000916001600160a01b03169083908381818185875af1925050503d80600081146121b7576040519150601f19603f3d011682016040523d82523d6000602084013e6121bc565b606091505b50509050806122045760405162461bcd60e51b815260206004820152601460248201527313dddb995c881c185e5b595b9d0819985a5b195960621b60448201526064016104c1565b505b6000816122138588612771565b61221d9190612771565b60015460405163cc74234b60e01b8152600481018a905291925060009182916001600160a01b03169063cc74234b9060240160206040518083038186803b15801561226757600080fd5b505afa15801561227b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229f9190612758565b11156124595760015460405163cc74234b60e01b8152600481018a90526064916001600160a01b03169063cc74234b9060240160206040518083038186803b1580156122ea57600080fd5b505afa1580156122fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123229190612758565b61232c90846129a2565b61233691906129c1565b9050801561245957600154604051636bd8225b60e11b8152600481018a90526000916001600160a01b03169063d7b044b69060240160206040518083038186803b15801561238357600080fd5b505afa158015612397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123bb91906126d7565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114612405576040519150601f19603f3d011682016040523d82523d6000602084013e61240a565b606091505b50509050806124575760405162461bcd60e51b81526020600482015260196024820152781059191a5d1a5bdb985b081c185e5b595b9d0819985a5b1959603a1b60448201526064016104c1565b505b60006124658284612771565b90508015611dcc5760015460405163a47d29cb60e01b8152600481018b90526000916001600160a01b03169063a47d29cb9060240160206040518083038186803b1580156124b257600080fd5b505afa1580156124c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ea91906126d7565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114612534576040519150601f19603f3d011682016040523d82523d6000602084013e612539565b606091505b50509050806125825760405162461bcd60e51b8152602060048201526015602482015274105c9d1a5cdd081c185e5b595b9d0819985a5b1959605a1b60448201526064016104c1565b5050505050505050505b50565b600080604083850312156125a257600080fd5b82359150602083013560ff811681146125ba57600080fd5b809150509250929050565b6001600160a01b038116811461258c57600080fd5b6000602082840312156125ec57600080fd5b813561138b816125c5565b60006020828403121561260957600080fd5b5035919050565b6000806040838503121561262357600080fd5b823561262e816125c5565b946020939093013593505050565b6000806040838503121561264f57600080fd5b8235915060208301356125ba816125c5565b6001600160a01b0391909116815260200190565b8051801515811461268557600080fd5b919050565b60006020828403121561269c57600080fd5b61138b82612675565b60208082526018908201527731b0b71037b7363c9031329039b2ba10313c9030b236b4b760411b604082015260600190565b6000602082840312156126e957600080fd5b815161138b816125c5565b60208082526019908201527818d85b881bdb9b1e481899481cd95d08189e48185c9d1a5cdd603a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561275157612751612727565b5060010190565b60006020828403121561276a57600080fd5b5051919050565b60008282101561278357612783612727565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826127ad576127ad612788565b500690565b634e487b7160e01b600052604160045260246000fd5b60005b838110156127e35781810151838201526020016127cb565b838111156127f2576000848401525b50505050565b600082601f83011261280957600080fd5b81516001600160401b0380821115612823576128236127b2565b604051601f8301601f19908116603f0116810190828211818310171561284b5761284b6127b2565b8160405283815286602085880101111561286457600080fd5b6128758460208301602089016127c8565b9695505050505050565b60006020828403121561289157600080fd5b81516001600160401b038111156128a757600080fd5b6128b3848285016127f8565b949350505050565b600082516128cd8184602087016127c8565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b60008060008060008060008060006101208a8c03121561291057600080fd5b895161291b816125c5565b8099505060208a0151975060408a0151965060608a0151955061294060808b01612675565b945060a08a0151612950816125c5565b60c08b015160e08c015191955093506001600160401b0381111561297357600080fd5b61297f8c828d016127f8565b9250506101008a0151612991816125c5565b809150509295985092959850929598565b60008160001904831182151516156129bc576129bc612727565b500290565b6000826129d0576129d0612788565b500490565b6001600160a01b03938416815291909216602082015260408101919091526060019056fea26469706673582212208220d6a274542b7a1e42883754c9b7b4668521690f8527d416b9da8433d1b06464736f6c63430008090033

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

0000000000000000000000007c3ea2b7b3befa1115ab51c09f0c9f245c500b18

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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007c3ea2b7b3befa1115ab51c09f0c9f245c500b18


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.