ETH Price: $3,409.67 (+2.89%)

Contract

0x1Dc374b9E840083778dB8D1fF1C4453c426Fb1c9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ArtMarketplaceV6

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 5 : ArtMarketplaceV6.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol";

contract ArtMarketplaceV6 is Ownable {
    uint256 private constant BPS = 10_000;
    uint256 private constant BID_INCREASE_THRESHOLD_ETH = 0.2 ether;
    uint256 private constant BID_INCREASE_THRESHOLD_USDC = 300 * USDC_CONSTANT;
    uint8 private constant DEFAULT_PLATFORM_FEE = 30; // whole % points
    uint256 private constant EXTENSION_TIME = 10 minutes;
    uint256 private constant INIT_AUCTION_DURATION = 24 hours;
    uint256 private constant MIN_BID_ETH = 0.1 ether;
    uint256 private constant MIN_BID_USDC = 30 * USDC_CONSTANT;
    uint256 private constant MIN_BID_INCREASE_PRE = 2_000;
    uint256 private constant MIN_BID_INCREASE_POST = 1_000;
    uint256 private constant SAFE_GAS_LIMIT = 30_000;
    // Mainnet USDC: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
    // Sepolia USDC: 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238
    address private immutable USDC;
    uint256 private constant USDC_CONSTANT = 10**6; // USDC uses 6 decimals instead of eth's 18

    address public beneficiary;
    bool public paused;

    struct Auction {
        uint24 offsetFromEnd;
        uint72 amount;
        address bidder;
    }

    struct AuctionConfig {
        address artist;
        uint8 platformFee; // in whole % points (30 = 30%)
        uint8 royalty; // in whole % points, should be 0 for primary sales
        uint80 buyNowStartTime;
        uint80 auctionStartTime;
        uint88 buyNowPrice;
        uint88 reservePrice;
        uint88 preBidPrice;
        address seller; // when seller is schedueled as 0x0, seller defaults to the artist (i.e. primary sale)
        bool usdcFlag; // true for usdc, false for eth
    }

    mapping(bytes32 => AuctionConfig) public auctionConfig;
    mapping(uint256 => Auction) public auctionIdToAuction;
    mapping(uint256 => bytes32) public auctionIdToConfigHash;

    event BidMade(
        uint256 indexed auctionId,
        address indexed collectionAddress,
        uint256 indexed tokenId,
        address bidder,
        uint256 amount,
        uint256 timestamp
    );
    struct Receipt {
        address orderMaker;
        address orderTaker;
        address collection;
        uint256 tokenId;
        address currency; // 0x0 when ETH sale
        uint256 salePrice; // in wei (salePrice = funds to seller + platformFee + royalty = price buyer paid)
        uint256 platformFee; // in wei
        uint256 royalty; // in wei
    }
    event Sale(Receipt[] receipts);

    constructor(address contractOwner, address _usdcAddress) Ownable(contractOwner) {
        setBeneficiary(contractOwner);
        USDC = _usdcAddress;
    }

    function bid(
        uint256[] calldata auctionIds,
        uint256[] calldata expectedPrices
    ) external payable {
        require(!paused, "Bidding is paused");
        require(auctionIds.length == expectedPrices.length);

        uint256 totalETH;
        uint256 totalUSDC;
        for (uint256 i; i < auctionIds.length; ++i) {
            uint256 auctionId = auctionIds[i];
            uint256 expectedPrice = expectedPrices[i];
            AuctionConfig memory config = getConfig(auctionId);

            // kickstart auction functionality
            if (config.auctionStartTime == type(uint80).max) {
                config.auctionStartTime = uint80(block.timestamp);
                bytes32 configHash = keccak256(abi.encode(config));
                if (auctionConfig[configHash].auctionStartTime == 0) {
                    auctionConfig[configHash] = config;
                }
                auctionIdToConfigHash[auctionId] = configHash;
            }

            if (
                !(isAuctionActive(auctionId) ||
                    (config.preBidPrice > 0 &&
                        expectedPrice >= config.preBidPrice)) ||
                block.timestamp < config.buyNowStartTime
            ) {
                continue;
            }

            Auction memory highestBid = auctionIdToAuction[auctionId];
            uint256 bidIncrease = highestBid.amount >=
                getBidIncreaseThreshold(config.usdcFlag)
                ? MIN_BID_INCREASE_POST
                : MIN_BID_INCREASE_PRE;

            if (
                expectedPrice >=
                ((highestBid.amount * (BPS + bidIncrease)) / BPS) &&
                expectedPrice >= getReservePrice(auctionId)
            ) {
                uint256 refundAmount;
                address refundBidder;
                uint256 offset = highestBid.offsetFromEnd;
                uint256 endTime = getAuctionEndTime(auctionId);

                if (highestBid.amount > 0) {
                    refundAmount = highestBid.amount;
                    refundBidder = highestBid.bidder;
                }

                if (endTime - block.timestamp < EXTENSION_TIME) {
                    offset += block.timestamp + EXTENSION_TIME - endTime;
                }

                auctionIdToAuction[auctionId] = Auction(
                    uint24(offset),
                    uint72(expectedPrice),
                    msg.sender
                );

                if (config.usdcFlag) {
                    totalUSDC += expectedPrice;
                } else {
                    totalETH += expectedPrice;
                }

                emit BidMade(
                    auctionId,
                    getCollectionFromId(auctionId),
                    getArtTokenIdFromId(auctionId),
                    msg.sender,
                    expectedPrice,
                    block.timestamp
                );

                if (refundAmount > 0) {
                    if (config.usdcFlag) {
                        IERC20(USDC).transfer(refundBidder, refundAmount);
                    } else {
                        SafeTransferLib.forceSafeTransferETH(
                            refundBidder,
                            refundAmount,
                            SAFE_GAS_LIMIT
                        );
                    }
                }
            }
        }
        if (totalUSDC > 0) {
            IERC20(USDC).transferFrom(msg.sender, address(this), totalUSDC);
        }
        require(msg.value >= totalETH, "Incorrect amount of ETH sent");
        uint256 totalFailedETH = msg.value - totalETH;
        if (totalFailedETH > 0) {
            SafeTransferLib.forceSafeTransferETH(
                msg.sender,
                totalFailedETH,
                SAFE_GAS_LIMIT
            );
        }
    }

    function buyNow(uint256[] calldata auctionIds) external payable {
        require(!paused, "Buying is paused");

        uint256 totalETH;
        uint256 amountForBeneETH;
        uint256 amountForBeneUSDC;

        // Create a dynamic array to store tokenIds of successfully purchased tokens
        Receipt[] memory successfulAuctions = new Receipt[](auctionIds.length);
        uint256 successfulCount = 0;

        for (uint256 i = 0; i < auctionIds.length; ++i) {
            uint256 auctionId = auctionIds[i];
            AuctionConfig memory config = getConfig(auctionId);
            uint256 amountToPay = config.buyNowPrice;

            if (
                (block.timestamp < config.buyNowStartTime) ||
                (config.auctionStartTime <= block.timestamp) ||
                amountToPay == 0
            ) {
                continue;
            }

            // Mark the auction as settled and store the amount paid
            config.auctionStartTime = uint80(block.timestamp - INIT_AUCTION_DURATION);
            bytes32 configHash = keccak256(abi.encode(config));
            if (auctionConfig[configHash].auctionStartTime == 0) {
                auctionConfig[configHash] = config;
            }
            auctionIdToConfigHash[auctionId] = configHash;
            auctionIdToAuction[auctionId] = Auction(
                0,
                uint72(amountToPay),
                msg.sender
            );

            if (!config.usdcFlag) {
                totalETH += amountToPay;
            }

            // Mint the token to the buyer
            _mintOrTransfer(msg.sender, auctionId);
            
            uint256 amountForPlatform = (amountToPay * config.platformFee) / 100;
            uint256 royalty = (amountToPay * config.royalty) / 100;
            uint256 amountForSeller = amountToPay - amountForPlatform - royalty;

            successfulAuctions[successfulCount] = Receipt(
                config.seller,
                msg.sender,
                getCollectionFromId(auctionId),
                getArtTokenIdFromId(auctionId),
                config.usdcFlag ? USDC : address(0),
                amountToPay,
                amountForPlatform,
                royalty
            );
            successfulCount++;

            if (config.usdcFlag) {
                amountForBeneUSDC += amountForPlatform;
                IERC20(USDC).transferFrom(msg.sender, config.seller, amountForSeller);
                if (royalty > 0) {
                    IERC20(USDC).transferFrom(msg.sender, config.artist, royalty);
                }
            } else {
                amountForBeneETH += amountForPlatform;
                SafeTransferLib.forceSafeTransferETH(
                    config.seller,
                    amountForSeller,
                    SAFE_GAS_LIMIT
                );
                if (royalty > 0) {
                    SafeTransferLib.forceSafeTransferETH(
                        config.artist,
                        royalty,
                        SAFE_GAS_LIMIT
                    );
                }
            }
        }

        if (amountForBeneUSDC > 0) {
            IERC20(USDC).transferFrom(msg.sender, beneficiary, amountForBeneUSDC);
        }
        require(msg.value >= totalETH, "Incorrect amount of ETH sent");
        uint256 totalFailedETH = msg.value - totalETH;
        if (totalFailedETH > 0) {
            SafeTransferLib.forceSafeTransferETH(
                msg.sender,
                totalFailedETH,
                SAFE_GAS_LIMIT
            );
        }
        if (amountForBeneETH > 0) {
            SafeTransferLib.forceSafeTransferETH(
                beneficiary,
                amountForBeneETH,
                SAFE_GAS_LIMIT
            );
        }

        // Emit Sale event for all successful token purchases
        if (successfulCount > 0) {
            // Create a resized array with only the successfully bought tokenIds
            Receipt[] memory sales = new Receipt[](successfulCount);
            for (uint256 i = 0; i < successfulCount; ++i) {
                sales[i] = successfulAuctions[i];
            }

            emit Sale(sales);
        }
    }

    function settleAuctions(uint256[] calldata auctionIds) external {
        uint256 amountForBeneETH;
        uint256 amountForBeneUSDC;
        Receipt[] memory successfulAuctions = new Receipt[](auctionIds.length);
        uint256 successfulCount = 0;

        for (uint256 i; i < auctionIds.length; ++i) {
            uint256 auctionId = auctionIds[i];
            Auction memory highestBid = auctionIdToAuction[auctionId];
            require(isAuctionOver(auctionId), "Auction is still active");

            uint256 amountToPay = highestBid.amount;
            require(amountToPay > 0);
            _mintOrTransfer(highestBid.bidder, auctionId);
            AuctionConfig memory config = getConfig(auctionId);

            uint256 amountForPlatform = (amountToPay * config.platformFee) / 100;
            uint256 royalty = (amountToPay * config.royalty) / 100;
            uint256 amountForSeller = amountToPay - amountForPlatform - royalty;

            successfulAuctions[successfulCount] = Receipt(
                config.seller,
                highestBid.bidder,
                getCollectionFromId(auctionId),
                getArtTokenIdFromId(auctionId),
                config.usdcFlag ? USDC : address(0),
                amountToPay,
                amountForPlatform,
                royalty
            );

            if (config.usdcFlag) {
                amountForBeneUSDC += amountForPlatform;
                IERC20(USDC).transfer(config.seller, amountForSeller);
                if (royalty > 0) {
                    IERC20(USDC).transfer(config.artist, royalty);
                }
            } else {
                amountForBeneETH += amountForPlatform;
                SafeTransferLib.forceSafeTransferETH(
                    config.seller,
                    amountForSeller,
                    SAFE_GAS_LIMIT
                );
                if (royalty > 0) {
                    SafeTransferLib.forceSafeTransferETH(
                        config.artist,
                        royalty,
                        SAFE_GAS_LIMIT
                    );
                }
            }
        }

        emit Sale(successfulAuctions);

        if (amountForBeneUSDC > 0) {
            IERC20(USDC).transfer(beneficiary, amountForBeneUSDC);
        }
        if (amountForBeneETH > 0) {
            SafeTransferLib.forceSafeTransferETH(
                beneficiary,
                amountForBeneETH,
                SAFE_GAS_LIMIT
            );
        }
    }

    function _mintOrTransfer(address to, uint256 auctionId) internal {
        address collection = getCollectionFromId(auctionId);
        uint256 tokenId = getArtTokenIdFromId(auctionId);
        try INFT(collection).ownerOf(tokenId) returns (address _owner) {
            if (_owner == address(0)) {
                INFT(collection).mint(to, tokenId);
            } else {
                INFT(collection).transferFrom(_owner, to, tokenId);
            }
        } catch {
            INFT(collection).mint(to, tokenId);
        }
    }

    // INTERNAL
    function _resetAuction(address collectionAddress, uint256 tokenId)
        internal
    {
        uint256 auctionId = artTokentoAuctionId(collectionAddress, tokenId);
        if (!isAuctionOver(auctionId)) {
            Auction memory auctionData = auctionIdToAuction[auctionId];
            if (auctionData.amount > 0) {
                SafeTransferLib.forceSafeTransferETH(
                    auctionData.bidder,
                    auctionData.amount,
                    SAFE_GAS_LIMIT
                );
            }
        }
        auctionIdToConfigHash[auctionId] = bytes32(0);
        auctionIdToAuction[auctionId] = Auction(0, 0, address(0));
    }

    function _schedule(
        address collectionAddress,
        uint256 tokenId,
        uint256 buyNowStartTime,
        uint256 auctionStartTime,
        address artist,
        address seller,
        uint256 platformFee,
        uint256 royalty,
        uint256 buyNowPrice,
        uint256 reserve,
        uint256 preBidPrice,
        bool usdcFlag
    ) internal {
        uint256 auctionId = artTokentoAuctionId(collectionAddress, tokenId);
        require(auctionIdToConfigHash[auctionId] == bytes32(0));

        uint256 adjAucStartTime = auctionStartTime;
        if (adjAucStartTime == 0) {
            adjAucStartTime = type(uint80).max;
        }

        AuctionConfig memory config = AuctionConfig(
            artist,
            platformFee == 0 ? DEFAULT_PLATFORM_FEE : uint8(platformFee),
            uint8(royalty),
            uint80(buyNowStartTime),
            uint80(adjAucStartTime),
            uint88(buyNowPrice),
            uint88(reserve),
            uint88(preBidPrice),
            seller == address(0) ? artist : seller,
            usdcFlag
        );
        bytes32 configHash = keccak256(abi.encode(config));
        if (auctionConfig[configHash].auctionStartTime == 0) {
            auctionConfig[configHash] = config;
        }
        auctionIdToConfigHash[auctionId] = configHash;
    }

    // ONLY OWNER
    function scheduleAuctionsLight(
        address collection,
        uint256[] calldata tokenIds,
        uint256 buyNowStartTime,
        uint256 auctionStartTime,
        address artist,
        address seller,
        uint256 platformFee,
        uint256 royalty,
        uint256 buyNowPrice,
        uint256 reservePrice,
        uint256 preBidPrice,
        bool usdcFlag
    ) external onlyOwner {
        for (uint256 i; i < tokenIds.length; ++i) {
            _schedule(
                collection,
                tokenIds[i],
                buyNowStartTime,
                auctionStartTime,
                artist,
                seller,
                platformFee,
                royalty,
                buyNowPrice,
                reservePrice,
                preBidPrice,
                usdcFlag
            );
        }
    }

    function resetAuctions(
        address[] calldata collections,
        uint256[] calldata tokenIds
    ) external onlyOwner {
        for (uint256 i; i < collections.length; ++i) {
            _resetAuction(collections[i], tokenIds[i]);
        }
    }

    function scheduleAuctions(
        address[] calldata collections,
        uint256[] calldata tokenIds,
        uint256[] calldata buyNowStartTimes,
        uint256[] calldata auctionStartTimes,
        address[] calldata artists,
        address[] calldata sellers,
        uint256[] calldata platformFees,
        uint256[] calldata royalties,
        uint256[] calldata buyNowPrices,
        uint256[] calldata reservePrices,
        uint256[] calldata preBidPrices,
        bool[] calldata usdcFlags
    ) external onlyOwner {
        for (uint256 i; i < collections.length; ++i) {
            _schedule(
                collections[i],
                tokenIds[i],
                buyNowStartTimes[i],
                auctionStartTimes[i],
                artists[i],
                sellers[i],
                platformFees[i],
                royalties[i],
                buyNowPrices[i],
                reservePrices[i],
                preBidPrices[i],
                usdcFlags[i]
            );
        }
    }

    function setBeneficiary(address _beneficiary) public onlyOwner {
        beneficiary = _beneficiary;
    }

    function setPaused(bool _paused) external onlyOwner {
        paused = _paused;
    }

    // GETTERS

    function artTokentoAuctionId(address collection, uint256 tokenId)
        public
        pure
        returns (uint256)
    {
        return (uint256(uint160(collection)) << 96) | uint96(tokenId);
    }

    function isAuctionActive(uint256 auctionId) public view returns (bool) {
        uint256 startTime = getConfig(auctionId).auctionStartTime;
        uint256 endTime = getAuctionEndTime(auctionId);
        return (startTime > 0 &&
            block.timestamp >= startTime &&
            block.timestamp < endTime);
    }

    function isAuctionOver(uint256 auctionId) public view returns (bool) {
        uint256 startTime = getConfig(auctionId).auctionStartTime;
        uint256 endTime = getAuctionEndTime(auctionId);
        return (startTime > 0 && block.timestamp >= endTime);
    }

    function getAuctionEndTime(uint256 auctionId)
        public
        view
        returns (uint256)
    {
        return
            getConfig(auctionId).auctionStartTime +
            INIT_AUCTION_DURATION +
            auctionIdToAuction[auctionId].offsetFromEnd;
    }

    function getAuctionStartTime(uint256 auctionId)
        public
        view
        returns (uint256)
    {
        return getConfig(auctionId).auctionStartTime;
    }

    function getCollectionFromId(uint256 id) public pure returns (address) {
        return address(uint160(id >> 96));
    }

    function getConfig(uint256 id) public view returns (AuctionConfig memory) {
        return auctionConfig[auctionIdToConfigHash[id]];
    }

    function getArtTokenIdFromId(uint256 id) public pure returns (uint256) {
        return uint256(uint96(id));
    }

    function getReservePrice(uint256 auctionId) public view returns (uint256) {
        AuctionConfig memory config = getConfig(auctionId);
        uint256 reserve = config.reservePrice;
        return reserve != 0 ? reserve : getMinBid(config.usdcFlag);
    }

    function getBidIncreaseThreshold(bool isUSDC)
        internal
        pure
        returns (uint256)
    {
        return
            isUSDC ? BID_INCREASE_THRESHOLD_USDC : BID_INCREASE_THRESHOLD_ETH;
    }

    function getMinBid(bool isUSDC) internal pure returns (uint256) {
        return isUSDC ? MIN_BID_USDC : MIN_BID_ETH;
    }
}

