Contract

0x217D0530C8828BDF67fb45A4924F837ED9B32891

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Royalty6593302024-12-19 5:11:591 hr ago1734585119IN
0x217D0530...ED9B32891
0 S0.000059731.1
Register As Coll...6593192024-12-19 5:11:491 hr ago1734585109IN
0x217D0530...ED9B32891
0 S0.000055561.1
Set Royalty6591552024-12-19 5:09:191 hr ago1734584959IN
0x217D0530...ED9B32891
0 S0.000059731.1
Register As Coll...6591432024-12-19 5:09:071 hr ago1734584947IN
0x217D0530...ED9B32891
0 S0.000055561.1
Set Royalty6591142024-12-19 5:08:391 hr ago1734584919IN
0x217D0530...ED9B32891
0 S0.000059731.1
Register As Coll...6590712024-12-19 5:08:141 hr ago1734584894IN
0x217D0530...ED9B32891
0 S0.000055561.1
List NFT6336312024-12-18 23:34:346 hrs ago1734564874IN
0x217D0530...ED9B32891
0 S0.000257231.1
Set Royalty6278172024-12-18 22:38:397 hrs ago1734561519IN
0x217D0530...ED9B32891
0 S0.000059731.1
Register As Coll...6277672024-12-18 22:38:227 hrs ago1734561502IN
0x217D0530...ED9B32891
0 S0.000055561.1
List NFT6255172024-12-18 22:24:177 hrs ago1734560657IN
0x217D0530...ED9B32891
0 S0.000257251.1
List NFT6254562024-12-18 22:23:337 hrs ago1734560613IN
0x217D0530...ED9B32891
0 S0.000257251.1
Set Royalty6244862024-12-18 22:11:268 hrs ago1734559886IN
0x217D0530...ED9B32891
0 S0.000059731.1
Set Royalty6244102024-12-18 22:10:358 hrs ago1734559835IN
0x217D0530...ED9B32891
0 S0.000059731.1
Register As Coll...6243742024-12-18 22:10:168 hrs ago1734559816IN
0x217D0530...ED9B32891
0 S0.000055561.1
List NFT6242782024-12-18 22:09:188 hrs ago1734559758IN
0x217D0530...ED9B32891
0 S0.000272981.1
List NFT6240192024-12-18 22:05:558 hrs ago1734559555IN
0x217D0530...ED9B32891
0 S0.000287151.1
Register As Coll...6234792024-12-18 21:58:538 hrs ago1734559133IN
0x217D0530...ED9B32891
0 S0.000055561.1
List NFT6230882024-12-18 21:54:088 hrs ago1734558848IN
0x217D0530...ED9B32891
0 S0.000270621.1
List NFT6207392024-12-18 21:26:328 hrs ago1734557192IN
0x217D0530...ED9B32891
0 S0.000273221.1
List NFT6201972024-12-18 21:21:348 hrs ago1734556894IN
0x217D0530...ED9B32891
0 S0.000273221.1
Buy NFT6201172024-12-18 21:20:518 hrs ago1734556851IN
0x217D0530...ED9B32891
1 S0.00017361.1
List NFT6200532024-12-18 21:20:198 hrs ago1734556819IN
0x217D0530...ED9B32891
0 S0.00027321.1
Cancel Listing6200062024-12-18 21:19:528 hrs ago1734556792IN
0x217D0530...ED9B32891
0 S0.000066361.1
Register As Coll...6127562024-12-18 20:07:5310 hrs ago1734552473IN
0x217D0530...ED9B32891
0 S0.000055381.1
List NFT6106502024-12-18 19:47:0310 hrs ago1734551223IN
0x217D0530...ED9B32891
0 S0.000273221.1
View all transactions

Latest 3 internal transactions

Parent Transaction Hash Block From To
6201172024-12-18 21:20:518 hrs ago1734556851
0x217D0530...ED9B32891
0.93 S
6201172024-12-18 21:20:518 hrs ago1734556851
0x217D0530...ED9B32891
0.02 S
6201172024-12-18 21:20:518 hrs ago1734556851
0x217D0530...ED9B32891
0.05 S
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KrownMarketplace

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 9999 runs

Other Settings:
paris EvmVersion
File 1 of 9 : KrownMarketplace.sol
// SPDX-License-Identifier: MIT

/*
 /$$   /$$ /$$$$$$$   /$$$$$$  /$$      /$$ /$$   /$$       /$$        /$$$$$$  /$$$$$$$   /$$$$$$$ 
| $$  /$$/| $$__  $$ /$$__  $$| $$  /$ | $$| $$$ | $$      | $$       /$$__  $$| $$__  $$ /$$__  $$
| $$ /$$/ | $$  \ $$| $$  \ $$| $$ /$$$| $$| $$$$| $$      | $$      | $$  \ $$| $$  \ $$| $$  \__/
| $$$$$/  | $$$$$$$/| $$  | $$| $$/$$ $$ $$| $$ $$ $$      | $$      | $$$$$$$$| $$$$$$$ |  $$$$$$ 
| $$  $$  | $$__  $$| $$  | $$| $$$$_  $$$$| $$  $$$$      | $$      | $$__  $$| $$__  $$ \____  $$
| $$\  $$ | $$  \ $$| $$  | $$| $$$/ \  $$$| $$\  $$$      | $$      | $$  | $$| $$  \ $$ /$$  \ $$
| $$ \  $$| $$  | $$|  $$$$$$/| $$/   \  $$| $$ \  $$      | $$$$$$$$| $$  | $$| $$$$$$$/|  $$$$$$/
|__/  \__/|__/  |__/ \______/ |__/     \__/|__/  \__/      |________/|__/  |__/|_______/  \______/ 

krownlabs.app
x.com/krownlabs
discord.gg/KTU4krfhrG

*/

pragma solidity ^0.8.20;

import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "./IEIP2981.sol";

interface IERC721WithOwner is IERC721 {
    function owner() external view returns (address);
}