interface INFT {
    function mint(address to, uint256 tokenId) external;

    function ownerOf(uint256 tokenId) external view returns (address);

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;
}

File 2 of 5 : SafeTransferLib.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)
///
/// @dev Note:
/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.
library SafeTransferLib {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The ETH transfer has failed.
    error ETHTransferFailed();

    /// @dev The ERC20 `transferFrom` has failed.
    error TransferFromFailed();

    /// @dev The ERC20 `transfer` has failed.
    error TransferFailed();

    /// @dev The ERC20 `approve` has failed.
    error ApproveFailed();

    /// @dev The Permit2 operation has failed.
    error Permit2Failed();

    /// @dev The Permit2 amount must be less than `2**160 - 1`.
    error Permit2AmountOverflow();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         CONSTANTS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.
    uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;

    /// @dev Suggested gas stipend for contract receiving ETH to perform a few
    /// storage reads and writes, but low enough to prevent griefing.
    uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;

    /// @dev The unique EIP-712 domain domain separator for the DAI token contract.
    bytes32 internal constant DAI_DOMAIN_SEPARATOR =
        0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;

    /// @dev The address for the WETH9 contract on Ethereum mainnet.
    address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

    /// @dev The canonical Permit2 address.
    /// [Github](https://github.com/Uniswap/permit2)
    /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)
    address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       ETH OPERATIONS                       */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.
    //
    // The regular variants:
    // - Forwards all remaining gas to the target.
    // - Reverts if the target reverts.
    // - Reverts if the current contract has insufficient balance.
    //
    // The force variants:
    // - Forwards with an optional gas stipend
    //   (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).
    // - If the target reverts, or if the gas stipend is exhausted,
    //   creates a temporary contract to force send the ETH via `SELFDESTRUCT`.
    //   Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.
    // - Reverts if the current contract has insufficient balance.
    //
    // The try variants:
    // - Forwards with a mandatory gas stipend.
    // - Instead of reverting, returns whether the transfer succeeded.

    /// @dev Sends `amount` (in wei) ETH to `to`.
    function safeTransferETH(address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Sends all the ETH in the current contract to `to`.
    function safeTransferAllETH(address to) internal {
        /// @solidity memory-safe-assembly
        assembly {
            // Transfer all the ETH and check if it succeeded or not.
            if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.
    function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {
        /// @solidity memory-safe-assembly
        assembly {
            if lt(selfbalance(), amount) {
                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
                revert(0x1c, 0x04)
            }
            if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
            }
        }
    }

    /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.
    function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {
        /// @solidity memory-safe-assembly
        assembly {
            if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
            }
        }
    }

    /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.
    function forceSafeTransferETH(address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            if lt(selfbalance(), amount) {
                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
                revert(0x1c, 0x04)
            }
            if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
            }
        }
    }

    /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.
    function forceSafeTransferAllETH(address to) internal {
        /// @solidity memory-safe-assembly
        assembly {
            // forgefmt: disable-next-item
            if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
            }
        }
    }

    /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.
    function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)
        internal
        returns (bool success)
    {
        /// @solidity memory-safe-assembly
        assembly {
            success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)
        }
    }

    /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.
    function trySafeTransferAllETH(address to, uint256 gasStipend)
        internal
        returns (bool success)
    {
        /// @solidity memory-safe-assembly
        assembly {
            success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                      ERC20 OPERATIONS                      */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.
    /// Reverts upon failure.
    ///
    /// The `from` account must have at least `amount` approved for
    /// the current contract to manage.
    function safeTransferFrom(address token, address from, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x60, amount) // Store the `amount` argument.
            mstore(0x40, to) // Store the `to` argument.
            mstore(0x2c, shl(96, from)) // Store the `from` argument.
            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.
            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
            if iszero(and(eq(mload(0x00), 1), success)) {
                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {
                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.
                    revert(0x1c, 0x04)
                }
            }
            mstore(0x60, 0) // Restore the zero slot to zero.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.
    ///
    /// The `from` account must have at least `amount` approved for the current contract to manage.
    function trySafeTransferFrom(address token, address from, address to, uint256 amount)
        internal
        returns (bool success)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x60, amount) // Store the `amount` argument.
            mstore(0x40, to) // Store the `to` argument.
            mstore(0x2c, shl(96, from)) // Store the `from` argument.
            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.
            success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
            if iszero(and(eq(mload(0x00), 1), success)) {
                success := lt(or(iszero(extcodesize(token)), returndatasize()), success)
            }
            mstore(0x60, 0) // Restore the zero slot to zero.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Sends all of ERC20 `token` from `from` to `to`.
    /// Reverts upon failure.
    ///
    /// The `from` account must have their entire balance approved for the current contract to manage.
    function safeTransferAllFrom(address token, address from, address to)
        internal
        returns (uint256 amount)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x40, to) // Store the `to` argument.
            mstore(0x2c, shl(96, from)) // Store the `from` argument.
            mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.
            // Read the balance, reverting upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.
                    staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)
                )
            ) {
                mstore(0x00, 0x7939f424) // `TransferFromFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.
            amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.
            // Perform the transfer, reverting upon failure.
            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
            if iszero(and(eq(mload(0x00), 1), success)) {
                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {
                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.
                    revert(0x1c, 0x04)
                }
            }
            mstore(0x60, 0) // Restore the zero slot to zero.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.
    /// Reverts upon failure.
    function safeTransfer(address token, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x14, to) // Store the `to` argument.
            mstore(0x34, amount) // Store the `amount` argument.
            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.
            // Perform the transfer, reverting upon failure.
            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
            if iszero(and(eq(mload(0x00), 1), success)) {
                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {
                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.
                    revert(0x1c, 0x04)
                }
            }
            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
        }
    }

    /// @dev Sends all of ERC20 `token` from the current contract to `to`.
    /// Reverts upon failure.
    function safeTransferAll(address token, address to) internal returns (uint256 amount) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.
            mstore(0x20, address()) // Store the address of the current contract.
            // Read the balance, reverting upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.
                    staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)
                )
            ) {
                mstore(0x00, 0x90b8ec18) // `TransferFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x14, to) // Store the `to` argument.
            amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.
            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.
            // Perform the transfer, reverting upon failure.
            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
            if iszero(and(eq(mload(0x00), 1), success)) {
                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {
                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.
                    revert(0x1c, 0x04)
                }
            }
            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
        }
    }

    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.
    /// Reverts upon failure.
    function safeApprove(address token, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x14, to) // Store the `to` argument.
            mstore(0x34, amount) // Store the `amount` argument.
            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.
            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
            if iszero(and(eq(mload(0x00), 1), success)) {
                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {
                    mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.
                    revert(0x1c, 0x04)
                }
            }
            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
        }
    }

    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.
    /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,
    /// then retries the approval again (some tokens, e.g. USDT, requires this).
    /// Reverts upon failure.
    function safeApproveWithRetry(address token, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x14, to) // Store the `to` argument.
            mstore(0x34, amount) // Store the `amount` argument.
            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.
            // Perform the approval, retrying upon failure.
            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
            if iszero(and(eq(mload(0x00), 1), success)) {
                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {
                    mstore(0x34, 0) // Store 0 for the `amount`.
                    mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.
                    pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.
                    mstore(0x34, amount) // Store back the original `amount`.
                    // Retry the approval, reverting upon failure.
                    success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
                    if iszero(and(eq(mload(0x00), 1), success)) {
                        // Check the `extcodesize` again just in case the token selfdestructs lol.
                        if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {
                            mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.
                            revert(0x1c, 0x04)
                        }
                    }
                }
            }
            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
        }
    }

    /// @dev Returns the amount of ERC20 `token` owned by `account`.
    /// Returns zero if the `token` does not exist.
    function balanceOf(address token, address account) internal view returns (uint256 amount) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x14, account) // Store the `account` argument.
            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.
            amount :=
                mul( // The arguments of `mul` are evaluated from right to left.
                    mload(0x20),
                    and( // The arguments of `and` are evaluated from right to left.
                        gt(returndatasize(), 0x1f), // At least 32 bytes returned.
                        staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)
                    )
                )
        }
    }

    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.
    /// If the initial attempt fails, try to use Permit2 to transfer the token.
    /// Reverts upon failure.
    ///
    /// The `from` account must have at least `amount` approved for the current contract to manage.
    function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {
        if (!trySafeTransferFrom(token, from, to, amount)) {
            permit2TransferFrom(token, from, to, amount);
        }
    }

    /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.
    /// Reverts upon failure.
    function permit2TransferFrom(address token, address from, address to, uint256 amount)
        internal
    {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40)
            mstore(add(m, 0x74), shr(96, shl(96, token)))
            mstore(add(m, 0x54), amount)
            mstore(add(m, 0x34), to)
            mstore(add(m, 0x20), shl(96, from))
            // `transferFrom(address,address,uint160,address)`.
            mstore(m, 0x36c78516000000000000000000000000)
            let p := PERMIT2
            let exists := eq(chainid(), 1)
            if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }
            if iszero(
                and(
                    call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00),
                    lt(iszero(extcodesize(token)), exists) // Token has code and Permit2 exists.
                )
            ) {
                mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.
                revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)
            }
        }
    }

    /// @dev Permit a user to spend a given amount of
    /// another user's tokens via native EIP-2612 permit if possible, falling
    /// back to Permit2 if native permit fails or is not implemented on the token.
    function permit2(
        address token,
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        bool success;
        /// @solidity memory-safe-assembly
        assembly {
            for {} shl(96, xor(token, WETH9)) {} {
                mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.
                if iszero(
                    and( // The arguments of `and` are evaluated from right to left.
                        lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.
                        // Gas stipend to limit gas burn for tokens that don't refund gas when
                        // an non-existing function is called. 5K should be enough for a SLOAD.
                        staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)
                    )
                ) { break }
                // After here, we can be sure that token is a contract.
                let m := mload(0x40)
                mstore(add(m, 0x34), spender)
                mstore(add(m, 0x20), shl(96, owner))
                mstore(add(m, 0x74), deadline)
                if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {
                    mstore(0x14, owner)
                    mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.
                    mstore(add(m, 0x94), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))
                    mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.
                    // `nonces` is already at `add(m, 0x54)`.
                    // `1` is already stored at `add(m, 0x94)`.
                    mstore(add(m, 0xb4), and(0xff, v))
                    mstore(add(m, 0xd4), r)
                    mstore(add(m, 0xf4), s)
                    success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)
                    break
                }
                mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.
                mstore(add(m, 0x54), amount)
                mstore(add(m, 0x94), and(0xff, v))
                mstore(add(m, 0xb4), r)
                mstore(add(m, 0xd4), s)
                success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)
                break
            }
        }
        if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);
    }

    /// @dev Simple permit on the Permit2 contract.
    function simplePermit2(
        address token,
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40)
            mstore(m, 0x927da105) // `allowance(address,address,address)`.
            {
                let addressMask := shr(96, not(0))
                mstore(add(m, 0x20), and(addressMask, owner))
                mstore(add(m, 0x40), and(addressMask, token))
                mstore(add(m, 0x60), and(addressMask, spender))
                mstore(add(m, 0xc0), and(addressMask, spender))
            }
            let p := mul(PERMIT2, iszero(shr(160, amount)))
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.
                    staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)
                )
            ) {
                mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.
                revert(add(0x18, shl(2, iszero(p))), 0x04)
            }
            mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).
            // `owner` is already `add(m, 0x20)`.
            // `token` is already at `add(m, 0x40)`.
            mstore(add(m, 0x60), amount)
            mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.
            // `nonce` is already at `add(m, 0xa0)`.
            // `spender` is already at `add(m, 0xc0)`.
            mstore(add(m, 0xe0), deadline)
            mstore(add(m, 0x100), 0x100) // `signature` offset.
            mstore(add(m, 0x120), 0x41) // `signature` length.
            mstore(add(m, 0x140), r)
            mstore(add(m, 0x160), s)
            mstore(add(m, 0x180), shl(248, v))
            if iszero( // Revert if token does not have code, or if the call fails.
            mul(extcodesize(token), call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00))) {
                mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.
                revert(0x1c, 0x04)
            }
        }
    }
}

File 3 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

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

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

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

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

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 5 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"contractOwner","type":"address"},{"internalType":"address","name":"_usdcAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"collectionAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"BidMade","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"orderMaker","type":"address"},{"internalType":"address","name":"orderTaker","type":"address"},{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint256","name":"salePrice","type":"uint256"},{"internalType":"uint256","name":"platformFee","type":"uint256"},{"internalType":"uint256","name":"royalty","type":"uint256"}],"indexed":false,"internalType":"struct ArtMarketplaceV6.Receipt[]","name":"receipts","type":"tuple[]"}],"name":"Sale","type":"event"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"artTokentoAuctionId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"auctionConfig","outputs":[{"internalType":"address","name":"artist","type":"address"},{"internalType":"uint8","name":"platformFee","type":"uint8"},{"internalType":"uint8","name":"royalty","type":"uint8"},{"internalType":"uint80","name":"buyNowStartTime","type":"uint80"},{"internalType":"uint80","name":"auctionStartTime","type":"uint80"},{"internalType":"uint88","name":"buyNowPrice","type":"uint88"},{"internalType":"uint88","name":"reservePrice","type":"uint88"},{"internalType":"uint88","name":"preBidPrice","type":"uint88"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"bool","name":"usdcFlag","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctionIdToAuction","outputs":[{"internalType":"uint24","name":"offsetFromEnd","type":"uint24"},{"internalType":"uint72","name":"amount","type":"uint72"},{"internalType":"address","name":"bidder","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctionIdToConfigHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"auctionIds","type":"uint256[]"},{"internalType":"uint256[]","name":"expectedPrices","type":"uint256[]"}],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"auctionIds","type":"uint256[]"}],"name":"buyNow","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getArtTokenIdFromId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"getAuctionEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"getAuctionStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getCollectionFromId","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getConfig","outputs":[{"components":[{"internalType":"address","name":"artist","type":"address"},{"internalType":"uint8","name":"platformFee","type":"uint8"},{"internalType":"uint8","name":"royalty","type":"uint8"},{"internalType":"uint80","name":"buyNowStartTime","type":"uint80"},{"internalType":"uint80","name":"auctionStartTime","type":"uint80"},{"internalType":"uint88","name":"buyNowPrice","type":"uint88"},{"internalType":"uint88","name":"reservePrice","type":"uint88"},{"internalType":"uint88","name":"preBidPrice","type":"uint88"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"bool","name":"usdcFlag","type":"bool"}],"internalType":"struct ArtMarketplaceV6.AuctionConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"getReservePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"isAuctionActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"isAuctionOver","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"resetAuctions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"buyNowStartTimes","type":"uint256[]"},{"internalType":"uint256[]","name":"auctionStartTimes","type":"uint256[]"},{"internalType":"address[]","name":"artists","type":"address[]"},{"internalType":"address[]","name":"sellers","type":"address[]"},{"internalType":"uint256[]","name":"platformFees","type":"uint256[]"},{"internalType":"uint256[]","name":"royalties","type":"uint256[]"},{"internalType":"uint256[]","name":"buyNowPrices","type":"uint256[]"},{"internalType":"uint256[]","name":"reservePrices","type":"uint256[]"},{"internalType":"uint256[]","name":"preBidPrices","type":"uint256[]"},{"internalType":"bool[]","name":"usdcFlags","type":"bool[]"}],"name":"scheduleAuctions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"buyNowStartTime","type":"uint256"},{"internalType":"uint256","name":"auctionStartTime","type":"uint256"},{"internalType":"address","name":"artist","type":"address"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"platformFee","type":"uint256"},{"internalType":"uint256","name":"royalty","type":"uint256"},{"internalType":"uint256","name":"buyNowPrice","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"uint256","name":"preBidPrice","type":"uint256"},{"internalType":"bool","name":"usdcFlag","type":"bool"}],"name":"scheduleAuctionsLight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"auctionIds","type":"uint256[]"}],"name":"settleAuctions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a03461013557601f6127b838819003918201601f19168301916001600160401b0383118484101761013957808492604094855283398101031261013557610052602061004b8361014d565b920161014d565b6001600160a01b03909116908115610122575f80546001600160a01b0319811684178255604051939182916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a333810361010f57600180546001600160a01b031916919091179055608052612656908161016282396080518181816102970152818161055701528181610c5801528181610dac01528181610e620152818161157a0152818161176f01526118380152f35b63118cdaa760e01b5f523360045260245ffd5b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b51906001600160a01b03821682036101355756fe6103c0806040526004361015610013575f80fd5b5f3560e01c9081630254837614611bca57508063110898fd14611b1457806316c38b3c14611acf5780631a4109da146114035780631c31f710146113c05780632634551b146113965780632c104a921461137857806338af3eed146113505780635b2d6a491461127d5780635c975abb146112585780637100dd8714611214578063715018a6146111bd57806389d59d151461108b5780638c77cc09146110655780638da5cb5b1461103e578063919e84f51461100b578063930e79f114610fed57806395657db014610fcd578063989738ab14610b805780639d76791d14610858578063a81b2f8d14610829578063b07cc88314610207578063d45c35ff146101e1578063e71f7b15146101b95763f2fde38b14610130575f80fd5b346101b55760203660031901126101b557610149611c40565b6101516121e2565b6001600160a01b031680156101a2575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b346101b55760203660031901126101b55760206101d76004356121a6565b6040519015158152f35b346101b55760203660031901126101b55760206101ff600435612164565b604051908152f35b61021036611c56565b919260ff60015460a01c166107f0578284036101b5575f925f945f5b81811061030957868681610265575b610252915061024c81341015611efd565b34611e97565b8061025957005b610263903361239d565b005b6040516323b872dd60e01b815233600482015230602482015260448101929092526020826064815f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165af19182156102fe57610252926102cf575b5061023b565b6102f09060203d6020116102f7575b6102e88183611dbc565b810190611ee5565b50826102c9565b503d6102de565b6040513d5f823e3d90fd5b610314818386611e73565b35610320828588611e73565b359061032b8161206c565b90608082016001600160501b03808251161461069f575b5061034c816121a6565b8015610675575b15801561065f575b61065457805f52600360205260405f20906040519161037983611d55565b549062ffffff821683526001600160481b038260181c16916101206020850195848752604086019260601c83520192835115155f14610645576311e1a300905b1061063d576103e85b6001600160481b03865116906127100190816127101161060057612710916103e991611eb1565b048610158061062b575b610408575b5050505050506001905b0161022c565b5f9c9192939496959c505f9662ffffff5f965116916001600160481b0361042e8661202b565b92511680610614575b50506102586104464283611e97565b106105da575b5062ffffff6040519161045e83611d55565b1681528c6001600160481b0360208301911681526040820190338252845f5260036020526bffffffffffffffffff00000062ffffff60405f20945116915160181b16916001600160601b0319905160601b169117179055825115155f146105c8578b6104c991611ea4565b9a5b6040519033825260208201524260408201526001600160601b038216917fe55fea5e734015d5114a28644bd784f4484c9d4fa2d29dee5aff56034294e21b606082811c93a48361051f575b808084956103f8565b51156105b75760405163a9059cbb60e01b81526001600160a01b0390911660048201526024810192909252602082806044810103815f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af19182156102fe57600192610599575b505b8880610516565b6105b09060203d81116102f7576102e88183611dbc565b5088610590565b6001926105c39161239d565b610592565b9a998a6105d491611ea4565b996104cb565b906102584201804211610600576105fa926105f491611e97565b90611ea4565b8d61044c565b634e487b7160e01b5f52601160045260245ffd5b90519098506001600160a01b031695508e80610437565b5061063582612164565b8610156103f3565b6107d06103c2565b6702c68af0bb140000906103b9565b505050600190610402565b506001600160501b03606083015116421061035b565b506001600160581b0360e0830151168015159081610694575b50610353565b90508310158b61068e565b6001600160501b034216815260405160208101906106cf816106c18785611ca6565b03601f198101835282611dbc565b51902090815f5260026020526001600160501b03600160405f2001541615610706575b50815f52600460205260405f20558a610342565b5f8281526002602081815260409283902087519188015193880151606089015160a095861b60ff60a01b166001600160a01b039094169390931760a891821b60ff60a81b161760b09390931b6001600160b01b03191692909217815593519287015160c088015160509190911b600160501b600160a81b03166001600160501b039094169390931792901b6001600160a81b03191691909117600183015560e085015161010086015161012087015160589190911b600160581b600160f81b03166001600160581b039092169190911790151560f81b6001600160f81b031916179101558b6106f2565b60405162461bcd60e51b8152602060048201526011602482015270109a59191a5b99c81a5cc81c185d5cd959607a1b6044820152606490fd5b346101b55760203660031901126101b55761085461084860043561206c565b60405191829182611ca6565b0390f35b346101b5576101803660031901126101b5576004356001600160401b0381116101b557610889903690600401611c10565b61022052610120526024356001600160401b0381116101b5576108b0903690600401611c10565b610360526101a0526044356001600160401b0381116101b5576108d7903690600401611c10565b6103a052610100526064356001600160401b0381116101b5576108fe903690600401611c10565b61034052610160526084356001600160401b0381116101b557610925903690600401611c10565b610240526101e05260a4356001600160401b0381116101b55761094c903690600401611c10565b610260526103805260c4356001600160401b0381116101b557610973903690600401611c10565b610280526103205260e4356001600160401b0381116101b55761099a903690600401611c10565b6102a05261014052610104356001600160401b0381116101b5576109c2903690600401611c10565b6102c05261018052610124356001600160401b0381116101b5576109ea903690600401611c10565b6102e0526101c052610144356001600160401b0381116101b557610a12903690600401611c10565b61030052610200526001600160401b0361016435116101b557610a3b3661016435600401611c10565b60c05260e052610a496121e2565b5f60a0525b6102205160a05110610a5c57005b610a77610a7260a0516102205161012051611e73565b612017565b608052610a8d60a051610360516101a051611e73565b35610aa160a0516103a05161010051611e73565b35610ab560a0516103405161016051611e73565b35610acc610a7260a051610240516101e051611e73565b610ae2610a7260a0516102605161038051611e73565b610af560a0516102805161032051611e73565b35610b0960a0516102a05161014051611e73565b3590610b1e60a0516102c05161018051611e73565b3592610b3360a0516102e0516101c051611e73565b3594610b4860a0516103005161020051611e73565b3596610b5b60a05160c05160e051611e73565b35988915158a036101b557610b729a6080516123e1565b600160a0510160a052610a4e565b346101b55760203660031901126101b5576004356001600160401b0381116101b557610bb0903690600401611c10565b905f915f91610bbe82611df4565b915f5b818110610cac57505050610bfc7f44091ab447a207c91754185a67a52f108a29601dd0568b17eed28398f131019e9160405191829182611f49565b0390a180610c23575b5080610c0d57005b60015461026391906001600160a01b031661239d565b60015460405163a9059cbb60e01b81526001600160a01b0390911660048201526024810191909152602081806044810103815f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af180156102fe5715610c0557610ca59060203d6020116102f7576102e88183611dbc565b5081610c05565b610cb7818385611e73565b3590815f52600360205260405f209560405196610cd388611d55565b549662ffffff88168152604060208201916001600160481b038a60181c168352019760601c8852610d0384611fe3565b15610f8857516001600160481b03169081156101b5578751610d2f9085906001600160a01b0316612208565b610d388461206c565b906064610d4c60ff60208501511685611eb1565b04906064610d6160ff60408601511686611eb1565b0495610d7687610d718588611e97565b611e97565b9a61010085019560018060a01b038751169160018060a01b039051166001600160601b03610120880194855115155f14610f81577f0000000000000000000000000000000000000000000000000000000000000000925b60405195610dda87611d84565b865260208601528060601c604086015216606084015260018060a01b0316608083015260a08201528360c08201528760e0820152610e178b611ec4565b52610e218a611ec4565b505115610f3957610e37610e9192602092611ea4565b935160405163a9059cbb60e01b81526001600160a01b039182166004820152602481019b909b5293997f00000000000000000000000000000000000000000000000000000000000000009094169391829081906044820190565b03815f875af180156102fe57610f1d575b5083610eb6575b5050600191505b01610bc1565b5160405163a9059cbb60e01b81526001600160a01b0390911660048201526024810193909352602090839060449082905f905af19182156102fe57600192610eff575b80610ea9565b610f169060203d81116102f7576102e88183611dbc565b5087610ef9565b610f349060203d81116102f7576102e88183611dbc565b610ea2565b98610f4c610f5b9260019794959c611ea4565b9a868060a01b0390511661239d565b80610f68575b5050610eb0565b610f7a91848060a01b0390511661239d565b8780610f61565b5f92610dcd565b60405162461bcd60e51b815260206004820152601760248201527f41756374696f6e206973207374696c6c206163746976650000000000000000006044820152606490fd5b346101b55760203660031901126101b557602060405160043560601c8152f35b346101b55760203660031901126101b55760206101ff60043561202b565b346101b55760203660031901126101b55760206001600160501b03608061103360043561206c565b015116604051908152f35b346101b5575f3660031901126101b5575f546040516001600160a01b039091168152602090f35b346101b55760203660031901126101b55760206040516001600160601b03600435168152f35b346101b55761109936611c56565b6110a49392936121e2565b5f5b8481106110af57005b806110c0610a726001938888611e73565b6001600160601b036110d3838688611e73565b3516906001600160601b03199060601b16176110ee81611fe3565b15611161575b805f5260046020525f60408120556040519061110f82611d55565b5f8252602082015f815260408301915f83525f5260036020526bffffffffffffffffff00000062ffffff60405f20945116915160181b16916001600160601b0319905160601b169117179055016110a6565b805f5260036020526040805f2081519061117a82611d55565b549062ffffff821681526001600160481b038260181c169182602083015260601c9283910152806111ad575b50506110f4565b6111b69161239d565b87806111a6565b346101b5575f3660031901126101b5576111d56121e2565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346101b55760403660031901126101b557602061122f611c40565b60405160609190911b6bffffffffffffffffffffffff19166024356001600160601b0316178152f35b346101b5575f3660031901126101b557602060ff60015460a01c166040519015158152f35b346101b5576101803660031901126101b557611297611c40565b6024356001600160401b0381116101b5576112b6903690600401611c10565b91906044356064356084356001600160a01b03811681036101b55760a4356001600160a01b03811681036101b55760c43560e4359061010435926101243594610144359661016435988915158a036101b5576113106121e2565b5f5b8d811061131b57005b8061134a8f8f8f8f928f928f928f928f928f928f928f928f928f929e60019f61134392611e73565b35906123e1565b01611312565b346101b5575f3660031901126101b5576001546040516001600160a01b039091168152602090f35b346101b55760203660031901126101b55760206101d7600435611fe3565b346101b55760203660031901126101b5576004355f526004602052602060405f2054604051908152f35b346101b55760203660031901126101b5576113d9611c40565b6113e16121e2565b600180546001600160a01b0319166001600160a01b0392909216919091179055005b60203660031901126101b5576004356001600160401b0381116101b55761142e903690600401611c10565b9060ff60015460a01c16611a9757905f808061144984611df4565b945f946001600160501b03426201517f19810191821692911190875b8181106115d95750505050508161153f575b611488915061024c81341015611efd565b8061152f575b5080611513575b508061149d57005b6114a681611df4565b915f5b8281106114e9575050506114e47f44091ab447a207c91754185a67a52f108a29601dd0568b17eed28398f131019e9160405191829182611f49565b0390a1005b806114f660019284611ed1565b516115018287611ed1565b5261150c8186611ed1565b50016114a9565b60015461152991906001600160a01b031661239d565b82611495565b611539903361239d565b8361148e565b6001546040516323b872dd60e01b81523360048201526001600160a01b0390911660248201526044810192909252602082806064810103815f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af19182156102fe57611488926115ba575b50611477565b6115d29060203d6020116102f7576102e88183611dbc565b50856115b4565b6115e78183879b999b611e73565b35906115f28261206c565b9160a08301928351916001600160581b0383169260608301956001600160501b0387511642108015611a80575b8015611a78575b611a675788610600578f9660808501918b8352604051602081019061164f816106c18a85611ca6565b51902092835f5260026020526001600160501b03600160405f200154161561197d575b505050825f52600460205260405f20556040519061168f82611d55565b5f82526001600160481b0360208301911681526040820190338252835f5260036020526bffffffffffffffffff00000062ffffff60405f20945116915160181b16916001600160601b0319905160601b16911717905561012082019c8d9b8c511561196c575b6116ff8333612208565b602084015160ff166117119086611eb1565b606490049281604086015160ff166117299088611eb1565b606490049889611739878a611e97565b9061174391611e97565b9f610100880198600160a01b600190038a5116915115155f14946117e29561195d576001600160601b037f0000000000000000000000000000000000000000000000000000000000000000915b6040519461179d86611d84565b85523360208601528060601c604086015216606084015260018060a01b0316608083015260a08201528660c08201528a60e08201526117dc8383611ed1565b52611ed1565b505f198114610600576001019d5115155f146119155761180761186792602092611ea4565b93516040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481019d909d52939b7f00000000000000000000000000000000000000000000000000000000000000009094169391829081906064820190565b03815f875af180156102fe576118f9575b508361188c575b5050600191505b01611465565b516040516323b872dd60e01b81523360048201526001600160a01b0390911660248201526044810193909352602090839060649082905f905af19182156102fe576001926118db575b8061187f565b6118f29060203d81116102f7576102e88183611dbc565b508b6118d5565b6119109060203d81116102f7576102e88183611dbc565b611878565b9a6119286119379260019794959e611ea4565b9c868060a01b0390511661239d565b80611944575b5050611886565b61195691848060a01b0390511661239d565b8b8061193d565b6001600160601b035f91611790565b9a8461197791611ea4565b9a6116f5565b5f8481526002602081815260408084208b51928c0151918c0151975160a09290921b60ff60a01b166001600160a01b03939093169290921760a897881b60ff60a81b161760b09190911b6001600160b01b0319161781559251935160c08a015160509190911b600160501b600160a81b03166001600160501b0395909516949094179390941b6001600160a81b03191692909217600182015560e087015161010088015161012089015160589190911b600160581b600160f81b03166001600160581b03929092169190911790151560f81b6001600160f81b031916179201919091558080611672565b505050505060019150989698611886565b508415611626565b50426001600160501b03608086015116111561161f565b60405162461bcd60e51b815260206004820152601060248201526f109d5e5a5b99c81a5cc81c185d5cd95960821b6044820152606490fd5b346101b55760203660031901126101b5576004358015158091036101b557611af56121e2565b6001805460ff60a01b191660a09290921b60ff60a01b16919091179055005b346101b55760203660031901126101b5576004355f52600260205261014060405f2080549060026001820154910154906040519260018060a01b038116845260ff8160a01c16602085015260ff8160a81c16604085015260b01c60608401526001600160501b03811660808401526001600160581b038160501c1660a084015260a81c60c08301526001600160581b03811660e083015260018060a01b038160581c1661010083015260f81c1515610120820152f35b346101b55760203660031901126101b5576060906004355f52600360205260405f205462ffffff811682526001600160481b038160181c166020830152821c6040820152f35b9181601f840112156101b5578235916001600160401b0383116101b5576020808501948460051b0101116101b557565b600435906001600160a01b03821682036101b557565b60406003198201126101b5576004356001600160401b0381116101b55781611c8091600401611c10565b92909291602435906001600160401b0382116101b557611ca291600401611c10565b9091565b9190916101208061014083019460018060a01b03815116845260ff602082015116602085015260ff60408201511660408501526001600160501b0360608201511660608501526001600160501b0360808201511660808501526001600160581b0360a08201511660a08501526001600160581b0360c08201511660c08501526001600160581b0360e08201511660e085015260018060a01b036101008201511661010085015201511515910152565b606081019081106001600160401b03821117611d7057604052565b634e487b7160e01b5f52604160045260245ffd5b61010081019081106001600160401b03821117611d7057604052565b61014081019081106001600160401b03821117611d7057604052565b90601f801991011681019081106001600160401b03821117611d7057604052565b6001600160401b038111611d705760051b60200190565b90611dfe82611ddd565b611e0b6040519182611dbc565b8281528092611e1c601f1991611ddd565b01905f5b828110611e2c57505050565b602090604051611e3b81611d84565b5f81525f838201525f60408201525f60608201525f60808201525f60a08201525f60c08201525f60e082015282828501015201611e20565b9190811015611e835760051b0190565b634e487b7160e01b5f52603260045260245ffd5b9190820391821161060057565b9190820180921161060057565b8181029291811591840414171561060057565b805115611e835760200190565b8051821015611e835760209160051b010190565b908160209103126101b5575180151581036101b55790565b15611f0457565b60405162461bcd60e51b815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74000000006044820152606490fd5b60206040818301928281528451809452019201905f5b818110611f6c5750505090565b825180516001600160a01b039081168652602082810151821681880152604080840151831690880152606080840151908801526080808401519092169187019190915260a0808301519087015260c0808301519087015260e091820151918601919091526101009094019390920191600101611f5f565b6120026001600160501b036080611ff98461206c565b0151169161202b565b901515908161200f575090565b905042101590565b356001600160a01b03811681036101b55790565b6001600160501b03608061203e8361206c565b01511662015180810180911161060057612069915f52600360205262ffffff60405f20541690611ea4565b90565b5f61012060405161207c81611da0565b8281528260208201528260408201528260608201528260808201528260a08201528260c08201528260e08201528261010082015201525f52600460205260405f20545f52600260205260405f206002604051916120d883611da0565b805460018060a01b038116845260ff8160a01c16602085015260ff8160a81c16604085015260b01c606084015260018101546001600160501b03811660808501526001600160581b038160501c1660a085015260a81c60c084015201546001600160581b03811660e083015260018060a01b038160581c1661010083015260f81c151561012082015290565b61216d9061206c565b60c08101516001600160581b0316908115612186575090565b610120015115905061219a576301c9c38090565b67016345785d8a000090565b6121bc6001600160501b036080611ff98461206c565b81151591826121d7575b50816121d0575090565b9050421090565b42101591505f6121c6565b5f546001600160a01b031633036121f557565b63118cdaa760e01b5f523360045260245ffd5b5f916001600160601b038160601c9116916040516331a9108f60e11b8152836004820152602081602481865afa5f9181612359575b506122b15750813b156122ad576040516340c10f1960e01b81526001600160a01b039091166004820152602481019290925282908290818381604481015b03925af180156122a25761228d575050565b612298828092611dbc565b61229f5750565b80fd5b6040513d84823e3d90fd5b8380fd5b6001600160a01b0381166122fc5750813b156122ad576040516340c10f1960e01b81526001600160a01b0390911660048201526024810192909252829082908183816044810161227b565b9291809194503b156101b5576040516323b872dd60e01b81526001600160a01b03938416600482015293909216602484015260448301525f908290606490829084905af180156102fe5761234d5750565b5f61235791611dbc565b565b9091506020813d602011612395575b8161237560209383611dbc565b810103126101b557516001600160a01b03811681036101b557905f61223d565b3d9150612368565b8147106123d4575f3881808585617530f1156123b7575050565b601691600b915f526073825360ff602053f0156123d057565b3838fd5b63b12d13eb5f526004601cfd5b906001600160601b03909b97969a9499939b98929816906001600160601b03199060601b161798895f52600460205260405f20546101b5578a15612611575b806126085750601e935b6001600160a01b038116612602575087945b604051986124498a611da0565b60018060a01b0316895260ff60208a019516855260ff60408a01911681526001600160501b0360608a01981688526001600160501b0360808a019b168b526001600160581b0360a08a01921682526001600160581b0360c08a01931683526001600160581b0360e08a019416845261010089019560018060a01b031686526101208901961515875260405160208101906124e7816106c18d85611ca6565b5190209a8b91825f5260026020526001600160501b03600160405f2001541615612525575b50505050505050505050505f52600460205260405f2055565b5f92835260026020819052604084209b51975191519a5160a09290921b60ff60a01b166001600160a01b03989098169790971760a89a8b1b60ff60a81b161760b09190911b6001600160b01b031916178a55519151925160509390931b600160501b600160a81b03166001600160501b0392909216919091179190961b6001600160a81b031916176001870155519151925160589390931b600160581b600160f81b03166001600160581b03929092169190911791151560f81b6001600160f81b031916919091179201919091558080808080808089818061250c565b9461243c565b60ff169361242a565b6001600160501b039a5061242056fea2646970667358221220aa5dca462e3e08014af878e630dd5489bac39d545fb6876eb6c65390714d14bb64736f6c634300081c00330000000000000000000000005308545d3ca57d051e1cfa56e9e1a330c2933d79000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