contract KrownMarketplace is 
    Ownable,
    ReentrancyGuard,
    Pausable,
    IERC721Receiver 
{
    /* ========== CONSTANTS ========== */

    uint256 public constant MAX_ROYALTY = 1000; // 10%
    uint256 public constant MIN_ROYALTY = 50; // 0,5%
    uint256 public constant MAX_PRICE = 1000000 ether; // 1m ether
    uint256 public constant MIN_PRICE = 0.001 ether;
    uint256 public constant BID_TIMEOUT = 24 hours;
    uint256 public constant MIN_EXPIRATION_TIME = 1 hours;
    uint256 public constant MAX_EXPIRATION_TIME = 90 days;
    uint256 public constant CLEANUP_BATCH_SIZE = 50;
    uint256 public constant PRICE_UPDATE_DELAY = 5 minutes;
    uint256 public constant MIN_BID_INCREMENT = 5; // 5%

    /* ========== STRUCTS ========== */

    struct Listing {
        address seller;
        address nftContract;
        uint256 tokenId;
        uint96 price;
        bool active;
        uint96 highestBid;
        address highestBidder;
        bool acceptingBids;
        uint40 listingTime;
        uint40 expirationTime;
        uint40 lastPriceUpdate;
    }

    struct CollectionListings {
        Listing[] listings;
        mapping(uint256 => uint256) tokenIdToIndex;
        mapping(uint256 => bool) isListed;
        uint256 activeListingsCount;
    }

    struct Bid {
        address bidder;
        uint96 amount;
        uint40 timestamp;
    }

    struct RoyaltyInfo {
        address receiver;
        uint96 percentage;
    }

    /* ========== STATE VARIABLES ========== */

    uint256 public marketplaceFee;
    mapping(address => CollectionListings) public collectionListings;
    mapping(address => mapping(uint256 => Bid[])) public bidsHistory;
    mapping(address => uint256) private pendingPayments;
    mapping(address => RoyaltyInfo) public collectionRoyalties;
    mapping(address => bool) public collectionOwners;

    /* ========== EVENTS ========== */

    event Listed(
        address indexed seller,
        address indexed nftContract,
        uint256 indexed tokenId,
        uint256 price,
        bool acceptingBids,
        uint256 expirationTime
    );
    event Sale(
        address indexed seller,
        address indexed buyer,
        address indexed nftContract,
        uint256 tokenId,
        uint256 price
    );
    event Cancelled(
        address indexed seller,
        address indexed nftContract,
        uint256 indexed tokenId
    );
    event BidPlaced(
        address indexed bidder,
        address indexed nftContract,
        uint256 indexed tokenId,
        uint256 amount
    );
    event BidAccepted(
        address indexed seller,
        address indexed bidder,
        address indexed nftContract,
        uint256 tokenId,
        uint256 amount
    );
    event PaymentPending(
        address indexed recipient,
        uint256 amount
    );
    event MarketplaceFeeUpdated(uint256 newFee);
    event EmergencyWithdraw(address indexed recipient, uint256 amount);
    event CollectionListingsCleaned(address indexed nftContract, uint256 count);
    event RoyaltySet(
        address indexed nftContract, 
        address indexed receiver, 
        uint256 percentage
    );

    /* ========== ERRORS ========== */

    error ZeroAddress();
    error UnauthorizedCaller();
    error InvalidPrice();
    error ListingNotActive();
    error InvalidExpiration();
    error BidTooLow();
    error ListingExpired();
    error InvalidInterface();
    error NotListed();
    error TransferFailed();
    error RoyaltyTooHigh();
    error BidNotAllowed();
    error NoValidBid();
    error BatchSizeTooLarge();
    error PriceUpdateTooSoon();
    error InsufficientPendingPayment();
    error PriceExceedsMaximum();
    error RoyaltyTooLow();

    /* ========== MODIFIERS ========== */

    modifier checkPrice(uint256 price) {
        if (price < MIN_PRICE || price > MAX_PRICE) revert InvalidPrice();
        _;
    }

    modifier onlyCollectionOwner(address nftContract) {
        if (!collectionOwners[nftContract] || 
            msg.sender != IERC721WithOwner(nftContract).owner()) {
            revert UnauthorizedCaller();
        }
        _;
    }

    /* ========== CONSTRUCTOR ========== */

    constructor(
        uint256 _marketplaceFee
    ) Ownable(msg.sender) {
        if(_marketplaceFee > 1000) revert InvalidPrice();
        marketplaceFee = _marketplaceFee;
    }


    /* ========== MAIN FUNCTIONS ========== */

    function listNFT(
        address _nftContract,
        uint256 _tokenId,
        uint256 _price,
        bool _acceptingBids,
        uint256 _expirationTime
    ) external 
        whenNotPaused 
        nonReentrant
        checkPrice(_price)
    {
        if(collectionListings[_nftContract].isListed[_tokenId]) revert NotListed();
        if(_expirationTime < block.timestamp + MIN_EXPIRATION_TIME ||
           _expirationTime > block.timestamp + MAX_EXPIRATION_TIME) {
            revert InvalidExpiration();
        }

        // Interface and ownership checks
        IERC721 nft = IERC721(_nftContract);
        if(!_checkInterface(nft)) revert InvalidInterface();
        if(nft.ownerOf(_tokenId) != msg.sender) revert UnauthorizedCaller();
        if(nft.getApproved(_tokenId) != address(this) && 
           !nft.isApprovedForAll(msg.sender, address(this))) {
            revert UnauthorizedCaller();
        }

        Listing memory listing = Listing({
            seller: msg.sender,
            nftContract: _nftContract,
            tokenId: _tokenId,
            price: uint96(_price),
            active: true,
            highestBid: 0,
            highestBidder: address(0),
            acceptingBids: _acceptingBids,
            listingTime: uint40(block.timestamp),
            expirationTime: uint40(_expirationTime),
            lastPriceUpdate: uint40(block.timestamp)
        });

        CollectionListings storage collection = collectionListings[_nftContract];
        collection.listings.push(listing);
        collection.tokenIdToIndex[_tokenId] = collection.listings.length - 1;
        collection.isListed[_tokenId] = true;
        collection.activeListingsCount++;

        emit Listed(msg.sender, _nftContract, _tokenId, _price, _acceptingBids, _expirationTime);
    }

    function buyNFT(
        address _nftContract,
        uint256 _tokenId,
        uint256 maxPrice
    ) external payable nonReentrant whenNotPaused {
        CollectionListings storage collection = collectionListings[_nftContract];
        if(!collection.isListed[_tokenId]) revert NotListed();
        
        Listing storage listing = collection.listings[collection.tokenIdToIndex[_tokenId]];
        
        if(!listing.active) revert ListingNotActive();
        if(msg.value != listing.price) revert InvalidPrice();
        if(listing.price > maxPrice) revert PriceExceedsMaximum();
        if(listing.seller == msg.sender) revert UnauthorizedCaller();
        if(block.timestamp >= listing.expirationTime) revert ListingExpired();
        
        // Verify current ownership
        if(IERC721(_nftContract).ownerOf(_tokenId) != listing.seller) {
            revert UnauthorizedCaller();
        }

        address seller = listing.seller;
        uint256 price = listing.price;
        
        // Remove listing first
        _removeListingFromCollection(_nftContract, _tokenId);
        
        // Handle payments through pending payments
        _distributePendingPayments(price, seller, _nftContract);
        
        // Transfer NFT last
        IERC721(_nftContract).safeTransferFrom(seller, msg.sender, _tokenId);

        emit Sale(seller, msg.sender, _nftContract, _tokenId, price);
    }

    function placeBid(
        address _nftContract,
        uint256 _tokenId
    ) external payable nonReentrant whenNotPaused {
        CollectionListings storage collection = collectionListings[_nftContract];
        if(!collection.isListed[_tokenId]) revert NotListed();
        
        Listing storage listing = collection.listings[collection.tokenIdToIndex[_tokenId]];
        
        if(!listing.active) revert ListingNotActive();
        if(!listing.acceptingBids) revert BidNotAllowed();
        if(msg.sender == listing.seller) revert UnauthorizedCaller();
        
        // Minimum bid increment check
        uint256 minBidRequired = listing.highestBid + (listing.highestBid * MIN_BID_INCREMENT / 100);
        if(msg.value <= minBidRequired) revert BidTooLow();
        if(msg.value < listing.price) revert BidTooLow();
        if(block.timestamp >= listing.expirationTime) revert ListingExpired();
        
        // Verify current ownership
        if(IERC721(listing.nftContract).ownerOf(listing.tokenId) != listing.seller) {
            revert UnauthorizedCaller();
        }

        // Return funds to previous highest bidder through pending payments
        if(listing.highestBidder != address(0)) {
            pendingPayments[listing.highestBidder] += listing.highestBid;
            emit PaymentPending(listing.highestBidder, listing.highestBid);
        }

        // Update bid information
        listing.highestBid = uint96(msg.value);
        listing.highestBidder = msg.sender;

        // Record bid in history
        bidsHistory[_nftContract][_tokenId].push(Bid({
            bidder: msg.sender,
            amount: uint96(msg.value),
            timestamp: uint40(block.timestamp)
        }));

        emit BidPlaced(msg.sender, _nftContract, _tokenId, msg.value);
    }

    function acceptBid(
        address _nftContract,
        uint256 _tokenId
    ) external nonReentrant whenNotPaused {
        CollectionListings storage collection = collectionListings[_nftContract];
        if(!collection.isListed[_tokenId]) revert NotListed();
        
        Listing storage listing = collection.listings[collection.tokenIdToIndex[_tokenId]];
        
        if(msg.sender != listing.seller) revert UnauthorizedCaller();
        if(!listing.active || !listing.acceptingBids) revert ListingNotActive();
        if(listing.highestBidder == address(0)) revert NoValidBid();
        if(block.timestamp >= listing.expirationTime) revert ListingExpired();
        
        // Verify current ownership
        if(IERC721(_nftContract).ownerOf(_tokenId) != msg.sender) {
            revert UnauthorizedCaller();
        }

        address buyer = listing.highestBidder;
        uint256 salePrice = listing.highestBid;
        
        // Remove listing
        _removeListingFromCollection(_nftContract, _tokenId);
        
        // Handle payments
        _distributePendingPayments(salePrice, msg.sender, _nftContract);
        
        // Transfer NFT
        IERC721(_nftContract).safeTransferFrom(msg.sender, buyer, _tokenId);

        emit BidAccepted(msg.sender, buyer, _nftContract, _tokenId, salePrice);
    }

    function cancelListing(
        address _nftContract,
        uint256 _tokenId
    ) external whenNotPaused {
        CollectionListings storage collection = collectionListings[_nftContract];
        if(!collection.isListed[_tokenId]) revert NotListed();
        
        Listing storage listing = collection.listings[collection.tokenIdToIndex[_tokenId]];
        
        if(listing.seller != msg.sender && owner() != msg.sender) {
            revert UnauthorizedCaller();
        }
        if(!listing.active) revert ListingNotActive();

        if(listing.highestBidder != address(0)) {
            pendingPayments[listing.highestBidder] += listing.highestBid;
            emit PaymentPending(listing.highestBidder, listing.highestBid);
        }

        _removeListingFromCollection(_nftContract, _tokenId);
        emit Cancelled(msg.sender, _nftContract, _tokenId);
    }

    /* ========== COLLECTION MANAGEMENT ========== */

    function registerAsCollectionOwner(address nftContract) external {
        if(nftContract == address(0)) revert ZeroAddress();
        if(!_checkInterface(IERC721(nftContract))) revert InvalidInterface();
        if(msg.sender != IERC721WithOwner(nftContract).owner()) {
            revert UnauthorizedCaller();
        }
        collectionOwners[nftContract] = true;
    }

    function setRoyalty(
        address nftContract,
        address receiver,
        uint256 percentage
    ) external onlyCollectionOwner(nftContract) {
        if(percentage > MAX_ROYALTY) revert RoyaltyTooHigh();
        if(percentage < MIN_ROYALTY) revert RoyaltyTooLow();
        if(receiver == address(0)) revert ZeroAddress();

        collectionRoyalties[nftContract] = RoyaltyInfo({
            receiver: receiver,
            percentage: uint96(percentage)
        });
        
        emit RoyaltySet(nftContract, receiver, percentage);
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    function _removeListingFromCollection(address nftContract, uint256 tokenId) internal {
        CollectionListings storage collection = collectionListings[nftContract];
        uint256 index = collection.tokenIdToIndex[tokenId];
        uint256 lastIndex = collection.listings.length - 1;
        
        if (index != lastIndex) {
            Listing memory lastListing = collection.listings[lastIndex];
            collection.listings[index] = lastListing;
            collection.tokenIdToIndex[lastListing.tokenId] = index;
        }
        
        collection.listings.pop();
        delete collection.tokenIdToIndex[tokenId];
        delete collection.isListed[tokenId];
        
        if (collection.activeListingsCount > 0) {
            collection.activeListingsCount--;
        }
    }

    function _distributePendingPayments(
        uint256 amount,
        address seller,
        address nftContract
    ) internal {
        uint256 marketplaceFeeAmount = (amount * marketplaceFee) / 10000;
        uint256 remainingAmount = amount - marketplaceFeeAmount;

        // Handle royalties
        (address royaltyReceiver, uint256 royaltyAmount) = _getRoyalty(nftContract, amount);
        if (royaltyReceiver != address(0)) {
            remainingAmount -= royaltyAmount;
            // Direct transfer of royalties
            (bool royaltySent,) = payable(royaltyReceiver).call{value: royaltyAmount}("");
            if(!royaltySent) revert TransferFailed();
            emit PaymentPending(royaltyReceiver, 0);
        }

        // Direct transfer of marketplace fee
        (bool feeSent,) = payable(owner()).call{value: marketplaceFeeAmount}("");
        if(!feeSent) revert TransferFailed();
        emit PaymentPending(address(this), 0);

        // Direct transfer to seller
        (bool sellerSent,) = payable(seller).call{value: remainingAmount}("");
        if(!sellerSent) revert TransferFailed();
        emit PaymentPending(seller, 0);
    }

    function _getRoyalty(
        address nftContract,
        uint256 amount
    ) internal view returns (address receiver, uint256 royaltyAmount) {
        // First check if there's a manually set royalty
        RoyaltyInfo memory royalty = collectionRoyalties[nftContract];
        if (royalty.receiver != address(0)) {
            return (royalty.receiver, (amount * royalty.percentage) / 10000);
        }

        // If no manual royalty, check if contract supports EIP2981 interface
        try IERC165(nftContract).supportsInterface(0x2a55205a) returns (bool supported) {
            // Only try to get royalty info if interface is supported
            if (supported) {
                try IEIP2981(nftContract).royaltyInfo(0, amount) returns (
                    address _receiver,
                    uint256 _royaltyAmount
                ) {
                    if (_receiver != address(0)) {
                        // Limit royalty to 10%
                        uint256 maxRoyalty = (amount * MAX_ROYALTY) / 10000;
                        return (_receiver, _royaltyAmount > maxRoyalty ? maxRoyalty : _royaltyAmount);
                    }
                } catch {
                    return (address(0), 0);
                }
            }
        } catch {
            return (address(0), 0);
        }

        return (address(0), 0);
    }

    function _checkInterface(IERC721 nft) internal view returns (bool) {
        try nft.supportsInterface(type(IERC721).interfaceId) returns (bool supported) {
            return supported;
        } catch {
            return false;
        }
    }

    /* ========== PAYMENT FUNCTIONS ========== */

    function withdrawPendingPayments() external nonReentrant whenNotPaused {
        uint256 amount = pendingPayments[msg.sender];
        if(amount == 0) revert InsufficientPendingPayment();

        // Update state before transfer
        pendingPayments[msg.sender] = 0;
        
        // Execute transfer
        (bool sent,) = payable(msg.sender).call{value: amount}("");
        if(!sent) revert TransferFailed();
        
        emit PaymentPending(msg.sender, 0); // Update pending amount to 0
    }

    /* ========== ADMIN FUNCTIONS ========== */

    function updateMarketplaceFee(uint256 _newFee) external onlyOwner {
        if(_newFee > 1000) revert InvalidPrice();
        marketplaceFee = _newFee;
        emit MarketplaceFeeUpdated(_newFee);
    }

    function emergencyWithdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        if(balance > 0) {
            (bool success,) = payable(owner()).call{value: balance}("");
            if(!success) revert TransferFailed();
            emit EmergencyWithdraw(owner(), balance);
        }
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    /* ========== MAINTENANCE FUNCTIONS ========== */

    function cleanupExpiredListings(
        address nftContract,
        uint256 batchSize
    ) external nonReentrant {
        if(batchSize > CLEANUP_BATCH_SIZE) revert BatchSizeTooLarge();
        
        CollectionListings storage collection = collectionListings[nftContract];
        uint256 length = collection.listings.length;
        uint256 processed = 0;
        uint256 cleanedCount = 0;
        
        for (uint256 i = 0; i < length && processed < batchSize; i++) {
            Listing memory listing = collection.listings[i];
            
            if (listing.active && block.timestamp >= listing.expirationTime) {
                if (listing.highestBidder != address(0)) {
                    pendingPayments[listing.highestBidder] += listing.highestBid;
                    emit PaymentPending(listing.highestBidder, listing.highestBid);
                }
                
                _removeListingFromCollection(nftContract, listing.tokenId);
                cleanedCount++;
            }
            
            processed++;
        }
        
        if (cleanedCount > 0) {
            emit CollectionListingsCleaned(nftContract, cleanedCount);
        }
    }

    /* ========== VIEW FUNCTIONS ========== */

    function getPendingPayment(address user) external view returns (uint256) {
        return pendingPayments[user];
    }

    function getCollectionListings(
        address nftContract,
        uint256 offset,
        uint256 limit
    ) external view returns (Listing[] memory, uint256 total) {
        CollectionListings storage collection = collectionListings[nftContract];
        uint256 length = collection.listings.length;
        
        if (offset >= length) {
            return (new Listing[](0), length);
        }
        
        uint256 remaining = length - offset;
        uint256 currentLimit = remaining < limit ? remaining : limit;
        
        Listing[] memory result = new Listing[](currentLimit);
        for (uint256 i = 0; i < currentLimit; i++) {
            result[i] = collection.listings[offset + i];
        }
        
        return (result, length);
    }

    function getCollectionRoyalty(
        address _nftContract
    ) external view returns (RoyaltyInfo memory) {
        return collectionRoyalties[_nftContract];
    }

    /* ========== IERC721Receiver ========== */

    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 2 of 9 : 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 3 of 9 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC-721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC-721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
     *   {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 4 of 9 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @title ERC-721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC-721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be
     * reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.20;

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

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

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

File 6 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 7 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 8 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 9 of 9 : IEIP2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IEIP2981 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     * @param tokenId The NFT token ID being sold
     * @param salePrice The price of the NFT asset specified
     * @return receiver Address of who should be sent the royalty payment
     * @return royaltyAmount The royalty payment amount for salePrice
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_marketplaceFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BatchSizeTooLarge","type":"error"},{"inputs":[],"name":"BidNotAllowed","type":"error"},{"inputs":[],"name":"BidTooLow","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"InsufficientPendingPayment","type":"error"},{"inputs":[],"name":"InvalidExpiration","type":"error"},{"inputs":[],"name":"InvalidInterface","type":"error"},{"inputs":[],"name":"InvalidPrice","type":"error"},{"inputs":[],"name":"ListingExpired","type":"error"},{"inputs":[],"name":"ListingNotActive","type":"error"},{"inputs":[],"name":"NoValidBid","type":"error"},{"inputs":[],"name":"NotListed","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"PriceExceedsMaximum","type":"error"},{"inputs":[],"name":"PriceUpdateTooSoon","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"RoyaltyTooHigh","type":"error"},{"inputs":[],"name":"RoyaltyTooLow","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"UnauthorizedCaller","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BidAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Cancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"CollectionListingsCleaned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"bool","name":"acceptingBids","type":"bool"},{"indexed":false,"internalType":"uint256","name":"expirationTime","type":"uint256"}],"name":"Listed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"MarketplaceFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentPending","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"RoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"Sale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BID_TIMEOUT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLEANUP_BATCH_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_EXPIRATION_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ROYALTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_BID_INCREMENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_EXPIRATION_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_ROYALTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_UPDATE_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"acceptBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"bidsHistory","outputs":[{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint96","name":"amount","type":"uint96"},{"internalType":"uint40","name":"timestamp","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"maxPrice","type":"uint256"}],"name":"buyNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"cancelListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"uint256","name":"batchSize","type":"uint256"}],"name":"cleanupExpiredListings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collectionListings","outputs":[{"internalType":"uint256","name":"activeListingsCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collectionOwners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collectionRoyalties","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"percentage","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getCollectionListings","outputs":[{"components":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint96","name":"highestBid","type":"uint96"},{"internalType":"address","name":"highestBidder","type":"address"},{"internalType":"bool","name":"acceptingBids","type":"bool"},{"internalType":"uint40","name":"listingTime","type":"uint40"},{"internalType":"uint40","name":"expirationTime","type":"uint40"},{"internalType":"uint40","name":"lastPriceUpdate","type":"uint40"}],"internalType":"struct KrownMarketplace.Listing[]","name":"","type":"tuple[]"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"}],"name":"getCollectionRoyalty","outputs":[{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"percentage","type":"uint96"}],"internalType":"struct KrownMarketplace.RoyaltyInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getPendingPayment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"bool","name":"_acceptingBids","type":"bool"},{"internalType":"uint256","name":"_expirationTime","type":"uint256"}],"name":"listNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"marketplaceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"placeBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"}],"name":"registerAsCollectionOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"updateMarketplaceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawPendingPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161401338038061401383398101604081905261002f916100e7565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610097565b50600180556002805460ff191690556103e881111561008f5760405162bfc92160e01b815260040160405180910390fd5b600355610100565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100f957600080fd5b5051919050565b613f048061010f6000396000f3fe60806040526004361061024f5760003560e01c80636a16696411610138578063b2ddee06116100b0578063db2e21bc1161007f578063f2fde38b11610064578063f2fde38b1461078e578063f4f61e37146107ae578063fd59025e146107ce57600080fd5b8063db2e21bc14610759578063dd94b49d1461076e57600080fd5b8063b2ddee06146106f0578063cec489ca14610710578063d83e5f4d14610730578063d98b9bb51461074657600080fd5b80638456cb5911610107578063955a5a76116100ec578063955a5a761461069e578063ad9f20a6146106be578063b25c983f146106d957600080fd5b80638456cb59146106615780638da5cb5b1461067657600080fd5b80636a1669641461060c578063715018a61461062257806371943bce146106375780637850d1181461064c57600080fd5b80633d269bc7116101cb57806353da6f011161019a57806357b275b41161017f57806357b275b41461053c5780635c975abb146105c657806368932f1c146105de57600080fd5b806353da6f011461050957806355c338aa1461051c57600080fd5b80633d269bc7146104855780633e15e01a146102855780633f4ba83a146104de57806347fb069a146104f357600080fd5b80631e02778f1161022257806330eb80cd1161020757806330eb80cd146103965780633315ad59146103b857806333ff9422146103cf57600080fd5b80631e02778f146103405780632e67af091461038057600080fd5b806301c11d96146102545780630c8211d21461028557806310caaeeb1461029a578063150b7a02146102ca575b600080fd5b34801561026057600080fd5b5061027269d3c21bcecceda100000081565b6040519081526020015b60405180910390f35b34801561029157600080fd5b50610272603281565b3480156102a657600080fd5b506102726102b53660046139c9565b60046020526000908152604090206003015481565b3480156102d657600080fd5b5061030f6102e53660046139ed565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200161027c565b34801561034c57600080fd5b5061037061035b3660046139c9565b60086020526000908152604090205460ff1681565b604051901515815260200161027c565b34801561038c57600080fd5b5061027261012c81565b3480156103a257600080fd5b506103b66103b1366004613a8e565b610804565b005b3480156103c457600080fd5b506102726276a70081565b3480156103db57600080fd5b506104536103ea3660046139c9565b604080518082018252600080825260209182018190526001600160a01b039384168152600782528290208251808401909352549283168252740100000000000000000000000000000000000000009092046bffffffffffffffffffffffff169181019190915290565b6040805182516001600160a01b031681526020928301516bffffffffffffffffffffffff16928101929092520161027c565b34801561049157600080fd5b506104a56104a0366004613aa7565b610882565b604080516001600160a01b0390941684526bffffffffffffffffffffffff909216602084015264ffffffffff169082015260600161027c565b3480156104ea57600080fd5b506103b6610903565b3480156104ff57600080fd5b50610272610e1081565b6103b6610517366004613aa7565b610915565b34801561052857600080fd5b506103b6610537366004613adc565b610d1b565b34801561054857600080fd5b5061059a6105573660046139c9565b6007602052600090815260409020546001600160a01b038116907401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1682565b604080516001600160a01b0390931683526bffffffffffffffffffffffff90911660208301520161027c565b3480156105d257600080fd5b5060025460ff16610370565b3480156105ea57600080fd5b506105fe6105f9366004613aa7565b610f4f565b60405161027c929190613b1d565b34801561061857600080fd5b5061027260035481565b34801561062e57600080fd5b506103b6611241565b34801561064357600080fd5b50610272600581565b34801561065857600080fd5b506103b6611253565b34801561066d57600080fd5b506103b661137f565b34801561068257600080fd5b506000546040516001600160a01b03909116815260200161027c565b3480156106aa57600080fd5b506103b66106b9366004613c75565b61138f565b3480156106ca57600080fd5b5061027266038d7ea4c6800081565b3480156106e557600080fd5b506102726201518081565b3480156106fc57600080fd5b506103b661070b366004613c75565b611783565b34801561071c57600080fd5b506103b661072b3660046139c9565b6119f8565b34801561073c57600080fd5b506102726103e881565b6103b6610754366004613c75565b611b47565b34801561076557600080fd5b506103b661214e565b34801561077a57600080fd5b506103b6610789366004613caf565b61223d565b34801561079a57600080fd5b506103b66107a93660046139c9565b61292c565b3480156107ba57600080fd5b506103b66107c9366004613c75565b612985565b3480156107da57600080fd5b506102726107e93660046139c9565b6001600160a01b031660009081526006602052604090205490565b61080c612ca3565b6103e8811115610847576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038190556040518181527fe18aa129833f655a8166b6185277fee7a53f67e46fd32329bc2fc2ac21274d559060200160405180910390a150565b600560205282600052604060002060205281600052604060002081815481106108aa57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b0382169450740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16925064ffffffffff16905083565b61090b612ca3565b610913612ce9565b565b61091d612d3b565b610925612d7e565b6001600160a01b0383166000908152600460209081526040808320858452600281019092529091205460ff16610987576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600182016020526040812054825483919081106109ab576109ab613d01565b9060005260206000209060060201905080600301600c9054906101000a900460ff16610a03576040517f66cb03e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546bffffffffffffffffffffffff163414610a4d576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546bffffffffffffffffffffffff16831015610a99576040517f6c38d94400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8054336001600160a01b0390911603610ade576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048101547a010000000000000000000000000000000000000000000000000000900464ffffffffff164210610b40576040517f398cfd0200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b0391821691871690636352211e90602401602060405180830381865afa158015610ba4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc89190613d30565b6001600160a01b031614610c08576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805460038201546001600160a01b03909116906bffffffffffffffffffffffff16610c338787612dbb565b610c3e8183896132c5565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152336024830152604482018890528816906342842e0e90606401600060405180830381600087803b158015610ca757600080fd5b505af1158015610cbb573d6000803e3d6000fd5b505060408051898152602081018590526001600160a01b03808c1694503393508616917f5d1aeb452e82b72f02aa69e185ce8979e5f4b1ae703514bffede02f7d1bf7da0910160405180910390a450505050610d1660018055565b505050565b6001600160a01b038316600090815260086020526040902054839060ff161580610db85750806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da29190613d30565b6001600160a01b0316336001600160a01b031614155b15610def576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103e8821115610e2b576040517fc2b03beb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6032821015610e66576040517f22e4508900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316610ea6576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805180820182526001600160a01b038086168083526bffffffffffffffffffffffff80871660208086019182528a8516600081815260079092529087902095519151909216740100000000000000000000000000000000000000000293169290921790925591519091907f6f5b4e162a5bcb4c9002a853f3f0f850f68a3ea9de4507cc670f4f43654abe4a90610f419086815260200190565b60405180910390a350505050565b6001600160a01b038316600090815260046020526040812080546060929190808610611000576040805160008082526020820190925290610ff4565b604080516101608101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201528252600019909201910181610f8b5790505b50935091506112399050565b600061100c8783613dab565b9050600086821061101d578661101f565b815b905060008167ffffffffffffffff81111561103c5761103c613d4d565b6040519080825280602002602001820160405280156110c357816020015b604080516101608101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c0820181905260e0820181905261010082018190526101208201819052610140820152825260001990920191018161105a5790505b50905060005b8281101561122f57856110dc828c613dbe565b815481106110ec576110ec613d01565b60009182526020918290206040805161016081018252600690930290910180546001600160a01b039081168452600182015481169484019490945260028101549183019190915260038101546bffffffffffffffffffffffff808216606085015260ff6c0100000000000000000000000083048116151560808601526d01000000000000000000000000009092041660a0840152600482015493841660c084015274010000000000000000000000000000000000000000840416151560e083015264ffffffffff7501000000000000000000000000000000000000000000840481166101008401527a010000000000000000000000000000000000000000000000000000909304831661012083015260050154909116610140820152825183908390811061121c5761121c613d01565b60209081029190910101526001016110c9565b5095509193505050505b935093915050565b611249612ca3565b6109136000613591565b61125b612d3b565b611263612d7e565b33600090815260066020526040812054908190036112ad576040517f63032b8600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600660205260408082208290555190919083908381818185875af1925050503d80600081146112fe576040519150601f19603f3d011682016040523d82523d6000602084013e611303565b606091505b505090508061133e576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516000815233907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a2505061091360018055565b611387612ca3565b6109136135f9565b611397612d3b565b61139f612d7e565b6001600160a01b0382166000908152600460209081526040808320848452600281019092529091205460ff16611401576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526001820160205260408120548254839190811061142557611425613d01565b6000918252602090912060069091020180549091506001600160a01b0316331461147b576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546c01000000000000000000000000900460ff1615806114bc5750600481015474010000000000000000000000000000000000000000900460ff16155b156114f3576040517f66cb03e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048101546001600160a01b0316611537576040517f7ac48a8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048101547a010000000000000000000000000000000000000000000000000000900464ffffffffff164210611599576040517f398cfd0200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810184905233906001600160a01b03861690636352211e90602401602060405180830381865afa1580156115f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161d9190613d30565b6001600160a01b03161461165d576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600481015460038201546001600160a01b03909116906d010000000000000000000000000090046bffffffffffffffffffffffff1661169c8686612dbb565b6116a78133886132c5565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038381166024830152604482018790528716906342842e0e90606401600060405180830381600087803b15801561171057600080fd5b505af1158015611724573d6000803e3d6000fd5b505060408051888152602081018590526001600160a01b03808b1694508616925033917f10cf2353a23abaa7825ad5a4f48f572c50b130143fbd86f6e5f0c46f13dcedb4910160405180910390a45050505061177f60018055565b5050565b61178b612d7e565b6001600160a01b0382166000908152600460209081526040808320848452600281019092529091205460ff166117ed576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526001820160205260408120548254839190811061181157611811613d01565b6000918252602090912060069091020180549091506001600160a01b0316331480159061185857503361184c6000546001600160a01b031690565b6001600160a01b031614155b1561188f576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546c01000000000000000000000000900460ff166118dd576040517f66cb03e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048101546001600160a01b0316156119b057600381015460048201546001600160a01b0316600090815260066020526040812080546d01000000000000000000000000009093046bffffffffffffffffffffffff1692909190611942908490613dbe565b9091555050600481015460038201546040516d01000000000000000000000000009091046bffffffffffffffffffffffff1681526001600160a01b03909116907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a25b6119ba8484612dbb565b60405183906001600160a01b0386169033907f915fb8c652d6245752cc491b71bd8e87ab6761417f8d2ca353c8055103294c0390600090a450505050565b6001600160a01b038116611a38576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a4181613636565b611a77576040517f82542ee100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ab5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad99190613d30565b6001600160a01b0316336001600160a01b031614611b23576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03166000908152600860205260409020805460ff19166001179055565b611b4f612d3b565b611b57612d7e565b6001600160a01b0382166000908152600460209081526040808320848452600281019092529091205460ff16611bb9576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260018201602052604081205482548391908110611bdd57611bdd613d01565b9060005260206000209060060201905080600301600c9054906101000a900460ff16611c35576040517f66cb03e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600481015474010000000000000000000000000000000000000000900460ff16611c8b576040517f3c24fafc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80546001600160a01b03163303611cce576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6003810154600090606490611d04906005906d010000000000000000000000000090046bffffffffffffffffffffffff16613dd1565b611d0e9190613de8565b6003830154611d3c91906d010000000000000000000000000090046bffffffffffffffffffffffff16613dbe565b9050803411611d77576040517fa0d26eb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038201546bffffffffffffffffffffffff16341015611dc3576040517fa0d26eb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048201547a010000000000000000000000000000000000000000000000000000900464ffffffffff164210611e25576040517f398cfd0200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8154600183015460028401546040517f6352211e00000000000000000000000000000000000000000000000000000000815260048101919091526001600160a01b039283169290911690636352211e90602401602060405180830381865afa158015611e95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb99190613d30565b6001600160a01b031614611ef9576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048201546001600160a01b031615611fcc57600382015460048301546001600160a01b0316600090815260066020526040812080546d01000000000000000000000000009093046bffffffffffffffffffffffff1692909190611f5e908490613dbe565b9091555050600482015460038301546040516d01000000000000000000000000009091046bffffffffffffffffffffffff1681526001600160a01b03909116907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a25b6003820180546bffffffffffffffffffffffff348181166d010000000000000000000000000081027fffffffffffffff000000000000000000000000ffffffffffffffffffffffffff909416939093179093556004850180547fffffffffffffffffffffffff000000000000000000000000000000000000000016339081179091556001600160a01b0389811660008181526005602090815260408083208d845282528083208151606081018352878152808401998a5264ffffffffff4281168285019081528354600181810186559488529590962091519a51909916740100000000000000000000000000000000000000000299909616989098176002909202909401908155905195018054959094167fffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000090951694909417909255905187937fdd49bbb40d47a514dddcd458e9718364143bc24a0cca58439ee6f4f45e4ce10d9161213a91815260200190565b60405180910390a450505061177f60018055565b612156612ca3565b47801561223a57600080546040516001600160a01b039091169083908381818185875af1925050503d80600081146121aa576040519150601f19603f3d011682016040523d82523d6000602084013e6121af565b606091505b50509050806121ea576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b03166001600160a01b03167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96958360405161223091815260200190565b60405180910390a2505b50565b612245612d7e565b61224d612d3b565b8266038d7ea4c6800081108061226c575069d3c21bcecceda100000081115b156122a2576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038616600090815260046020908152604080832088845260020190915290205460ff1615612303576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61230f610e1042613dbe565b82108061232757506123246276a70042613dbe565b82115b1561235e576040517ffb2a675200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8561236881613636565b61239e576040517f82542ee100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810187905233906001600160a01b03831690636352211e90602401602060405180830381865afa1580156123fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124229190613d30565b6001600160a01b031614612462576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f081812fc0000000000000000000000000000000000000000000000000000000081526004810187905230906001600160a01b0383169063081812fc90602401602060405180830381865afa1580156124c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124e69190613d30565b6001600160a01b03161415801561258157506040517fe985e9c50000000000000000000000000000000000000000000000000000000081523360048201523060248201526001600160a01b0382169063e985e9c590604401602060405180830381865afa15801561255b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061257f9190613e23565b155b156125b8576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000604051806101600160405280336001600160a01b03168152602001896001600160a01b03168152602001888152602001876bffffffffffffffffffffffff16815260200160011515815260200160006bffffffffffffffffffffffff16815260200160006001600160a01b0316815260200186151581526020014264ffffffffff1681526020018564ffffffffff1681526020014264ffffffffff1681525090506000600460008a6001600160a01b03166001600160a01b0316815260200190815260200160002090508060000182908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506040820151816002015560608201518160030160006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550608082015181600301600c6101000a81548160ff02191690831515021790555060a082015181600301600d6101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555060c08201518160040160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060e08201518160040160146101000a81548160ff0219169083151502179055506101008201518160040160156101000a81548164ffffffffff021916908364ffffffffff16021790555061012082015181600401601a6101000a81548164ffffffffff021916908364ffffffffff1602179055506101408201518160050160006101000a81548164ffffffffff021916908364ffffffffff1602179055505050600181600001805490506128859190613dab565b600089815260018084016020908152604080842094909455600285019052918120805460ff1916909217909155600382018054916128c283613e40565b909155505060408051888152871515602082015290810186905288906001600160a01b038b169033907f1f8b1bb1330e3023798806beaa3337d33d885a7fa0c776d74ec8471e541192ce9060600160405180910390a45050505061292560018055565b5050505050565b612934612ca3565b6001600160a01b03811661297c576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61223a81613591565b61298d612d3b565b60328111156129c8576040517f7a01d65400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03821660009081526004602052604081208054909180805b83811080156129f557508583105b15612c4b576000856000018281548110612a1157612a11613d01565b60009182526020918290206040805161016081018252600690930290910180546001600160a01b039081168452600182015481169484019490945260028101549183019190915260038101546bffffffffffffffffffffffff808216606085015260ff6c0100000000000000000000000083048116158015608087018190526d010000000000000000000000000090940490921660a0860152600484015495861660c086015274010000000000000000000000000000000000000000860416151560e085015264ffffffffff7501000000000000000000000000000000000000000000860481166101008601527a0100000000000000000000000000000000000000000000000000009095048516610120850152600590920154909316610140830152909250612b4d575080610120015164ffffffffff164210155b15612c2a5760c08101516001600160a01b031615612c0e578060a001516bffffffffffffffffffffffff16600660008360c001516001600160a01b03166001600160a01b031681526020019081526020016000206000828254612bb09190613dbe565b909155505060c081015160a08201516040516bffffffffffffffffffffffff90911681526001600160a01b03909116907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a25b612c1c888260400151612dbb565b82612c2681613e40565b9350505b83612c3481613e40565b945050508080612c4390613e40565b9150506129e7565b508015612c9657856001600160a01b03167f4a37a6ff3735f6dfe4bc5ddd3038603303db2cf37342919b6b46e9ee027df07182604051612c8d91815260200190565b60405180910390a25b5050505061177f60018055565b6000546001600160a01b03163314610913576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401612973565b612cf1613702565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600260015403612d77576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600155565b60025460ff1615610913576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03821660009081526004602090815260408083208484526001808201909352908320548154919390929091612df79190613dab565b9050808214613199576000836000018281548110612e1757612e17613d01565b60009182526020918290206040805161016081018252600690930290910180546001600160a01b039081168452600182015481169484019490945260028101549183019190915260038101546bffffffffffffffffffffffff808216606085015260ff6c0100000000000000000000000083048116151560808601526d01000000000000000000000000009092041660a0840152600482015493841660c084015274010000000000000000000000000000000000000000840416151560e083015264ffffffffff7501000000000000000000000000000000000000000000840481166101008401527a01000000000000000000000000000000000000000000000000000090930483166101208301526005015490911661014082015284549091508190859085908110612f4c57612f4c613d01565b60009182526020808320845160069093020180546001600160a01b039384167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216178255858301516001808401805492871692909316919091179091556040808701516002840155606087015160038401805460808a015160a08b01516bffffffffffffffffffffffff9081166d0100000000000000000000000000027fffffffffffffff000000000000000000000000ffffffffffffffffffffffffff9215156c01000000000000000000000000027fffffffffffffffffffffffffffffffffffffff000000000000000000000000009094169190951617919091171691909117905560c087015160048401805460e08a01516101008b01516101208c015164ffffffffff9081167a010000000000000000000000000000000000000000000000000000027fff0000000000ffffffffffffffffffffffffffffffffffffffffffffffffffff928216750100000000000000000000000000000000000000000002929092167fff00000000000000000000ffffffffffffffffffffffffffffffffffffffffff93151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00000000000000000000000000000000000000000090951696909b1695909517929092171697909717969096179095556101409096015160059092018054929094167fffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000090921691909117909255938301518252860190925290208290555b82548390806131aa576131aa613e5a565b6000828152602080822060066000199094019384020180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081168255600182810180549092169091556002808301859055600380840180547fffffffffffffff000000000000000000000000000000000000000000000000001690556004840180547fff00000000000000000000000000000000000000000000000000000000000000169055600590930180547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001690559490955588835293870181526040808320839055928701905220805460ff1916905583015415612925576003830180549060006132b983613e89565b91905055505050505050565b6000612710600354856132d89190613dd1565b6132e29190613de8565b905060006132f08286613dab565b90506000806132ff858861373e565b90925090506001600160a01b038216156133f25761331d8184613dab565b92506000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461336c576040519150601f19603f3d011682016040523d82523d6000602084013e613371565b606091505b50509050806133ac576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826001600160a01b03167f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c560006040516133e891815260200190565b60405180910390a2505b600080546040516001600160a01b039091169086908381818185875af1925050503d806000811461343f576040519150601f19603f3d011682016040523d82523d6000602084013e613444565b606091505b505090508061347f576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516000815230907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a26000876001600160a01b03168560405160006040518083038185875af1925050503d8060008114613502576040519150601f19603f3d011682016040523d82523d6000602084013e613507565b606091505b5050905080613542576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b876001600160a01b03167f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c5600060405161357e91815260200190565b60405180910390a2505050505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613601612d7e565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d1e3390565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f80ac58cd0000000000000000000000000000000000000000000000000000000060048201526000906001600160a01b038316906301ffc9a790602401602060405180830381865afa9250505080156136f0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526136ed91810190613e23565b60015b6136fc57506000919050565b92915050565b60025460ff16610913576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038281166000908152600760209081526040808320815180830190925254938416808252740100000000000000000000000000000000000000009094046bffffffffffffffffffffffff16918101919091529091829190156137d85780516020820151612710906137c4906bffffffffffffffffffffffff1687613dd1565b6137ce9190613de8565b92509250506139ad565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f2a55205a0000000000000000000000000000000000000000000000000000000060048201526001600160a01b038616906301ffc9a790602401602060405180830381865afa92505050801561388f575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261388c91810190613e23565b60015b6138a05760008092509250506139ad565b80156139a3576040517f2a55205a00000000000000000000000000000000000000000000000000000000815260006004820152602481018690526001600160a01b03871690632a55205a906044016040805180830381865afa925050508015613944575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261394191810190613ea0565b60015b613956576000809350935050506139ad565b6001600160a01b038216156139a05760006127106139766103e88a613dd1565b6139809190613de8565b9050828183116139905782613992565b815b9650965050505050506139ad565b50505b5060008092509250505b9250929050565b6001600160a01b038116811461223a57600080fd5b6000602082840312156139db57600080fd5b81356139e6816139b4565b9392505050565b600080600080600060808688031215613a0557600080fd5b8535613a10816139b4565b94506020860135613a20816139b4565b935060408601359250606086013567ffffffffffffffff811115613a4357600080fd5b8601601f81018813613a5457600080fd5b803567ffffffffffffffff811115613a6b57600080fd5b886020828401011115613a7d57600080fd5b959894975092955050506020019190565b600060208284031215613aa057600080fd5b5035919050565b600080600060608486031215613abc57600080fd5b8335613ac7816139b4565b95602085013595506040909401359392505050565b600080600060608486031215613af157600080fd5b8335613afc816139b4565b92506020840135613b0c816139b4565b929592945050506040919091013590565b6040808252835190820181905260009060208501906060840190835b81811015613c6257835180516001600160a01b031684526020810151613b6a60208601826001600160a01b03169052565b50604081015160408501526060810151613b9460608601826bffffffffffffffffffffffff169052565b506080810151613ba8608086018215159052565b5060a0810151613bc860a08601826bffffffffffffffffffffffff169052565b5060c0810151613be360c08601826001600160a01b03169052565b5060e0810151613bf760e086018215159052565b50610100810151613c1261010086018264ffffffffff169052565b50610120810151613c2d61012086018264ffffffffff169052565b506101408101519050613c4a61014085018264ffffffffff169052565b50602093909301926101609290920191600101613b39565b5050602093909301939093525092915050565b60008060408385031215613c8857600080fd5b8235613c93816139b4565b946020939093013593505050565b801515811461223a57600080fd5b600080600080600060a08688031215613cc757600080fd5b8535613cd2816139b4565b945060208601359350604086013592506060860135613cf081613ca1565b949793965091946080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215613d4257600080fd5b81516139e6816139b4565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156136fc576136fc613d7c565b808201808211156136fc576136fc613d7c565b80820281158282048414176136fc576136fc613d7c565b600082613e1e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600060208284031215613e3557600080fd5b81516139e681613ca1565b60006000198203613e5357613e53613d7c565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600081613e9857613e98613d7c565b506000190190565b60008060408385031215613eb357600080fd5b8251613ebe816139b4565b602093909301519294929350505056fea26469706673582212206ca6d4c08aa604e9c8be44c6303d49c36841cc98a7ce934775b9483d4e5ae2c364736f6c634300081a003300000000000000000000000000000000000000000000000000000000000000c8