Deployed Bytecode

0x6103c0806040526004361015610013575f80fd5b5f3560e01c9081630254837614611bca57508063110898fd14611b1457806316c38b3c14611acf5780631a4109da146114035780631c31f710146113c05780632634551b146113965780632c104a921461137857806338af3eed146113505780635b2d6a491461127d5780635c975abb146112585780637100dd8714611214578063715018a6146111bd57806389d59d151461108b5780638c77cc09146110655780638da5cb5b1461103e578063919e84f51461100b578063930e79f114610fed57806395657db014610fcd578063989738ab14610b805780639d76791d14610858578063a81b2f8d14610829578063b07cc88314610207578063d45c35ff146101e1578063e71f7b15146101b95763f2fde38b14610130575f80fd5b346101b55760203660031901126101b557610149611c40565b6101516121e2565b6001600160a01b031680156101a2575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b346101b55760203660031901126101b55760206101d76004356121a6565b6040519015158152f35b346101b55760203660031901126101b55760206101ff600435612164565b604051908152f35b61021036611c56565b919260ff60015460a01c166107f0578284036101b5575f925f945f5b81811061030957868681610265575b610252915061024c81341015611efd565b34611e97565b8061025957005b610263903361239d565b005b6040516323b872dd60e01b815233600482015230602482015260448101929092526020826064815f6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48165af19182156102fe57610252926102cf575b5061023b565b6102f09060203d6020116102f7575b6102e88183611dbc565b810190611ee5565b50826102c9565b503d6102de565b6040513d5f823e3d90fd5b610314818386611e73565b35610320828588611e73565b359061032b8161206c565b90608082016001600160501b03808251161461069f575b5061034c816121a6565b8015610675575b15801561065f575b61065457805f52600360205260405f20906040519161037983611d55565b549062ffffff821683526001600160481b038260181c16916101206020850195848752604086019260601c83520192835115155f14610645576311e1a300905b1061063d576103e85b6001600160481b03865116906127100190816127101161060057612710916103e991611eb1565b048610158061062b575b610408575b5050505050506001905b0161022c565b5f9c9192939496959c505f9662ffffff5f965116916001600160481b0361042e8661202b565b92511680610614575b50506102586104464283611e97565b106105da575b5062ffffff6040519161045e83611d55565b1681528c6001600160481b0360208301911681526040820190338252845f5260036020526bffffffffffffffffff00000062ffffff60405f20945116915160181b16916001600160601b0319905160601b169117179055825115155f146105c8578b6104c991611ea4565b9a5b6040519033825260208201524260408201526001600160601b038216917fe55fea5e734015d5114a28644bd784f4484c9d4fa2d29dee5aff56034294e21b606082811c93a48361051f575b808084956103f8565b51156105b75760405163a9059cbb60e01b81526001600160a01b0390911660048201526024810192909252602082806044810103815f7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03165af19182156102fe57600192610599575b505b8880610516565b6105b09060203d81116102f7576102e88183611dbc565b5088610590565b6001926105c39161239d565b610592565b9a998a6105d491611ea4565b996104cb565b906102584201804211610600576105fa926105f491611e97565b90611ea4565b8d61044c565b634e487b7160e01b5f52601160045260245ffd5b90519098506001600160a01b031695508e80610437565b5061063582612164565b8610156103f3565b6107d06103c2565b6702c68af0bb140000906103b9565b505050600190610402565b506001600160501b03606083015116421061035b565b506001600160581b0360e0830151168015159081610694575b50610353565b90508310158b61068e565b6001600160501b034216815260405160208101906106cf816106c18785611ca6565b03601f198101835282611dbc565b51902090815f5260026020526001600160501b03600160405f2001541615610706575b50815f52600460205260405f20558a610342565b5f8281526002602081815260409283902087519188015193880151606089015160a095861b60ff60a01b166001600160a01b039094169390931760a891821b60ff60a81b161760b09390931b6001600160b01b03191692909217815593519287015160c088015160509190911b600160501b600160a81b03166001600160501b039094169390931792901b6001600160a81b03191691909117600183015560e085015161010086015161012087015160589190911b600160581b600160f81b03166001600160581b039092169190911790151560f81b6001600160f81b031916179101558b6106f2565b60405162461bcd60e51b8152602060048201526011602482015270109a59191a5b99c81a5cc81c185d5cd959607a1b6044820152606490fd5b346101b55760203660031901126101b55761085461084860043561206c565b60405191829182611ca6565b0390f35b346101b5576101803660031901126101b5576004356001600160401b0381116101b557610889903690600401611c10565b61022052610120526024356001600160401b0381116101b5576108b0903690600401611c10565b610360526101a0526044356001600160401b0381116101b5576108d7903690600401611c10565b6103a052610100526064356001600160401b0381116101b5576108fe903690600401611c10565b61034052610160526084356001600160401b0381116101b557610925903690600401611c10565b610240526101e05260a4356001600160401b0381116101b55761094c903690600401611c10565b610260526103805260c4356001600160401b0381116101b557610973903690600401611c10565b610280526103205260e4356001600160401b0381116101b55761099a903690600401611c10565b6102a05261014052610104356001600160401b0381116101b5576109c2903690600401611c10565b6102c05261018052610124356001600160401b0381116101b5576109ea903690600401611c10565b6102e0526101c052610144356001600160401b0381116101b557610a12903690600401611c10565b61030052610200526001600160401b0361016435116101b557610a3b3661016435600401611c10565b60c05260e052610a496121e2565b5f60a0525b6102205160a05110610a5c57005b610a77610a7260a0516102205161012051611e73565b612017565b608052610a8d60a051610360516101a051611e73565b35610aa160a0516103a05161010051611e73565b35610ab560a0516103405161016051611e73565b35610acc610a7260a051610240516101e051611e73565b610ae2610a7260a0516102605161038051611e73565b610af560a0516102805161032051611e73565b35610b0960a0516102a05161014051611e73565b3590610b1e60a0516102c05161018051611e73565b3592610b3360a0516102e0516101c051611e73565b3594610b4860a0516103005161020051611e73565b3596610b5b60a05160c05160e051611e73565b35988915158a036101b557610b729a6080516123e1565b600160a0510160a052610a4e565b346101b55760203660031901126101b5576004356001600160401b0381116101b557610bb0903690600401611c10565b905f915f91610bbe82611df4565b915f5b818110610cac57505050610bfc7f44091ab447a207c91754185a67a52f108a29601dd0568b17eed28398f131019e9160405191829182611f49565b0390a180610c23575b5080610c0d57005b60015461026391906001600160a01b031661239d565b60015460405163a9059cbb60e01b81526001600160a01b0390911660048201526024810191909152602081806044810103815f7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03165af180156102fe5715610c0557610ca59060203d6020116102f7576102e88183611dbc565b5081610c05565b610cb7818385611e73565b3590815f52600360205260405f209560405196610cd388611d55565b549662ffffff88168152604060208201916001600160481b038a60181c168352019760601c8852610d0384611fe3565b15610f8857516001600160481b03169081156101b5578751610d2f9085906001600160a01b0316612208565b610d388461206c565b906064610d4c60ff60208501511685611eb1565b04906064610d6160ff60408601511686611eb1565b0495610d7687610d718588611e97565b611e97565b9a61010085019560018060a01b038751169160018060a01b039051166001600160601b03610120880194855115155f14610f81577f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48925b60405195610dda87611d84565b865260208601528060601c604086015216606084015260018060a01b0316608083015260a08201528360c08201528760e0820152610e178b611ec4565b52610e218a611ec4565b505115610f3957610e37610e9192602092611ea4565b935160405163a9059cbb60e01b81526001600160a01b039182166004820152602481019b909b5293997f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489094169391829081906044820190565b03815f875af180156102fe57610f1d575b5083610eb6575b5050600191505b01610bc1565b5160405163a9059cbb60e01b81526001600160a01b0390911660048201526024810193909352602090839060449082905f905af19182156102fe57600192610eff575b80610ea9565b610f169060203d81116102f7576102e88183611dbc565b5087610ef9565b610f349060203d81116102f7576102e88183611dbc565b610ea2565b98610f4c610f5b9260019794959c611ea4565b9a868060a01b0390511661239d565b80610f68575b5050610eb0565b610f7a91848060a01b0390511661239d565b8780610f61565b5f92610dcd565b60405162461bcd60e51b815260206004820152601760248201527f41756374696f6e206973207374696c6c206163746976650000000000000000006044820152606490fd5b346101b55760203660031901126101b557602060405160043560601c8152f35b346101b55760203660031901126101b55760206101ff60043561202b565b346101b55760203660031901126101b55760206001600160501b03608061103360043561206c565b015116604051908152f35b346101b5575f3660031901126101b5575f546040516001600160a01b039091168152602090f35b346101b55760203660031901126101b55760206040516001600160601b03600435168152f35b346101b55761109936611c56565b6110a49392936121e2565b5f5b8481106110af57005b806110c0610a726001938888611e73565b6001600160601b036110d3838688611e73565b3516906001600160601b03199060601b16176110ee81611fe3565b15611161575b805f5260046020525f60408120556040519061110f82611d55565b5f8252602082015f815260408301915f83525f5260036020526bffffffffffffffffff00000062ffffff60405f20945116915160181b16916001600160601b0319905160601b169117179055016110a6565b805f5260036020526040805f2081519061117a82611d55565b549062ffffff821681526001600160481b038260181c169182602083015260601c9283910152806111ad575b50506110f4565b6111b69161239d565b87806111a6565b346101b5575f3660031901126101b5576111d56121e2565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346101b55760403660031901126101b557602061122f611c40565b60405160609190911b6bffffffffffffffffffffffff19166024356001600160601b0316178152f35b346101b5575f3660031901126101b557602060ff60015460a01c166040519015158152f35b346101b5576101803660031901126101b557611297611c40565b6024356001600160401b0381116101b5576112b6903690600401611c10565b91906044356064356084356001600160a01b03811681036101b55760a4356001600160a01b03811681036101b55760c43560e4359061010435926101243594610144359661016435988915158a036101b5576113106121e2565b5f5b8d811061131b57005b8061134a8f8f8f8f928f928f928f928f928f928f928f928f928f929e60019f61134392611e73565b35906123e1565b01611312565b346101b5575f3660031901126101b5576001546040516001600160a01b039091168152602090f35b346101b55760203660031901126101b55760206101d7600435611fe3565b346101b55760203660031901126101b5576004355f526004602052602060405f2054604051908152f35b346101b55760203660031901126101b5576113d9611c40565b6113e16121e2565b600180546001600160a01b0319166001600160a01b0392909216919091179055005b60203660031901126101b5576004356001600160401b0381116101b55761142e903690600401611c10565b9060ff60015460a01c16611a9757905f808061144984611df4565b945f946001600160501b03426201517f19810191821692911190875b8181106115d95750505050508161153f575b611488915061024c81341015611efd565b8061152f575b5080611513575b508061149d57005b6114a681611df4565b915f5b8281106114e9575050506114e47f44091ab447a207c91754185a67a52f108a29601dd0568b17eed28398f131019e9160405191829182611f49565b0390a1005b806114f660019284611ed1565b516115018287611ed1565b5261150c8186611ed1565b50016114a9565b60015461152991906001600160a01b031661239d565b82611495565b611539903361239d565b8361148e565b6001546040516323b872dd60e01b81523360048201526001600160a01b0390911660248201526044810192909252602082806064810103815f7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03165af19182156102fe57611488926115ba575b50611477565b6115d29060203d6020116102f7576102e88183611dbc565b50856115b4565b6115e78183879b999b611e73565b35906115f28261206c565b9160a08301928351916001600160581b0383169260608301956001600160501b0387511642108015611a80575b8015611a78575b611a675788610600578f9660808501918b8352604051602081019061164f816106c18a85611ca6565b51902092835f5260026020526001600160501b03600160405f200154161561197d575b505050825f52600460205260405f20556040519061168f82611d55565b5f82526001600160481b0360208301911681526040820190338252835f5260036020526bffffffffffffffffff00000062ffffff60405f20945116915160181b16916001600160601b0319905160601b16911717905561012082019c8d9b8c511561196c575b6116ff8333612208565b602084015160ff166117119086611eb1565b606490049281604086015160ff166117299088611eb1565b606490049889611739878a611e97565b9061174391611e97565b9f610100880198600160a01b600190038a5116915115155f14946117e29561195d576001600160601b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48915b6040519461179d86611d84565b85523360208601528060601c604086015216606084015260018060a01b0316608083015260a08201528660c08201528a60e08201526117dc8383611ed1565b52611ed1565b505f198114610600576001019d5115155f146119155761180761186792602092611ea4565b93516040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481019d909d52939b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489094169391829081906064820190565b03815f875af180156102fe576118f9575b508361188c575b5050600191505b01611465565b516040516323b872dd60e01b81523360048201526001600160a01b0390911660248201526044810193909352602090839060649082905f905af19182156102fe576001926118db575b8061187f565b6118f29060203d81116102f7576102e88183611dbc565b508b6118d5565b6119109060203d81116102f7576102e88183611dbc565b611878565b9a6119286119379260019794959e611ea4565b9c868060a01b0390511661239d565b80611944575b5050611886565b61195691848060a01b0390511661239d565b8b8061193d565b6001600160601b035f91611790565b9a8461197791611ea4565b9a6116f5565b5f8481526002602081815260408084208b51928c0151918c0151975160a09290921b60ff60a01b166001600160a01b03939093169290921760a897881b60ff60a81b161760b09190911b6001600160b01b0319161781559251935160c08a015160509190911b600160501b600160a81b03166001600160501b0395909516949094179390941b6001600160a81b03191692909217600182015560e087015161010088015161012089015160589190911b600160581b600160f81b03166001600160581b03929092169190911790151560f81b6001600160f81b031916179201919091558080611672565b505050505060019150989698611886565b508415611626565b50426001600160501b03608086015116111561161f565b60405162461bcd60e51b815260206004820152601060248201526f109d5e5a5b99c81a5cc81c185d5cd95960821b6044820152606490fd5b346101b55760203660031901126101b5576004358015158091036101b557611af56121e2565b6001805460ff60a01b191660a09290921b60ff60a01b16919091179055005b346101b55760203660031901126101b5576004355f52600260205261014060405f2080549060026001820154910154906040519260018060a01b038116845260ff8160a01c16602085015260ff8160a81c16604085015260b01c60608401526001600160501b03811660808401526001600160581b038160501c1660a084015260a81c60c08301526001600160581b03811660e083015260018060a01b038160581c1661010083015260f81c1515610120820152f35b346101b55760203660031901126101b5576060906004355f52600360205260405f205462ffffff811682526001600160481b038160181c166020830152821c6040820152f35b9181601f840112156101b5578235916001600160401b0383116101b5576020808501948460051b0101116101b557565b600435906001600160a01b03821682036101b557565b60406003198201126101b5576004356001600160401b0381116101b55781611c8091600401611c10565b92909291602435906001600160401b0382116101b557611ca291600401611c10565b9091565b9190916101208061014083019460018060a01b03815116845260ff602082015116602085015260ff60408201511660408501526001600160501b0360608201511660608501526001600160501b0360808201511660808501526001600160581b0360a08201511660a08501526001600160581b0360c08201511660c08501526001600160581b0360e08201511660e085015260018060a01b036101008201511661010085015201511515910152565b606081019081106001600160401b03821117611d7057604052565b634e487b7160e01b5f52604160045260245ffd5b61010081019081106001600160401b03821117611d7057604052565b61014081019081106001600160401b03821117611d7057604052565b90601f801991011681019081106001600160401b03821117611d7057604052565b6001600160401b038111611d705760051b60200190565b90611dfe82611ddd565b611e0b6040519182611dbc565b8281528092611e1c601f1991611ddd565b01905f5b828110611e2c57505050565b602090604051611e3b81611d84565b5f81525f838201525f60408201525f60608201525f60808201525f60a08201525f60c08201525f60e082015282828501015201611e20565b9190811015611e835760051b0190565b634e487b7160e01b5f52603260045260245ffd5b9190820391821161060057565b9190820180921161060057565b8181029291811591840414171561060057565b805115611e835760200190565b8051821015611e835760209160051b010190565b908160209103126101b5575180151581036101b55790565b15611f0457565b60405162461bcd60e51b815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74000000006044820152606490fd5b60206040818301928281528451809452019201905f5b818110611f6c5750505090565b825180516001600160a01b039081168652602082810151821681880152604080840151831690880152606080840151908801526080808401519092169187019190915260a0808301519087015260c0808301519087015260e091820151918601919091526101009094019390920191600101611f5f565b6120026001600160501b036080611ff98461206c565b0151169161202b565b901515908161200f575090565b905042101590565b356001600160a01b03811681036101b55790565b6001600160501b03608061203e8361206c565b01511662015180810180911161060057612069915f52600360205262ffffff60405f20541690611ea4565b90565b5f61012060405161207c81611da0565b8281528260208201528260408201528260608201528260808201528260a08201528260c08201528260e08201528261010082015201525f52600460205260405f20545f52600260205260405f206002604051916120d883611da0565b805460018060a01b038116845260ff8160a01c16602085015260ff8160a81c16604085015260b01c606084015260018101546001600160501b03811660808501526001600160581b038160501c1660a085015260a81c60c084015201546001600160581b03811660e083015260018060a01b038160581c1661010083015260f81c151561012082015290565b61216d9061206c565b60c08101516001600160581b0316908115612186575090565b610120015115905061219a576301c9c38090565b67016345785d8a000090565b6121bc6001600160501b036080611ff98461206c565b81151591826121d7575b50816121d0575090565b9050421090565b42101591505f6121c6565b5f546001600160a01b031633036121f557565b63118cdaa760e01b5f523360045260245ffd5b5f916001600160601b038160601c9116916040516331a9108f60e11b8152836004820152602081602481865afa5f9181612359575b506122b15750813b156122ad576040516340c10f1960e01b81526001600160a01b039091166004820152602481019290925282908290818381604481015b03925af180156122a25761228d575050565b612298828092611dbc565b61229f5750565b80fd5b6040513d84823e3d90fd5b8380fd5b6001600160a01b0381166122fc5750813b156122ad576040516340c10f1960e01b81526001600160a01b0390911660048201526024810192909252829082908183816044810161227b565b9291809194503b156101b5576040516323b872dd60e01b81526001600160a01b03938416600482015293909216602484015260448301525f908290606490829084905af180156102fe5761234d5750565b5f61235791611dbc565b565b9091506020813d602011612395575b8161237560209383611dbc565b810103126101b557516001600160a01b03811681036101b557905f61223d565b3d9150612368565b8147106123d4575f3881808585617530f1156123b7575050565b601691600b915f526073825360ff602053f0156123d057565b3838fd5b63b12d13eb5f526004601cfd5b906001600160601b03909b97969a9499939b98929816906001600160601b03199060601b161798895f52600460205260405f20546101b5578a15612611575b806126085750601e935b6001600160a01b038116612602575087945b604051986124498a611da0565b60018060a01b0316895260ff60208a019516855260ff60408a01911681526001600160501b0360608a01981688526001600160501b0360808a019b168b526001600160581b0360a08a01921682526001600160581b0360c08a01931683526001600160581b0360e08a019416845261010089019560018060a01b031686526101208901961515875260405160208101906124e7816106c18d85611ca6565b5190209a8b91825f5260026020526001600160501b03600160405f2001541615612525575b50505050505050505050505f52600460205260405f2055565b5f92835260026020819052604084209b51975191519a5160a09290921b60ff60a01b166001600160a01b03989098169790971760a89a8b1b60ff60a81b161760b09190911b6001600160b01b031916178a55519151925160509390931b600160501b600160a81b03166001600160501b0392909216919091179190961b6001600160a81b031916176001870155519151925160589390931b600160581b600160f81b03166001600160581b03929092169190911791151560f81b6001600160f81b031916919091179201919091558080808080808089818061250c565b9461243c565b60ff169361242a565b6001600160501b039a5061242056fea2646970667358221220aa5dca462e3e08014af878e630dd5489bac39d545fb6876eb6c65390714d14bb64736f6c634300081c0033

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