Deployed Bytecode

0x60806040526004361061024f5760003560e01c80636a16696411610138578063b2ddee06116100b0578063db2e21bc1161007f578063f2fde38b11610064578063f2fde38b1461078e578063f4f61e37146107ae578063fd59025e146107ce57600080fd5b8063db2e21bc14610759578063dd94b49d1461076e57600080fd5b8063b2ddee06146106f0578063cec489ca14610710578063d83e5f4d14610730578063d98b9bb51461074657600080fd5b80638456cb5911610107578063955a5a76116100ec578063955a5a761461069e578063ad9f20a6146106be578063b25c983f146106d957600080fd5b80638456cb59146106615780638da5cb5b1461067657600080fd5b80636a1669641461060c578063715018a61461062257806371943bce146106375780637850d1181461064c57600080fd5b80633d269bc7116101cb57806353da6f011161019a57806357b275b41161017f57806357b275b41461053c5780635c975abb146105c657806368932f1c146105de57600080fd5b806353da6f011461050957806355c338aa1461051c57600080fd5b80633d269bc7146104855780633e15e01a146102855780633f4ba83a146104de57806347fb069a146104f357600080fd5b80631e02778f1161022257806330eb80cd1161020757806330eb80cd146103965780633315ad59146103b857806333ff9422146103cf57600080fd5b80631e02778f146103405780632e67af091461038057600080fd5b806301c11d96146102545780630c8211d21461028557806310caaeeb1461029a578063150b7a02146102ca575b600080fd5b34801561026057600080fd5b5061027269d3c21bcecceda100000081565b6040519081526020015b60405180910390f35b34801561029157600080fd5b50610272603281565b3480156102a657600080fd5b506102726102b53660046139c9565b60046020526000908152604090206003015481565b3480156102d657600080fd5b5061030f6102e53660046139ed565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200161027c565b34801561034c57600080fd5b5061037061035b3660046139c9565b60086020526000908152604090205460ff1681565b604051901515815260200161027c565b34801561038c57600080fd5b5061027261012c81565b3480156103a257600080fd5b506103b66103b1366004613a8e565b610804565b005b3480156103c457600080fd5b506102726276a70081565b3480156103db57600080fd5b506104536103ea3660046139c9565b604080518082018252600080825260209182018190526001600160a01b039384168152600782528290208251808401909352549283168252740100000000000000000000000000000000000000009092046bffffffffffffffffffffffff169181019190915290565b6040805182516001600160a01b031681526020928301516bffffffffffffffffffffffff16928101929092520161027c565b34801561049157600080fd5b506104a56104a0366004613aa7565b610882565b604080516001600160a01b0390941684526bffffffffffffffffffffffff909216602084015264ffffffffff169082015260600161027c565b3480156104ea57600080fd5b506103b6610903565b3480156104ff57600080fd5b50610272610e1081565b6103b6610517366004613aa7565b610915565b34801561052857600080fd5b506103b6610537366004613adc565b610d1b565b34801561054857600080fd5b5061059a6105573660046139c9565b6007602052600090815260409020546001600160a01b038116907401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1682565b604080516001600160a01b0390931683526bffffffffffffffffffffffff90911660208301520161027c565b3480156105d257600080fd5b5060025460ff16610370565b3480156105ea57600080fd5b506105fe6105f9366004613aa7565b610f4f565b60405161027c929190613b1d565b34801561061857600080fd5b5061027260035481565b34801561062e57600080fd5b506103b6611241565b34801561064357600080fd5b50610272600581565b34801561065857600080fd5b506103b6611253565b34801561066d57600080fd5b506103b661137f565b34801561068257600080fd5b506000546040516001600160a01b03909116815260200161027c565b3480156106aa57600080fd5b506103b66106b9366004613c75565b61138f565b3480156106ca57600080fd5b5061027266038d7ea4c6800081565b3480156106e557600080fd5b506102726201518081565b3480156106fc57600080fd5b506103b661070b366004613c75565b611783565b34801561071c57600080fd5b506103b661072b3660046139c9565b6119f8565b34801561073c57600080fd5b506102726103e881565b6103b6610754366004613c75565b611b47565b34801561076557600080fd5b506103b661214e565b34801561077a57600080fd5b506103b6610789366004613caf565b61223d565b34801561079a57600080fd5b506103b66107a93660046139c9565b61292c565b3480156107ba57600080fd5b506103b66107c9366004613c75565b612985565b3480156107da57600080fd5b506102726107e93660046139c9565b6001600160a01b031660009081526006602052604090205490565b61080c612ca3565b6103e8811115610847576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038190556040518181527fe18aa129833f655a8166b6185277fee7a53f67e46fd32329bc2fc2ac21274d559060200160405180910390a150565b600560205282600052604060002060205281600052604060002081815481106108aa57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b0382169450740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16925064ffffffffff16905083565b61090b612ca3565b610913612ce9565b565b61091d612d3b565b610925612d7e565b6001600160a01b0383166000908152600460209081526040808320858452600281019092529091205460ff16610987576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600182016020526040812054825483919081106109ab576109ab613d01565b9060005260206000209060060201905080600301600c9054906101000a900460ff16610a03576040517f66cb03e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546bffffffffffffffffffffffff163414610a4d576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546bffffffffffffffffffffffff16831015610a99576040517f6c38d94400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8054336001600160a01b0390911603610ade576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048101547a010000000000000000000000000000000000000000000000000000900464ffffffffff164210610b40576040517f398cfd0200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b0391821691871690636352211e90602401602060405180830381865afa158015610ba4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc89190613d30565b6001600160a01b031614610c08576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805460038201546001600160a01b03909116906bffffffffffffffffffffffff16610c338787612dbb565b610c3e8183896132c5565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152336024830152604482018890528816906342842e0e90606401600060405180830381600087803b158015610ca757600080fd5b505af1158015610cbb573d6000803e3d6000fd5b505060408051898152602081018590526001600160a01b03808c1694503393508616917f5d1aeb452e82b72f02aa69e185ce8979e5f4b1ae703514bffede02f7d1bf7da0910160405180910390a450505050610d1660018055565b505050565b6001600160a01b038316600090815260086020526040902054839060ff161580610db85750806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da29190613d30565b6001600160a01b0316336001600160a01b031614155b15610def576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103e8821115610e2b576040517fc2b03beb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6032821015610e66576040517f22e4508900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316610ea6576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805180820182526001600160a01b038086168083526bffffffffffffffffffffffff80871660208086019182528a8516600081815260079092529087902095519151909216740100000000000000000000000000000000000000000293169290921790925591519091907f6f5b4e162a5bcb4c9002a853f3f0f850f68a3ea9de4507cc670f4f43654abe4a90610f419086815260200190565b60405180910390a350505050565b6001600160a01b038316600090815260046020526040812080546060929190808610611000576040805160008082526020820190925290610ff4565b604080516101608101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201528252600019909201910181610f8b5790505b50935091506112399050565b600061100c8783613dab565b9050600086821061101d578661101f565b815b905060008167ffffffffffffffff81111561103c5761103c613d4d565b6040519080825280602002602001820160405280156110c357816020015b604080516101608101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c0820181905260e0820181905261010082018190526101208201819052610140820152825260001990920191018161105a5790505b50905060005b8281101561122f57856110dc828c613dbe565b815481106110ec576110ec613d01565b60009182526020918290206040805161016081018252600690930290910180546001600160a01b039081168452600182015481169484019490945260028101549183019190915260038101546bffffffffffffffffffffffff808216606085015260ff6c0100000000000000000000000083048116151560808601526d01000000000000000000000000009092041660a0840152600482015493841660c084015274010000000000000000000000000000000000000000840416151560e083015264ffffffffff7501000000000000000000000000000000000000000000840481166101008401527a010000000000000000000000000000000000000000000000000000909304831661012083015260050154909116610140820152825183908390811061121c5761121c613d01565b60209081029190910101526001016110c9565b5095509193505050505b935093915050565b611249612ca3565b6109136000613591565b61125b612d3b565b611263612d7e565b33600090815260066020526040812054908190036112ad576040517f63032b8600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600660205260408082208290555190919083908381818185875af1925050503d80600081146112fe576040519150601f19603f3d011682016040523d82523d6000602084013e611303565b606091505b505090508061133e576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516000815233907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a2505061091360018055565b611387612ca3565b6109136135f9565b611397612d3b565b61139f612d7e565b6001600160a01b0382166000908152600460209081526040808320848452600281019092529091205460ff16611401576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526001820160205260408120548254839190811061142557611425613d01565b6000918252602090912060069091020180549091506001600160a01b0316331461147b576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546c01000000000000000000000000900460ff1615806114bc5750600481015474010000000000000000000000000000000000000000900460ff16155b156114f3576040517f66cb03e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048101546001600160a01b0316611537576040517f7ac48a8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048101547a010000000000000000000000000000000000000000000000000000900464ffffffffff164210611599576040517f398cfd0200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810184905233906001600160a01b03861690636352211e90602401602060405180830381865afa1580156115f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161d9190613d30565b6001600160a01b03161461165d576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600481015460038201546001600160a01b03909116906d010000000000000000000000000090046bffffffffffffffffffffffff1661169c8686612dbb565b6116a78133886132c5565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038381166024830152604482018790528716906342842e0e90606401600060405180830381600087803b15801561171057600080fd5b505af1158015611724573d6000803e3d6000fd5b505060408051888152602081018590526001600160a01b03808b1694508616925033917f10cf2353a23abaa7825ad5a4f48f572c50b130143fbd86f6e5f0c46f13dcedb4910160405180910390a45050505061177f60018055565b5050565b61178b612d7e565b6001600160a01b0382166000908152600460209081526040808320848452600281019092529091205460ff166117ed576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526001820160205260408120548254839190811061181157611811613d01565b6000918252602090912060069091020180549091506001600160a01b0316331480159061185857503361184c6000546001600160a01b031690565b6001600160a01b031614155b1561188f576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546c01000000000000000000000000900460ff166118dd576040517f66cb03e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048101546001600160a01b0316156119b057600381015460048201546001600160a01b0316600090815260066020526040812080546d01000000000000000000000000009093046bffffffffffffffffffffffff1692909190611942908490613dbe565b9091555050600481015460038201546040516d01000000000000000000000000009091046bffffffffffffffffffffffff1681526001600160a01b03909116907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a25b6119ba8484612dbb565b60405183906001600160a01b0386169033907f915fb8c652d6245752cc491b71bd8e87ab6761417f8d2ca353c8055103294c0390600090a450505050565b6001600160a01b038116611a38576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a4181613636565b611a77576040517f82542ee100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ab5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad99190613d30565b6001600160a01b0316336001600160a01b031614611b23576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03166000908152600860205260409020805460ff19166001179055565b611b4f612d3b565b611b57612d7e565b6001600160a01b0382166000908152600460209081526040808320848452600281019092529091205460ff16611bb9576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260018201602052604081205482548391908110611bdd57611bdd613d01565b9060005260206000209060060201905080600301600c9054906101000a900460ff16611c35576040517f66cb03e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600481015474010000000000000000000000000000000000000000900460ff16611c8b576040517f3c24fafc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80546001600160a01b03163303611cce576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6003810154600090606490611d04906005906d010000000000000000000000000090046bffffffffffffffffffffffff16613dd1565b611d0e9190613de8565b6003830154611d3c91906d010000000000000000000000000090046bffffffffffffffffffffffff16613dbe565b9050803411611d77576040517fa0d26eb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038201546bffffffffffffffffffffffff16341015611dc3576040517fa0d26eb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048201547a010000000000000000000000000000000000000000000000000000900464ffffffffff164210611e25576040517f398cfd0200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8154600183015460028401546040517f6352211e00000000000000000000000000000000000000000000000000000000815260048101919091526001600160a01b039283169290911690636352211e90602401602060405180830381865afa158015611e95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb99190613d30565b6001600160a01b031614611ef9576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048201546001600160a01b031615611fcc57600382015460048301546001600160a01b0316600090815260066020526040812080546d01000000000000000000000000009093046bffffffffffffffffffffffff1692909190611f5e908490613dbe565b9091555050600482015460038301546040516d01000000000000000000000000009091046bffffffffffffffffffffffff1681526001600160a01b03909116907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a25b6003820180546bffffffffffffffffffffffff348181166d010000000000000000000000000081027fffffffffffffff000000000000000000000000ffffffffffffffffffffffffff909416939093179093556004850180547fffffffffffffffffffffffff000000000000000000000000000000000000000016339081179091556001600160a01b0389811660008181526005602090815260408083208d845282528083208151606081018352878152808401998a5264ffffffffff4281168285019081528354600181810186559488529590962091519a51909916740100000000000000000000000000000000000000000299909616989098176002909202909401908155905195018054959094167fffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000090951694909417909255905187937fdd49bbb40d47a514dddcd458e9718364143bc24a0cca58439ee6f4f45e4ce10d9161213a91815260200190565b60405180910390a450505061177f60018055565b612156612ca3565b47801561223a57600080546040516001600160a01b039091169083908381818185875af1925050503d80600081146121aa576040519150601f19603f3d011682016040523d82523d6000602084013e6121af565b606091505b50509050806121ea576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b03166001600160a01b03167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96958360405161223091815260200190565b60405180910390a2505b50565b612245612d7e565b61224d612d3b565b8266038d7ea4c6800081108061226c575069d3c21bcecceda100000081115b156122a2576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038616600090815260046020908152604080832088845260020190915290205460ff1615612303576040517f665c1c5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61230f610e1042613dbe565b82108061232757506123246276a70042613dbe565b82115b1561235e576040517ffb2a675200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8561236881613636565b61239e576040517f82542ee100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810187905233906001600160a01b03831690636352211e90602401602060405180830381865afa1580156123fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124229190613d30565b6001600160a01b031614612462576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f081812fc0000000000000000000000000000000000000000000000000000000081526004810187905230906001600160a01b0383169063081812fc90602401602060405180830381865afa1580156124c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124e69190613d30565b6001600160a01b03161415801561258157506040517fe985e9c50000000000000000000000000000000000000000000000000000000081523360048201523060248201526001600160a01b0382169063e985e9c590604401602060405180830381865afa15801561255b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061257f9190613e23565b155b156125b8576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000604051806101600160405280336001600160a01b03168152602001896001600160a01b03168152602001888152602001876bffffffffffffffffffffffff16815260200160011515815260200160006bffffffffffffffffffffffff16815260200160006001600160a01b0316815260200186151581526020014264ffffffffff1681526020018564ffffffffff1681526020014264ffffffffff1681525090506000600460008a6001600160a01b03166001600160a01b0316815260200190815260200160002090508060000182908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506040820151816002015560608201518160030160006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550608082015181600301600c6101000a81548160ff02191690831515021790555060a082015181600301600d6101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555060c08201518160040160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060e08201518160040160146101000a81548160ff0219169083151502179055506101008201518160040160156101000a81548164ffffffffff021916908364ffffffffff16021790555061012082015181600401601a6101000a81548164ffffffffff021916908364ffffffffff1602179055506101408201518160050160006101000a81548164ffffffffff021916908364ffffffffff1602179055505050600181600001805490506128859190613dab565b600089815260018084016020908152604080842094909455600285019052918120805460ff1916909217909155600382018054916128c283613e40565b909155505060408051888152871515602082015290810186905288906001600160a01b038b169033907f1f8b1bb1330e3023798806beaa3337d33d885a7fa0c776d74ec8471e541192ce9060600160405180910390a45050505061292560018055565b5050505050565b612934612ca3565b6001600160a01b03811661297c576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61223a81613591565b61298d612d3b565b60328111156129c8576040517f7a01d65400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03821660009081526004602052604081208054909180805b83811080156129f557508583105b15612c4b576000856000018281548110612a1157612a11613d01565b60009182526020918290206040805161016081018252600690930290910180546001600160a01b039081168452600182015481169484019490945260028101549183019190915260038101546bffffffffffffffffffffffff808216606085015260ff6c0100000000000000000000000083048116158015608087018190526d010000000000000000000000000090940490921660a0860152600484015495861660c086015274010000000000000000000000000000000000000000860416151560e085015264ffffffffff7501000000000000000000000000000000000000000000860481166101008601527a0100000000000000000000000000000000000000000000000000009095048516610120850152600590920154909316610140830152909250612b4d575080610120015164ffffffffff164210155b15612c2a5760c08101516001600160a01b031615612c0e578060a001516bffffffffffffffffffffffff16600660008360c001516001600160a01b03166001600160a01b031681526020019081526020016000206000828254612bb09190613dbe565b909155505060c081015160a08201516040516bffffffffffffffffffffffff90911681526001600160a01b03909116907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a25b612c1c888260400151612dbb565b82612c2681613e40565b9350505b83612c3481613e40565b945050508080612c4390613e40565b9150506129e7565b508015612c9657856001600160a01b03167f4a37a6ff3735f6dfe4bc5ddd3038603303db2cf37342919b6b46e9ee027df07182604051612c8d91815260200190565b60405180910390a25b5050505061177f60018055565b6000546001600160a01b03163314610913576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401612973565b612cf1613702565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600260015403612d77576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600155565b60025460ff1615610913576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03821660009081526004602090815260408083208484526001808201909352908320548154919390929091612df79190613dab565b9050808214613199576000836000018281548110612e1757612e17613d01565b60009182526020918290206040805161016081018252600690930290910180546001600160a01b039081168452600182015481169484019490945260028101549183019190915260038101546bffffffffffffffffffffffff808216606085015260ff6c0100000000000000000000000083048116151560808601526d01000000000000000000000000009092041660a0840152600482015493841660c084015274010000000000000000000000000000000000000000840416151560e083015264ffffffffff7501000000000000000000000000000000000000000000840481166101008401527a01000000000000000000000000000000000000000000000000000090930483166101208301526005015490911661014082015284549091508190859085908110612f4c57612f4c613d01565b60009182526020808320845160069093020180546001600160a01b039384167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216178255858301516001808401805492871692909316919091179091556040808701516002840155606087015160038401805460808a015160a08b01516bffffffffffffffffffffffff9081166d0100000000000000000000000000027fffffffffffffff000000000000000000000000ffffffffffffffffffffffffff9215156c01000000000000000000000000027fffffffffffffffffffffffffffffffffffffff000000000000000000000000009094169190951617919091171691909117905560c087015160048401805460e08a01516101008b01516101208c015164ffffffffff9081167a010000000000000000000000000000000000000000000000000000027fff0000000000ffffffffffffffffffffffffffffffffffffffffffffffffffff928216750100000000000000000000000000000000000000000002929092167fff00000000000000000000ffffffffffffffffffffffffffffffffffffffffff93151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00000000000000000000000000000000000000000090951696909b1695909517929092171697909717969096179095556101409096015160059092018054929094167fffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000090921691909117909255938301518252860190925290208290555b82548390806131aa576131aa613e5a565b6000828152602080822060066000199094019384020180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081168255600182810180549092169091556002808301859055600380840180547fffffffffffffff000000000000000000000000000000000000000000000000001690556004840180547fff00000000000000000000000000000000000000000000000000000000000000169055600590930180547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001690559490955588835293870181526040808320839055928701905220805460ff1916905583015415612925576003830180549060006132b983613e89565b91905055505050505050565b6000612710600354856132d89190613dd1565b6132e29190613de8565b905060006132f08286613dab565b90506000806132ff858861373e565b90925090506001600160a01b038216156133f25761331d8184613dab565b92506000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461336c576040519150601f19603f3d011682016040523d82523d6000602084013e613371565b606091505b50509050806133ac576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826001600160a01b03167f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c560006040516133e891815260200190565b60405180910390a2505b600080546040516001600160a01b039091169086908381818185875af1925050503d806000811461343f576040519150601f19603f3d011682016040523d82523d6000602084013e613444565b606091505b505090508061347f576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516000815230907f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c59060200160405180910390a26000876001600160a01b03168560405160006040518083038185875af1925050503d8060008114613502576040519150601f19603f3d011682016040523d82523d6000602084013e613507565b606091505b5050905080613542576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b876001600160a01b03167f98b0a2bedc3dce38d6081f4c38f8ce29eb29840d0cb41bbaa98d51cd921c11c5600060405161357e91815260200190565b60405180910390a2505050505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613601612d7e565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d1e3390565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f80ac58cd0000000000000000000000000000000000000000000000000000000060048201526000906001600160a01b038316906301ffc9a790602401602060405180830381865afa9250505080156136f0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526136ed91810190613e23565b60015b6136fc57506000919050565b92915050565b60025460ff16610913576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038281166000908152600760209081526040808320815180830190925254938416808252740100000000000000000000000000000000000000009094046bffffffffffffffffffffffff16918101919091529091829190156137d85780516020820151612710906137c4906bffffffffffffffffffffffff1687613dd1565b6137ce9190613de8565b92509250506139ad565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f2a55205a0000000000000000000000000000000000000000000000000000000060048201526001600160a01b038616906301ffc9a790602401602060405180830381865afa92505050801561388f575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261388c91810190613e23565b60015b6138a05760008092509250506139ad565b80156139a3576040517f2a55205a00000000000000000000000000000000000000000000000000000000815260006004820152602481018690526001600160a01b03871690632a55205a906044016040805180830381865afa925050508015613944575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261394191810190613ea0565b60015b613956576000809350935050506139ad565b6001600160a01b038216156139a05760006127106139766103e88a613dd1565b6139809190613de8565b9050828183116139905782613992565b815b9650965050505050506139ad565b50505b5060008092509250505b9250929050565b6001600160a01b038116811461223a57600080fd5b6000602082840312156139db57600080fd5b81356139e6816139b4565b9392505050565b600080600080600060808688031215613a0557600080fd5b8535613a10816139b4565b94506020860135613a20816139b4565b935060408601359250606086013567ffffffffffffffff811115613a4357600080fd5b8601601f81018813613a5457600080fd5b803567ffffffffffffffff811115613a6b57600080fd5b886020828401011115613a7d57600080fd5b959894975092955050506020019190565b600060208284031215613aa057600080fd5b5035919050565b600080600060608486031215613abc57600080fd5b8335613ac7816139b4565b95602085013595506040909401359392505050565b600080600060608486031215613af157600080fd5b8335613afc816139b4565b92506020840135613b0c816139b4565b929592945050506040919091013590565b6040808252835190820181905260009060208501906060840190835b81811015613c6257835180516001600160a01b031684526020810151613b6a60208601826001600160a01b03169052565b50604081015160408501526060810151613b9460608601826bffffffffffffffffffffffff169052565b506080810151613ba8608086018215159052565b5060a0810151613bc860a08601826bffffffffffffffffffffffff169052565b5060c0810151613be360c08601826001600160a01b03169052565b5060e0810151613bf760e086018215159052565b50610100810151613c1261010086018264ffffffffff169052565b50610120810151613c2d61012086018264ffffffffff169052565b506101408101519050613c4a61014085018264ffffffffff169052565b50602093909301926101609290920191600101613b39565b5050602093909301939093525092915050565b60008060408385031215613c8857600080fd5b8235613c93816139b4565b946020939093013593505050565b801515811461223a57600080fd5b600080600080600060a08688031215613cc757600080fd5b8535613cd2816139b4565b945060208601359350604086013592506060860135613cf081613ca1565b949793965091946080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215613d4257600080fd5b81516139e6816139b4565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156136fc576136fc613d7c565b808201808211156136fc576136fc613d7c565b80820281158282048414176136fc576136fc613d7c565b600082613e1e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600060208284031215613e3557600080fd5b81516139e681613ca1565b60006000198203613e5357613e53613d7c565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600081613e9857613e98613d7c565b506000190190565b60008060408385031215613eb357600080fd5b8251613ebe816139b4565b602093909301519294929350505056fea26469706673582212206ca6d4c08aa604e9c8be44c6303d49c36841cc98a7ce934775b9483d4e5ae2c364736f6c634300081a0033

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

00000000000000000000000000000000000000000000000000000000000000c8

-----Decoded View---------------
Arg [0] : _marketplaceFee (uint256): 200

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c8


Block Transaction 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
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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