0000000000000000000000005308545d3ca57d051e1cfa56e9e1a330c2933d79000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

-----Decoded View---------------
Arg [0] : contractOwner (address): 0x5308545D3CA57D051E1cFa56e9E1a330c2933d79
Arg [1] : _usdcAddress (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005308545d3ca57d051e1cfa56e9e1a330c2933d79
Arg [1] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48


Deployed Bytecode Sourcemap

309:20308:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;:::i;:::-;1500:62:1;;:::i;:::-;-1:-1:-1;;;;;309:20308:4;2627:22:1;;2623:91;;309:20308:4;;;-1:-1:-1;;;;;;723:8:4;;;;;;-1:-1:-1;;;;;309:20308:4;;3052:40:1;;309:20308:4;3052:40:1;309:20308:4;2623:91:1;2672:31;;;309:20308:4;2672:31:1;309:20308:4;;;;;2672:31:1;309:20308:4;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;3054:6;309:20308;;;;;;3100:42;;;309:20308;;;3180:17;309:20308;3212:9;309:20308;3223:21;;;;;;6301:13;;;6297:107;;3207:3081;6510:20;6421:9;;6413:62;6421:9;;:21;;6413:62;:::i;:::-;6421:9;6510:20;:::i;:::-;6544:18;6540:191;;309:20308;6540:191;6692:14;6632:10;;6692:14;:::i;:::-;309:20308;6297:107;309:20308;;-1:-1:-1;;;6330:63:4;;6356:10;309:20308;6330:63;;309:20308;6376:4;1016:6;;;309:20308;1016:6;;;309:20308;;;;;;1016:6;309:20308;-1:-1:-1;;;;;;6337:4:4;309:20308;6330:63;;;;;;;6510:20;6330:63;;;6297:107;;;;6330:63;;;309:20308;6330:63;309:20308;6330:63;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;;;;309:20308;;1016:6;309:20308;1016:6;;;;;3246:3;3285:13;;;;;:::i;:::-;309:20308;3336:17;;;;;:::i;:::-;309:20308;3397:20;;;;:::i;:::-;3483:23;;;;-1:-1:-1;;;;;309:20308:4;;;;3483:43;3479:407;;3246:3;3923:26;;;;:::i;:::-;:137;;;;3246:3;3921:140;309:20308;;3921:200;;3246:3;3900:277;;309:20308;;;4219:18;309:20308;;;;;;;;;;;;:::i;:::-;;;;;;723:8;;-1:-1:-1;;;;;309:20308:4;;;;;4345:15;309:20308;;;723:8;;;;309:20308;;;;723:8;309:20308;723:8;;4345:15;723:8;;;309:20308;;20414:65;;;;723:8;20414:65;;4284:77;;;963:5;4284:156;-1:-1:-1;;;;;723:8:4;;309:20308;723:8;383:6;723:8;;;383:6;723:8;;;383:6;4511:39;;;;:::i;:::-;723:8;4476:82;;;:145;;;4284:156;4455:1823;;4284:156;3246:3;;;;;;3054:6;3246:3;3212:9;309:20308;3212:9;;4455:1823;309:20308;4654:20;;;;;;;;;309:20308;4692:20;309:20308;;723:8;;309:20308;4807:28;-1:-1:-1;;;;;4807:28:4;;;:::i;:::-;723:8;;309:20308;4858:21;4854:154;;4455:1823;5040:15;;658:10;5030:25;5040:15;5030:25;;:::i;:::-;:42;5026:141;;4455:1823;309:20308;;;;;;;;:::i;:::-;;723:8;;5217:136;-1:-1:-1;;;;;309:20308:4;5217:136;;309:20308;;723:8;;309:20308;5217:136;;5325:10;;723:8;;309:20308;;;4219:18;309:20308;;723:8;309:20308;;;;723:8;;309:20308;723:8;;309:20308;723:8;;;-1:-1:-1;;;;;723:8:4;;;;;;;;;;;;;309:20308;;5372:160;5376:15;;;5415:26;;;;:::i;:::-;5372:160;;309:20308;;5325:10;;309:20308;;;658:10;;309:20308;5040:15;309:20308;658:10;;309:20308;-1:-1:-1;;;;;309:20308:4;;;5555:264;723:8;309:20308;;;5555:264;;5842:16;5838:426;;5372:160;4455:1823;;;;;;5838:426;723:8;309:20308;5886:15;;309:20308;;-1:-1:-1;;;5929:49:4;;-1:-1:-1;;;;;309:20308:4;;;;5929:49;;309:20308;;;;;;;;;;;;;;5929:49;309:20308;;5936:4;-1:-1:-1;;;;;309:20308:4;5929:49;;;;;;;3054:6;5929:49;;;5882:364;;;5838:426;;;;5929:49;;;309:20308;5929:49;;;;;;;;;:::i;:::-;;;;;5882:364;3054:6;6183:14;;;;:::i;:::-;5882:364;;5372:160;5488:25;;;;;;:::i;:::-;5372:160;;;5026:141;5040:15;658:10;5040:15;723:8;5040:15;;723:8;;;5096:52;5106:42;;;;:::i;:::-;5096:52;;:::i;:::-;5026:141;;;723:8;;;;309:20308;723:8;;309:20308;723:8;;309:20308;723:8;4854:154;723:8;;4903:32;;-1:-1:-1;;;;;;309:20308:4;;-1:-1:-1;4854:154:4;;;;4476:145;4595:26;;;;:::i;:::-;4578:43;;;4476:145;;4284:156;903:5;4284:156;;20414:65;449:9;20414:65;;;3900:277;4154:8;;;3054:6;4154:8;;;3921:200;4099:22;-1:-1:-1;;;;;723:8:4;4099:22;;309:20308;;4081:15;:40;3921:200;;3923:137;3974:18;-1:-1:-1;;;;;309:20308:4;3974:18;;309:20308;;3974:22;;;:85;;;;3923:137;;;;3974:85;4024:35;;;;;3974:85;;;3479:407;-1:-1:-1;;;;;3579:15:4;309:20308;723:8;;309:20308;;;3644:18;;;;;;;;;:::i;:::-;;7811;;3644;;;;;;:::i;:::-;723:8;3634:29;;309:20308;;;;3685:13;309:20308;;-1:-1:-1;;;;;3054:6:4;309:20308;;;3685:42;309:20308;;3685:47;3681:128;;3479:407;309:20308;;;;;;;;;;723:8;3479:407;;;3681:128;309:20308;;;;3685:13;309:20308;;;;;;;;;723:8;;;;;;;;;;;;;309:20308;;;;;-1:-1:-1;;;309:20308:4;-1:-1:-1;;;;;309:20308:4;;;723:8;;;;;;;;-1:-1:-1;;;723:8:4;;;;;;;-1:-1:-1;;;;;;723:8:4;;;;;;;309:20308;;723:8;;;309:20308;723:8;;;309:20308;723:8;;;;;-1:-1:-1;;;;;;;723:8:4;-1:-1:-1;;;;;309:20308:4;;;723:8;;;;;;;-1:-1:-1;;;;;;723:8:4;;;;;309:20308;723:8;;;309:20308;723:8;;309:20308;723:8;;;;4345:15;723:8;;;;;;;;-1:-1:-1;;;;;;;723:8:4;-1:-1:-1;;;;;309:20308:4;;;723:8;;;;309:20308;;;723:8;;-1:-1:-1;;;;;;723:8:4;;;;;3681:128;;;309:20308;;;-1:-1:-1;;;309:20308:4;;;;;;;;;;;;-1:-1:-1;;;309:20308:4;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;:::i;:::-;;;;;1500:62:1;;:::i;:::-;309:20308:4;17673:9;;17684:22;17688:18;;17684:22;;;;;309:20308;17708:3;17754:14;;;;;;;;;:::i;:::-;;:::i;:::-;;;17786:11;;;;;;;;:::i;:::-;309:20308;17815:19;;;;;;;;:::i;:::-;309:20308;17852:20;;;;;;;;:::i;:::-;309:20308;17890:10;;;;;;;;;:::i;:::-;17918;;;;;;;;;:::i;:::-;17946:15;;;;;;;;:::i;:::-;309:20308;17979:12;;;;;;;;:::i;:::-;309:20308;18009:15;;;;;;;;;:::i;:::-;309:20308;18042:16;;;;;;;;;:::i;:::-;309:20308;18076:15;;;;;;;;;:::i;:::-;309:20308;18109:12;;;;;;;;;:::i;:::-;309:20308;;;;;;;;;18109:12;;;;;:::i;:::-;309:20308;17708:3;;309:20308;17708:3;;17673:9;;309:20308;;;;;;-1:-1:-1;;309:20308:4;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;11010:24;309:20308;11044:25;309:20308;11117:32;;;;:::i;:::-;11202:9;309:20308;11213:21;;;;;;309:20308;;;13082:24;;309:20308;;;13082:24;;;;;:::i;:::-;;;;13121:21;13117:105;;11197:1870;13235:20;;13231:196;;309:20308;13231:196;309:20308;;13388:14;;309:20308;-1:-1:-1;;;;;309:20308:4;13388:14;:::i;13117:105::-;309:20308;;;;-1:-1:-1;;;13158:53:4;;-1:-1:-1;;;;;309:20308:4;;;;13158:53;;309:20308;;;;;;;;;;;;;;13158:53;309:20308;;13165:4;-1:-1:-1;;;;;309:20308:4;13158:53;;;;;;;13117:105;13158:53;;;309:20308;13158:53;309:20308;13158:53;;;;;;;:::i;:::-;;;13117:105;;11236:3;11275:13;;;;;:::i;:::-;309:20308;;;;;11330:18;309:20308;;;;;;;;;;;;:::i;:::-;;;;;;723:8;;309:20308;;;;;-1:-1:-1;;;;;309:20308:4;;;;723:8;;309:20308;;723:8;309:20308;723:8;;11381:24;;;:::i;:::-;309:20308;;;723:8;-1:-1:-1;;;;;309:20308:4;;11509:15;;309:20308;;723:8;;11574:9;;309:20308;;-1:-1:-1;;;;;309:20308:4;11574:9;:::i;:::-;11628:20;;;:::i;:::-;11706:18;11728:3;11692:32;309:20308;;11706:18;;723:8;309:20308;11692:32;;:::i;:::-;723:8;11778:14;11728:3;11764:28;309:20308;;11778:14;;723:8;309:20308;11764:28;;:::i;:::-;723:8;11839:31;:41;:31;;;;;:::i;:::-;:41;:::i;:::-;11958:13;;;;309:20308;;;;;;723:8;;309:20308;;;;;;;723:8;;309:20308;-1:-1:-1;;;;;12120:15:4;;;723:8;;;309:20308;;12120:35;;;;12138:4;12120:35;;309:20308;;;;;;:::i;:::-;723:8;;309:20308;11933:325;;723:8;309:20308;723:8;309:20308;;11933:325;;723:8;309:20308;723:8;11933:325;;723:8;309:20308;;;;;;11933:325;;;723:8;11933:325;;;723:8;11933:325;;;;723:8;11933:325;309:20308;11933:325;;723:8;11895:363;;;:::i;:::-;;;;;:::i;:::-;-1:-1:-1;723:8:4;309:20308;12277:15;;12312:38;12368:53;12312:38;309:20308;12312:38;;:::i;:::-;723:8;;309:20308;;-1:-1:-1;;;12368:53:4;;-1:-1:-1;;;;;309:20308:4;;;;12368:53;;309:20308;;;;;;;;;;12375:4;309:20308;;;;;;;;;;;;;;12368:53;;;309:20308;12368:53;;;;;;;;;12273:784;12443:11;;12439:103;;12273:784;;;309:20308;12273:784;;;309:20308;11202:9;;12439:103;723:8;309:20308;;-1:-1:-1;;;12478:45:4;;-1:-1:-1;;;;;309:20308:4;;;;12478:45;;309:20308;;;;;;;;;;;;;;;;-1:-1:-1;;12478:45:4;;;;;;;309:20308;12478:45;;;12439:103;;;;12478:45;;;309:20308;12478:45;;;;;;;;;:::i;:::-;;;;;12368:53;;;309:20308;12368:53;;;;;;;;;:::i;:::-;;;12273:784;12580:37;;12765:14;12580:37;309:20308;12580:37;;;;;:::i;:::-;309:20308;;;;;;723:8;;309:20308;12765:14;:::i;:::-;12819:11;12815:228;;12273:784;;;;;12815:228;12988:14;309:20308;;;;;;723:8;;309:20308;12988:14;:::i;:::-;12815:228;;;;12120:35;309:20308;12120:35;;;309:20308;;;-1:-1:-1;;;309:20308:4;;;;;;;;;;;;;;;;;11728:3;;309:20308;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;;19736:2;309:20308;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;309:20308:4;;;;;-1:-1:-1;;;;;19576:37:4;:20;309:20308;;19576:20;:::i;:::-;:37;309:20308;;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;:::i;:::-;1500:62:1;;;;;:::i;:::-;309:20308:4;17021:22;;;;;;309:20308;17045:3;17078:14;;;309:20308;17078:14;;;;:::i;:::-;-1:-1:-1;;;;;17094:11:4;;;;;:::i;:::-;309:20308;;723:8;-1:-1:-1;;;;;723:8:4;309:20308;18551:2;309:20308;;18518:54;14176:24;;;:::i;:::-;14175:25;14171:358;;17045:3;309:20308;;;;;;;;;;723:8;309:20308;;;;;;:::i;:::-;;723:8;;309:20308;14625:25;;309:20308;723:8;;309:20308;14625:25;;723:8;309:20308;723:8;;309:20308;;14593:18;309:20308;;723:8;309:20308;;;;723:8;;309:20308;723:8;;;;;;-1:-1:-1;;;;;723:8:4;;;;;;;;;;;309:20308;17010:9;;14171:358;309:20308;;;14593:18;309:20308;;;;;;;;;;;;:::i;:::-;;;;;;723:8;;-1:-1:-1;;;;;309:20308:4;723:8;309:20308;;;;;;;723:8;;309:20308;;;;;723:8;14292:22;14288:231;;14171:358;;;;;14288:231;14334:170;;;:::i;:::-;14288:231;;;;309:20308;;;;;;-1:-1:-1;;309:20308:4;;;;1500:62:1;;:::i;:::-;309:20308:4;;;-1:-1:-1;;;;;;723:8:4;;;;-1:-1:-1;;;;;309:20308:4;3052:40:1;309:20308:4;;3052:40:1;309:20308:4;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;:::i;:::-;;;18551:2;309:20308;;;;-1:-1:-1;;309:20308:4;;;-1:-1:-1;;;;;309:20308:4;18518:54;309:20308;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;1321:18;309:20308;;;;;;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;:::i;:::-;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1500:62:1;;:::i;:::-;309:20308:4;16444:19;;;;;;309:20308;16465:3;16539:11;16825:8;16539:11;;;;;;;;;;;;;;;;;;;;;;;;309:20308;16539:11;;;;:::i;:::-;309:20308;16825:8;;:::i;:::-;309:20308;16433:9;;309:20308;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;:::i;:::-;1500:62:1;;:::i;:::-;309:20308:4;723:8;;-1:-1:-1;;;;;;723:8:4;-1:-1:-1;;;;;309:20308:4;;;;723:8;;;;;;309:20308;;;;-1:-1:-1;;309:20308:4;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;:::i;:::-;;;6826:6;309:20308;;;;;;6864:16;309:20308;;;7083:32;6864:16;7083:32;:::i;:::-;7125:27;309:20308;;-1:-1:-1;;;;;7413:15:4;-1:-1:-1;;723:8:4;;309:20308;;;;723:8;;;309:20308;7183:21;;;;;;9862;;;;;;9858:121;;7163:2685;10085:20;9996:9;;9988:62;9996:9;;:21;;9988:62;:::i;10085:20::-;10119:18;10115:191;;7163:2685;10319:20;;10315:196;;7163:2685;10587:19;;10583:341;;309:20308;10583:341;10728:30;;;:::i;:::-;10777:13;309:20308;10792:19;;;;;;309:20308;;;10902:11;;309:20308;;;10902:11;;;;;:::i;:::-;;;;309:20308;10813:3;10847:21;;6826:6;10847:21;;;:::i;:::-;;10836:32;;;;:::i;:::-;;;;;;:::i;:::-;;309:20308;10777:13;;10315:196;309:20308;;10472:14;;309:20308;-1:-1:-1;;;;;309:20308:4;10472:14;:::i;:::-;10315:196;;;10115:191;10267:14;8149:10;;10267:14;:::i;:::-;10115:191;;;9858:121;309:20308;;;;-1:-1:-1;;;9899:69:4;;8149:10;309:20308;9899:69;;309:20308;-1:-1:-1;;;;;309:20308:4;;;1016:6;;;309:20308;1016:6;;;309:20308;;;;;;;1016:6;;;9899:69;309:20308;;9906:4;-1:-1:-1;;;;;309:20308:4;9899:69;;;;;;;10085:20;9899:69;;;9858:121;;;;9899:69;;;309:20308;9899:69;309:20308;9899:69;;;;;;;:::i;:::-;;;;;7206:3;7245:13;;;;;;;;:::i;:::-;309:20308;7302:20;;;;:::i;:::-;7358:18;309:20308;7358:18;;309:20308;;;;-1:-1:-1;;;;;309:20308:4;;7431:22;;;;309:20308;-1:-1:-1;;;;;309:20308:4;;;7413:15;:40;7412:106;;;;7206:3;7412:142;;;;7206:3;7391:219;;723:8;;;7693:23;;;;;723:8;;;;309:20308;;;7811:18;;;;;;;;;:::i;:::-;723:8;7801:29;;309:20308;;;;7848:13;309:20308;;-1:-1:-1;;;;;6826:6:4;309:20308;;;7848:42;309:20308;;7848:47;7844:120;;7206:3;309:20308;;;;;;;;;;;;723:8;309:20308;;;;;;:::i;:::-;;723:8;;-1:-1:-1;;;;;309:20308:4;8068:105;;309:20308;;723:8;;309:20308;8068:105;;8149:10;;723:8;;309:20308;;;8036:18;309:20308;;723:8;309:20308;;;;723:8;;309:20308;723:8;;;;;;-1:-1:-1;;;;;723:8:4;;;7431:22;723:8;;;;;;;8193:15;;;723:8;;;;;309:20308;8188:78;;7206:3;8351:9;8149:10;;8351:9;:::i;:::-;309:20308;8431:18;;723:8;309:20308;;8417:32;;;;:::i;:::-;8453:3;723:8;;8503:14;;309:20308;8503:14;;723:8;309:20308;;8489:28;;;;:::i;:::-;8453:3;723:8;;8564:31;;;;;;:::i;:::-;:41;;;;:::i;:::-;8683:13;;;;309:20308;;;;;;;723:8;;309:20308;723:8;;309:20308;;8838:35;;;8620:356;8838:35;;;-1:-1:-1;;;;;8856:4:4;8838:35;;309:20308;;;;;;:::i;:::-;723:8;;8149:10;309:20308;8658:318;;723:8;309:20308;7431:22;309:20308;;8658:318;;723:8;309:20308;7431:22;8658:318;;723:8;309:20308;;;;;;7693:23;8658:318;;723:8;309:20308;8658:318;;723:8;8658:318;;;;723:8;8658:318;309:20308;8658:318;;723:8;8620:356;;;;:::i;:::-;;;:::i;:::-;-1:-1:-1;;;723:8:4;;;;6826:6;723:8;;;309:20308;;9022:816;9026:15;;;9061:38;9117:69;9061:38;309:20308;9061:38;;:::i;:::-;723:8;;309:20308;;-1:-1:-1;;;9117:69:4;;8149:10;309:20308;9117:69;;309:20308;-1:-1:-1;;;;;309:20308:4;;;1016:6;;;309:20308;1016:6;;;309:20308;;;;;;9124:4;309:20308;;;;;;;;;1016:6;;;;;9117:69;;;309:20308;9117:69;;;;;;;;;9022:816;9208:11;;9204:119;;9022:816;;;6826:6;9022:816;;;309:20308;7168:13;;9204:119;723:8;309:20308;;-1:-1:-1;;;9243:61:4;;8149:10;309:20308;9243:61;;309:20308;-1:-1:-1;;;;;309:20308:4;;;1016:6;;;309:20308;1016:6;;;309:20308;;;;;;;;1016:6;;309:20308;;-1:-1:-1;;9243:61:4;;;;;;;6826:6;9243:61;;;9204:119;;;;9243:61;;;309:20308;9243:61;;;;;;;;;:::i;:::-;;;;;9117:69;;;309:20308;9117:69;;;;;;;;;:::i;:::-;;;9022:816;9361:37;;9546:14;9361:37;6826:6;9361:37;;;;;:::i;:::-;309:20308;;;;;;723:8;;309:20308;9546:14;:::i;:::-;9600:11;9596:228;;9022:816;;;;;9596:228;9769:14;309:20308;;;;;;723:8;;309:20308;9769:14;:::i;:::-;9596:228;;;;8838:35;-1:-1:-1;;;;;309:20308:4;8838:35;;;8188:78;8228:23;;;;;:::i;:::-;8188:78;;;7844:120;309:20308;;;;7848:13;309:20308;;;;;;;;723:8;;;;;;;;;;309:20308;;;;;;;-1:-1:-1;;;309:20308:4;-1:-1:-1;;;;;309:20308:4;;;;723:8;;;;;;;;-1:-1:-1;;;723:8:4;;;;;;;-1:-1:-1;;;;;;723:8:4;;;;309:20308;;;;8658:318;723:8;;309:20308;723:8;;;;;-1:-1:-1;;;;;;;723:8:4;-1:-1:-1;;;;;309:20308:4;;;;723:8;;;;;;;;-1:-1:-1;;;;;;723:8:4;;;;;309:20308;723:8;;;309:20308;723:8;;309:20308;8683:13;723:8;;;8193:15;723:8;;;;;;;;-1:-1:-1;;;;;;;723:8:4;-1:-1:-1;;;;;309:20308:4;;;;723:8;;;;309:20308;;;723:8;;-1:-1:-1;;;;;;723:8:4;;;;;;;;309:20308;;7844:120;;7391:219;7587:8;;;;;6826:6;7587:8;;;;;;;7412:142;7538:16;;;7412:142;;:106;7413:15;;-1:-1:-1;;;;;7693:23:4;7475;;309:20308;;7475:42;;7412:106;;309:20308;;;-1:-1:-1;;;309:20308:4;;;;;;;;;;;;-1:-1:-1;;;309:20308:4;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;;;;;;;1500:62:1;;:::i;:::-;18332:16:4;309:20308;;-1:-1:-1;;;;309:20308:4;;;;;;-1:-1:-1;;;309:20308:4;;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;1959:54;309:20308;;;;;;;;1959:54;;309:20308;1959:54;;309:20308;1959:54;;309:20308;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;309:20308:4;;;;;;;;;;2019:53;309:20308;;;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;309:20308:4;;;;;;:::o;:::-;;-1:-1:-1;;309:20308:4;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;7431:22;309:20308;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;:::o;:::-;723:8;;;-1:-1:-1;309:20308:4;;;;;-1:-1:-1;309:20308:4;;8683:13;309:20308;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;:::o;:::-;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;:::o;:::-;;;7811:18;;309:20308;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;:::o;:::-;-1:-1:-1;;;;;309:20308:4;;;;;;;;;:::o;:::-;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;7811:18;309:20308;7811:18;;309:20308;;:::i;:::-;;;-1:-1:-1;309:20308:4;;;;;;;;;:::o;:::-;;;;;;;;:::i;:::-;-1:-1:-1;309:20308:4;;-1:-1:-1;309:20308:4;;;;-1:-1:-1;309:20308:4;;;;-1:-1:-1;309:20308:4;;;;-1:-1:-1;309:20308:4;;;;-1:-1:-1;309:20308:4;;;;-1:-1:-1;309:20308:4;;;;-1:-1:-1;309:20308:4;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;723:8;;;309:20308;;;;;;;;723:8;;;;;;;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;1016:6::-;;;;;;;;;;309:20308;;;;;;;1016:6;:::o;:::-;;;;:::o;:::-;309:20308;;-1:-1:-1;;;1016:6:4;;;;;;;;;;;309:20308;1016:6;309:20308;;;1016:6;;;;;;309:20308;1016:6;;;;;;;723:8;;309:20308;;;;723:8;;1016:6;;;;;;;;;;;;:::o;:::-;;;;;-1:-1:-1;;;;;309:20308:4;;;;;1016:6;;;;;309:20308;;1016:6;;;309:20308;;1016:6;;;;309:20308;;1016:6;;;309:20308;1016:6;;;;;;;;309:20308;1016:6;;;;;309:20308;;;1016:6;;;309:20308;;;;;1016:6;;;;;;;309:20308;1016:6;;;;;;;;309:20308;1016:6;;;;;;;;309:20308;;;;1016:6;;;;;;;;;;;;;18909:261;19073:28;-1:-1:-1;;;;;19008:37:4;:20;;;:::i;:::-;:37;309:20308;;19073:28;;:::i;:::-;19119:13;;;:43;;;;19111:52;18909:261;:::o;19119:43::-;19136:15;;;:26;;18909:261;:::o;309:20308::-;;-1:-1:-1;;;;;309:20308:4;;;;;;;:::o;19176:271::-;-1:-1:-1;;;;;19309:37:4;:20;;;:::i;:::-;:37;309:20308;;723:8;;;;;;;;19309:131;309:20308;-1:-1:-1;309:20308:4;19397:18;309:20308;;;;-1:-1:-1;309:20308:4;;;19309:131;;:::i;:::-;19176:271;:::o;19753:138::-;-1:-1:-1;309:20308:4;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;309:20308:4;19858:21;309:20308;;;-1:-1:-1;309:20308:4;;-1:-1:-1;309:20308:4;19844:13;309:20308;;;-1:-1:-1;309:20308:4;19844:13;309:20308;;;;;;:::i;:::-;;;;;;;;;;723:8;;309:20308;;;;;;;;;;;;;;;;;;;;;;;723:8;309:20308;;;;-1:-1:-1;;;;;309:20308:4;;;;;723:8;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;;;;;;;;;;;;;723:8;309:20308;;;;;;;;19753:138;:::o;20017:256::-;20131:20;20017:256;20131:20;:::i;:::-;20179:19;;;309:20308;-1:-1:-1;;;;;309:20308:4;;20215:12;;;;:51;20017:256;:::o;20215:51::-;20250:15;;723:8;309:20308;;-1:-1:-1;20573:35:4;;723:8;20017:256;:::o;20573:35::-;776:9;19176:271;:::o;18585:318::-;18751:28;-1:-1:-1;;;;;18686:37:4;:20;;;:::i;18751:28::-;18797:13;;;:57;;;;18585:318;18797:98;;;;18789:107;18585:318;:::o;18797:98::-;18870:15;;;:25;18585:318;:::o;18797:57::-;18826:15;:28;;;-1:-1:-1;18797:57:4;;;1796:162:1;1710:6;309:20308:4;-1:-1:-1;;;;;309:20308:4;735:10:2;1855:23:1;1851:101;;1796:162::o;1851:101::-;1901:40;;;1710:6;1901:40;735:10:2;1901:40:1;309:20308:4;;1710:6:1;1901:40;13439:535:4;-1:-1:-1;309:20308:4;-1:-1:-1;;;;;309:20308:4;19736:2;309:20308;;;;;;1016:6;;;13637:33;;;;;;309:20308;;13637:33;;;;;;-1:-1:-1;;13637:33:4;;;13439:535;-1:-1:-1;13633:335:4;;13923:34;;;;;;309:20308;;-1:-1:-1;;;13923:34:4;;-1:-1:-1;;;;;309:20308:4;;;13637:33;13923:34;;309:20308;;;;;;;;;;;;;;;;;;13923:34;;;;;;;;;;;13633:335;;13439:535::o;13923:34::-;;;;;;:::i;:::-;309:20308;;13633:335;13439:535::o;309:20308::-;;;13923:34;309:20308;;1016:6;309:20308;;1016:6;;;;13923:34;309:20308;;;13633:335;-1:-1:-1;;;;;309:20308:4;;;;13754:34;;;;;;309:20308;;-1:-1:-1;;;13754:34:4;;-1:-1:-1;;;;;309:20308:4;;;13637:33;13754:34;;309:20308;;;;;;;;;;;;;;;;;;13754:34;309:20308;13710:182;13827:50;;;;;;;;;;309:20308;;-1:-1:-1;;;13827:50:4;;-1:-1:-1;;;;;309:20308:4;;;13637:33;13827:50;;309:20308;;;;;1016:6;;;309:20308;1016:6;;;309:20308;-1:-1:-1;;309:20308:4;;1016:6;;309:20308;;-1:-1:-1;;13827:50:4;;;;;;;;13710:182;13439:535::o;13827:50::-;-1:-1:-1;13827:50:4;;;:::i;:::-;13439:535::o;13637:33::-;;;;309:20308;13637:33;;309:20308;13637:33;;;;;;309:20308;13637:33;;;:::i;:::-;;;309:20308;;;;;-1:-1:-1;;;;;309:20308:4;;;;;;13637:33;;;;;;;-1:-1:-1;13637:33:4;;4810:731:3;4950:585;;;;;;;;;;;1016:6:4;4950:585:3;;;;4810:731;;:::o;4950:585::-;;;;;;;;;;;;;;;;;4810:731::o;4950:585::-;;;;;;;;;;;14663:1330:4;;-1:-1:-1;;;;;14663:1330:4;;;;;;;;;;;;309:20308;723:8;-1:-1:-1;;;;;723:8:4;309:20308;18551:2;309:20308;;18518:54;309:20308;;-1:-1:-1;309:20308:4;15127:21;309:20308;;;-1:-1:-1;309:20308:4;;;;15185:42;15241:20;15237:85;;14663:1330;15409:16;;;:60;590:2;15409:60;;-1:-1:-1;;;;;309:20308:4;;;;15680:38;;;;309:20308;;;;;;:::i;:::-;;;;;;;723:8;;309:20308;;15362:388;;309:20308;;;;;;15362:388;;309:20308;;;;-1:-1:-1;;;;;15362:388:4;;;309:20308;;723:8;;-1:-1:-1;;;;;15362:388:4;;;309:20308;;723:8;;-1:-1:-1;;;;;15362:388:4;;;309:20308;;;;-1:-1:-1;;;;;15362:388:4;;;309:20308;;;;-1:-1:-1;;;;;15362:388:4;;;309:20308;;;;15362:388;;;309:20308;;;;;;;723:8;;15362:388;;;309:20308;;;;;;;;15791:18;;;;;;;;;:::i;:::-;723:8;15781:29;;309:20308;;;;-1:-1:-1;309:20308:4;15824:13;309:20308;;-1:-1:-1;;;;;15824:42:4;309:20308;-1:-1:-1;309:20308:4;15824:42;309:20308;;15824:47;15820:112;;15680:38;309:20308;;;;;;;;;;;-1:-1:-1;309:20308:4;15127:21;309:20308;;;-1:-1:-1;309:20308:4;723:8;14663:1330::o;15820:112::-;-1:-1:-1;309:20308:4;;;15824:13;309:20308;;;;;;;723:8;;;;;;309:20308;;;;;;;-1:-1:-1;;;309:20308:4;-1:-1:-1;;;;;309:20308:4;;;;723:8;;;;;;;;-1:-1:-1;;;723:8:4;;;;;;;-1:-1:-1;;;;;;723:8:4;;;;309:20308;;;;;723:8;;;;;-1:-1:-1;;;;;;;723:8:4;-1:-1:-1;;;;;309:20308:4;;;;723:8;;;;;;;;-1:-1:-1;;;;;;723:8:4;;309:20308;723:8;;;309:20308;723:8;;;;;;;;;-1:-1:-1;;;;;;;723:8:4;-1:-1:-1;;;;;309:20308:4;;;;723:8;;;;309:20308;;;723:8;;-1:-1:-1;;;;;;723:8:4;;;;;;;;;;;-1:-1:-1;;;;;;;15820:112:4;-1:-1:-1;;15820:112:4;;15680:38;;;;15409:60;309:20308;;15409:60;;;15237:85;-1:-1:-1;;;;;309:20308:4;-1:-1:-1;15237:85:4;

Swarm Source

ipfs://aa5dca462e3e08014af878e630dd5489bac39d545fb6876eb6c65390714d14bb

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

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.