POL Price: $0.218716 (+0.18%)
Gas: 30 GWei
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Cancel Listing691682272025-03-17 17:44:0036 days ago1742233440IN
0xd8165955...4B7F4BCBD
0 POL0.01000851210.00254538
Update Listing687247582025-03-06 17:40:0947 days ago1741282809IN
0xd8165955...4B7F4BCBD
0 POL0.0018593639.04265248
Update Listing687247472025-03-06 17:39:4547 days ago1741282785IN
0xd8165955...4B7F4BCBD
0 POL0.0019080940.0657744
Update Listing687247312025-03-06 17:39:1147 days ago1741282751IN
0xd8165955...4B7F4BCBD
0 POL0.0018617939.09368297
Update Listing687247072025-03-06 17:38:2147 days ago1741282701IN
0xd8165955...4B7F4BCBD
0 POL0.0019464940.86193551
Update Listing687246892025-03-06 17:37:4347 days ago1741282663IN
0xd8165955...4B7F4BCBD
0 POL0.0021230344.57918624
Create Listing680491792025-02-17 21:42:5264 days ago1739828572IN
0xd8165955...4B7F4BCBD
0 POL0.0054283331.20000002
Create Listing680491302025-02-17 21:41:0864 days ago1739828468IN
0xd8165955...4B7F4BCBD
0 POL0.0054283331.20000002
Create Listing672952852025-01-29 16:48:4183 days ago1738169321IN
0xd8165955...4B7F4BCBD
0 POL0.0046221930.00000305
Update Listing671286762025-01-25 13:23:1487 days ago1737811394IN
0xd8165955...4B7F4BCBD
0 POL0.0014620530.69220298
Cancel Listing667775292025-01-16 17:56:2896 days ago1737050188IN
0xd8165955...4B7F4BCBD
0 POL0.001912140.12047768
Create Listing665367252025-01-10 16:52:04102 days ago1736527924IN
0xd8165955...4B7F4BCBD
0 POL0.0448632258.24564022
Create Listing662691162025-01-03 20:35:35109 days ago1735936535IN
0xd8165955...4B7F4BCBD
0 POL0.0078917745.36209456
Update Listing657706832024-12-21 23:20:48122 days ago1734823248IN
0xd8165955...4B7F4BCBD
0 POL0.0020941243.96091439
Create Listing656198732024-12-18 5:01:30126 days ago1734498090IN
0xd8165955...4B7F4BCBD
0 POL0.0058370933.55403571
Create Listing656198572024-12-18 5:00:56126 days ago1734498056IN
0xd8165955...4B7F4BCBD
0 POL0.0058265833.49133628
Create Listing656198372024-12-18 5:00:12126 days ago1734498012IN
0xd8165955...4B7F4BCBD
0 POL0.0058361833.54421262
Create Listing656197772024-12-18 4:58:06126 days ago1734497886IN
0xd8165955...4B7F4BCBD
0 POL0.0058725133.75534232
Update Listing655343832024-12-16 1:48:26128 days ago1734313706IN
0xd8165955...4B7F4BCBD
0 POL0.0022773647.81973745
Create Listing655098912024-12-15 11:01:55128 days ago1734260515IN
0xd8165955...4B7F4BCBD
0 POL0.0052195530.00000011
Update Listing652055422024-12-07 20:15:01136 days ago1733602501IN
0xd8165955...4B7F4BCBD
0 POL0.0016768635.42990002
Update Listing652055132024-12-07 20:13:59136 days ago1733602439IN
0xd8165955...4B7F4BCBD
0 POL0.0015955433.71168999
Update Listing652054902024-12-07 20:13:11136 days ago1733602391IN
0xd8165955...4B7F4BCBD
0 POL0.0016066433.94625238
Update Listing652054762024-12-07 20:12:41136 days ago1733602361IN
0xd8165955...4B7F4BCBD
0 POL0.0018821239.76692945
Update Listing652054532024-12-07 20:11:51136 days ago1733602311IN
0xd8165955...4B7F4BCBD
0 POL0.0014461330.55500003
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
625816212024-10-03 12:19:27201 days ago1727957967
0xd8165955...4B7F4BCBD
0.0975 POL
625328972024-10-02 7:22:58203 days ago1727853778
0xd8165955...4B7F4BCBD
12.35 POL
625328972024-10-02 7:22:58203 days ago1727853778
0xd8165955...4B7F4BCBD
0.65 POL
625328812024-10-02 7:22:24203 days ago1727853744
0xd8165955...4B7F4BCBD
19 POL
625328812024-10-02 7:22:24203 days ago1727853744
0xd8165955...4B7F4BCBD
1 POL
614967152024-09-06 14:26:10228 days ago1725632770
0xd8165955...4B7F4BCBD
1.8905 POL
614967152024-09-06 14:26:10228 days ago1725632770
0xd8165955...4B7F4BCBD
0.0995 POL
605876092024-08-14 17:27:43251 days ago1723656463
0xd8165955...4B7F4BCBD
113.05 POL
605876092024-08-14 17:27:43251 days ago1723656463
0xd8165955...4B7F4BCBD
5.95 POL
605875822024-08-14 17:26:45251 days ago1723656405
0xd8165955...4B7F4BCBD
27.55 POL
605875822024-08-14 17:26:45251 days ago1723656405
0xd8165955...4B7F4BCBD
1.45 POL
594185722024-07-16 6:09:08281 days ago1721110148
0xd8165955...4B7F4BCBD
1.805 POL
594185722024-07-16 6:09:08281 days ago1721110148
0xd8165955...4B7F4BCBD
0.095 POL
592621312024-07-12 7:48:24285 days ago1720770504
0xd8165955...4B7F4BCBD
1.8905 POL
592621312024-07-12 7:48:24285 days ago1720770504
0xd8165955...4B7F4BCBD
0.0995 POL
585627232024-06-24 20:48:48302 days ago1719262128
0xd8165955...4B7F4BCBD
2.6125 POL
585627232024-06-24 20:48:48302 days ago1719262128
0xd8165955...4B7F4BCBD
0.1375 POL
585079202024-06-23 11:30:13303 days ago1719142213
0xd8165955...4B7F4BCBD
1.8905 POL
585079202024-06-23 11:30:13303 days ago1719142213
0xd8165955...4B7F4BCBD
0.0995 POL
584413232024-06-21 19:40:19305 days ago1718998819
0xd8165955...4B7F4BCBD
28.5 POL
584413232024-06-21 19:40:19305 days ago1718998819
0xd8165955...4B7F4BCBD
1.5 POL
584407922024-06-21 19:21:31305 days ago1718997691
0xd8165955...4B7F4BCBD
1.8905 POL
584407922024-06-21 19:21:31305 days ago1718997691
0xd8165955...4B7F4BCBD
0.0995 POL
579942612024-06-10 14:57:36316 days ago1718031456
0xd8165955...4B7F4BCBD
2.375 POL
579942612024-06-10 14:57:36316 days ago1718031456
0xd8165955...4B7F4BCBD
0.125 POL
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GuiseMarketplace

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license
File 1 of 11 : GuiseMarketplace.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.7;

import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract GuiseMarketplace is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Counters for Counters.Counter;

    bytes4 private constant INTERFACE_ID_ERC721 = 0x80ac58cd;
    uint256 public constant BASIS_POINTS = 10000;
    uint256 public constant NO_EXPIRATION_TIME = type(uint256).max;

    // starts at 1
    Counters.Counter private _listingIdTracker;

    uint256 public fee;
    address public feeReceipient;

    struct Listing {
        address nftAddress;
        uint256 tokenId;
        uint256 price;
        uint256 expirationTime;
        address seller;
    }

    //  listingId => Listing
    mapping(uint256 => Listing) public listings;

    // nftAddress => tokenId => seller => listingId
    mapping(address => mapping(uint256 => mapping(address => uint256))) public reverseListings;

    event ItemListed(
        uint256 listingId,
        address seller,
        address nftAddress,
        uint256 tokenId,
        uint256 price,
        uint256 expirationTime
    );

    event ItemUpdated(
        uint256 listingId,
        address seller,
        address nftAddress,
        uint256 tokenId,
        uint256 price,
        uint256 expirationTime
    );

    event ItemSold(
        uint256 listingId,
        address nftAddress,
        uint256 tokenId,
        address seller,
        address buyer,
        uint256 price
    );

    event ItemCanceled(uint256 listingId, address seller, address nftAddress, uint256 tokenId);

    event UpdateFee(uint256 fee);
    event UpdateFeeRecipient(address feeRecipient);

    modifier isListed(uint256 _listingId) {
        require(listings[_listingId].seller != address(0), "not listed");
        _;
    }

    modifier notListed(address _nftAddress, uint256 _tokenId, address _seller) {
        require(reverseListings[_nftAddress][_tokenId][_seller] == 0, "already listed");
        _;
    }

    modifier validListing(uint256 listingId) {
        (bool isValid, string memory errorMsg) = isValidListing(listingId);
        require(isValid, errorMsg);
        _;
    }

    modifier onlySeller(uint256 _listingId) {
        require(listings[_listingId].seller == _msgSender(), "not seller");
        _;
    }

    constructor(uint256 _fee, address _feeRecipient) {
        setFee(_fee);
        setFeeRecipient(_feeRecipient);
    }

    function isValidListing(uint256 _listingId) public view returns (bool isValid, string memory errorMsg) {
        Listing storage listedItem = listings[_listingId];
        if (IERC165(listedItem.nftAddress).supportsInterface(INTERFACE_ID_ERC721)) {
            IERC721 nft = IERC721(listedItem.nftAddress);
            if (nft.ownerOf(listedItem.tokenId) != listedItem.seller) return (false, "seller is not owning item");
        } else {
            return (false, "invalid nft address");
        }
        if (listedItem.expirationTime < block.timestamp) return (false, "listing expired");

        isValid = true;
    }

    function createListing(
        address _nftAddress,
        uint256 _tokenId,
        uint256 _price,
        uint256 _expirationTime
    ) external notListed(_nftAddress, _tokenId, _msgSender()) {
        if (_expirationTime == 0) _expirationTime = NO_EXPIRATION_TIME;
        require(_expirationTime > block.timestamp, "invalid expiration time");

        if (IERC165(_nftAddress).supportsInterface(INTERFACE_ID_ERC721)) {
            IERC721 nft = IERC721(_nftAddress);
            require(nft.ownerOf(_tokenId) == _msgSender(), "not owning item");
            require(nft.isApprovedForAll(_msgSender(), address(this)), "item not approved");
        } else {
            revert("invalid nft address");
        }

        _listingIdTracker.increment();
        reverseListings[_nftAddress][_tokenId][_msgSender()] = _listingIdTracker.current();

        listings[_listingIdTracker.current()] = Listing(
            _nftAddress,
            _tokenId,
            _price,
            _expirationTime,
            _msgSender()
        );

        emit ItemListed(
            _listingIdTracker.current(),
            _msgSender(),
            _nftAddress,
            _tokenId,
            _price,
            _expirationTime
        );
    }

    function updateListing(
        uint256 _listingId,
        uint256 _newPrice,
        uint256 _newExpirationTime
    ) external nonReentrant onlySeller(_listingId) {
        if (_newExpirationTime == 0) _newExpirationTime = NO_EXPIRATION_TIME;
        require(_newExpirationTime > block.timestamp, "invalid expiration time");

        Listing storage listedItem = listings[_listingId];
        address nftAddress = listedItem.nftAddress;
        uint256 tokenId = listedItem.tokenId;
        if (IERC165(nftAddress).supportsInterface(INTERFACE_ID_ERC721)) {
            IERC721 nft = IERC721(nftAddress);
            require(nft.ownerOf(tokenId) == _msgSender(), "not owning listing");
        } else {
            revert("invalid nft address");
        }

        listedItem.price = _newPrice;
        listedItem.expirationTime = _newExpirationTime;

        emit ItemUpdated(
            _listingId,
            listedItem.seller,
            nftAddress,
            tokenId,
            _newPrice,
            _newExpirationTime
        );
    }

    function cancelListing(uint256 _listingId) external nonReentrant onlySeller(_listingId) {
        Listing storage listedItem = listings[_listingId];

        emit ItemCanceled(_listingId, _msgSender(), listedItem.nftAddress, listedItem.tokenId);

        _deleteListing(_listingId);
    }

    function _deleteListing(uint256 _listingId) internal {
        Listing storage listedItem = listings[_listingId];

        delete reverseListings[listedItem.nftAddress][listedItem.tokenId][_msgSender()];
        delete listings[_listingId];
    }

    function buyItem(uint256 _listingId) external payable nonReentrant isListed(_listingId) validListing(_listingId) {
        Listing storage listedItem = listings[_listingId];
        address nftAddress = listedItem.nftAddress;
        uint256 tokenId = listedItem.tokenId;
        address seller = listedItem.seller;
        uint256 price = listedItem.price;

        // Transfer NFT to buyer
        IERC721(nftAddress).safeTransferFrom(seller, _msgSender(), tokenId);

        _deleteListing(_listingId);

        emit ItemSold(
            _listingId,
            nftAddress,
            tokenId,
            seller,
            _msgSender(),
            price
        );

        _buyItem(price, seller);
    }

    function _buyItem(
        uint256 _price,
        address _seller
    ) internal {
        require(msg.value == _price, "incorrect MATIC value sent");
        uint256 feeAmount = _price * fee / BASIS_POINTS;

        bool success;
        (success, ) = feeReceipient.call{value: feeAmount}("");
        require(success, "feeReceipient MATIC transfer failed");

        (success, ) = _seller.call{value: _price - feeAmount}("");
        require(success, "_seller MATIC transfer failed");
    }

    // admin

    function setFee(uint256 _fee) public onlyOwner {
        require(_fee < BASIS_POINTS, "max fee");
        fee = _fee;
        emit UpdateFee(_fee);
    }

    function setFeeRecipient(address _feeRecipient) public onlyOwner {
        feeReceipient = _feeRecipient;
        emit UpdateFeeRecipient(_feeRecipient);
    }
}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

File 4 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 6 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 7 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 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`, checking first that contract recipients
     * are aware of the ERC721 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 be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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 caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

File 8 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 9 of 11 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 11 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 11 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * 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[EIP 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);
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_feeRecipient","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ItemCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expirationTime","type":"uint256"}],"name":"ItemListed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"ItemSold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expirationTime","type":"uint256"}],"name":"ItemUpdated","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":"uint256","name":"fee","type":"uint256"}],"name":"UpdateFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeRecipient","type":"address"}],"name":"UpdateFeeRecipient","type":"event"},{"inputs":[],"name":"BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NO_EXPIRATION_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"}],"name":"buyItem","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"}],"name":"cancelListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_expirationTime","type":"uint256"}],"name":"createListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"}],"name":"isValidListing","outputs":[{"internalType":"bool","name":"isValid","type":"bool"},{"internalType":"string","name":"errorMsg","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"listings","outputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"expirationTime","type":"uint256"},{"internalType":"address","name":"seller","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"reverseListings","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"},{"internalType":"uint256","name":"_newPrice","type":"uint256"},{"internalType":"uint256","name":"_newExpirationTime","type":"uint256"}],"name":"updateListing","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200192538038062001925833981016040819052620000349162000213565b6200003f3362000061565b600180556200004e82620000b1565b620000598162000179565b505062000252565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620001005760405162461bcd60e51b815260206004820181905260248201526000805160206200190583398151915260448201526064015b60405180910390fd5b61271081106200013d5760405162461bcd60e51b81526020600482015260076024820152666d61782066656560c81b6044820152606401620000f7565b60038190556040518181527f38e229a7f3f9c329892d08eb37c4e91ccac6d12c798d394990ca4f56028ec266906020015b60405180910390a150565b6000546001600160a01b03163314620001c45760405162461bcd60e51b81526020600482018190526024820152600080516020620019058339815191526044820152606401620000f7565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f6632de8ab33c46549f7bb29f647ea0d751157b25fe6a14b1bcc7527cdfbeb79c906020016200016e565b600080604083850312156200022757600080fd5b825160208401519092506001600160a01b03811681146200024757600080fd5b809150509250929050565b6116a380620002626000396000f3fe6080604052600436106100f35760003560e01c8063a336aaa81161008a578063e74b981b11610059578063e74b981b1461030f578063e7fb74c71461032f578063f2fde38b14610342578063f6cf2a161461036257600080fd5b8063a336aaa81461021c578063ddca3f431461025a578063de74e57b14610270578063e1f1c4a7146102f957600080fd5b806370cdec3d116100c657806370cdec3d1461019b578063715018a6146101bb578063837948f0146101d05780638da5cb5b146101fe57600080fd5b8063305a67a8146100f85780633740ebb31461011a578063444a92921461015757806369fe0e2d1461017b575b600080fd5b34801561010457600080fd5b506101186101133660046114b6565b610382565b005b34801561012657600080fd5b5060045461013a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561016357600080fd5b5061016d60001981565b60405190815260200161014e565b34801561018757600080fd5b506101186101963660046114b6565b610483565b3480156101a757600080fd5b506101186101b6366004611459565b610524565b3480156101c757600080fd5b5061011861097b565b3480156101dc57600080fd5b506101f06101eb3660046114b6565b6109b1565b60405161014e929190611548565b34801561020a57600080fd5b506000546001600160a01b031661013a565b34801561022857600080fd5b5061016d610237366004611417565b600660209081526000938452604080852082529284528284209052825290205481565b34801561026657600080fd5b5061016d60035481565b34801561027c57600080fd5b506102c561028b3660046114b6565b600560205260009081526040902080546001820154600283015460038401546004909401546001600160a01b039384169492939192911685565b604080516001600160a01b03968716815260208101959095528401929092526060830152909116608082015260a00161014e565b34801561030557600080fd5b5061016d61271081565b34801561031b57600080fd5b5061011861032a3660046113d6565b610ba6565b61011861033d3660046114b6565b610c1e565b34801561034e57600080fd5b5061011861035d3660046113d6565b610dec565b34801561036e57600080fd5b5061011861037d3660046114cf565b610e87565b600260015414156103ae5760405162461bcd60e51b81526004016103a5906115b3565b60405180910390fd5b600260015560008181526005602052604090206004015481906001600160a01b0316331461040b5760405162461bcd60e51b815260206004820152600a6024820152693737ba1039b2b63632b960b11b60448201526064016103a5565b60008281526005602090815260409182902080546001820154845187815233948101949094526001600160a01b0390911683850152606083015291517f1189a74a9f921243f7d9c5236dff179c758e6cdcae2c94a2812b312930e1a0499181900360800190a161047a83611141565b50506001805550565b6000546001600160a01b031633146104ad5760405162461bcd60e51b81526004016103a59061157e565b61271081106104e85760405162461bcd60e51b81526020600482015260076024820152666d61782066656560c81b60448201526064016103a5565b60038190556040518181527f38e229a7f3f9c329892d08eb37c4e91ccac6d12c798d394990ca4f56028ec266906020015b60405180910390a150565b8383336001600160a01b038084166000908152600660209081526040808320868452825280832093851683529290522054156105935760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481b1a5cdd195960921b60448201526064016103a5565b8361059e5760001993505b4284116105e75760405162461bcd60e51b8152602060048201526017602482015276696e76616c69642065787069726174696f6e2074696d6560481b60448201526064016103a5565b6040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b038816906301ffc9a79060240160206040518083038186803b15801561062d57600080fd5b505afa158015610641573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106659190611494565b156108035786336040516331a9108f60e11b8152600481018990526001600160a01b0391821691831690636352211e9060240160206040518083038186803b1580156106b057600080fd5b505afa1580156106c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e891906113fa565b6001600160a01b0316146107305760405162461bcd60e51b815260206004820152600f60248201526e6e6f74206f776e696e67206974656d60881b60448201526064016103a5565b6001600160a01b03811663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561078557600080fd5b505afa158015610799573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bd9190611494565b6107fd5760405162461bcd60e51b81526020600482015260116024820152701a5d195b481b9bdd08185c1c1c9bdd9959607a1b60448201526064016103a5565b50610841565b60405162461bcd60e51b8152602060048201526013602482015272696e76616c6964206e6674206164647265737360681b60448201526064016103a5565b61084f600280546001019055565b6002546001600160a01b03881660008181526006602090815260408083208b8452825280832033808552908352818420869055815160a0810183529485529184018b9052830189905260608301889052608083015290916005919081526020808201929092526040908101600020835181546001600160a01b03199081166001600160a01b039283161783559385015160018301559184015160028083019190915560608501516003830155608090940151600490910180549093169116179055547fe5695c078921b31622212415f370ba739c8c60080cc5520a02503ef889fe08229033604080519283526001600160a01b039182166020840152908a1690820152606081018890526080810187905260a0810186905260c00160405180910390a150505050505050565b6000546001600160a01b031633146109a55760405162461bcd60e51b81526004016103a59061157e565b6109af60006111b6565b565b600081815260056020526040808220805491516301ffc9a760e01b81526380ac58cd60e01b60048201526060926001600160a01b0316906301ffc9a79060240160206040518083038186803b158015610a0957600080fd5b505afa158015610a1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a419190611494565b15610b2457805460048083015460018401546040516331a9108f60e11b8152928301526001600160a01b039283169216908290636352211e9060240160206040518083038186803b158015610a9557600080fd5b505afa158015610aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acd91906113fa565b6001600160a01b031614610b1e5760006040518060400160405280601981526020017f73656c6c6572206973206e6f74206f776e696e67206974656d00000000000000815250935093505050915091565b50610b5c565b600060405180604001604052806013815260200172696e76616c6964206e6674206164647265737360681b8152509250925050915091565b4281600301541015610b9c5760006040518060400160405280600f81526020016e1b1a5cdd1a5b99c8195e1c1a5c9959608a1b8152509250925050915091565b6001925050915091565b6000546001600160a01b03163314610bd05760405162461bcd60e51b81526004016103a59061157e565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f6632de8ab33c46549f7bb29f647ea0d751157b25fe6a14b1bcc7527cdfbeb79c90602001610519565b60026001541415610c415760405162461bcd60e51b81526004016103a5906115b3565b600260015560008181526005602052604090206004015481906001600160a01b0316610c9c5760405162461bcd60e51b815260206004820152600a6024820152691b9bdd081b1a5cdd195960b21b60448201526064016103a5565b81600080610ca9836109b1565b91509150818190610ccd5760405162461bcd60e51b81526004016103a5919061156b565b50600085815260056020526040902080546001820154600483015460028401546001600160a01b039384169390911690836342842e0e83336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101869052606401600060405180830381600087803b158015610d5457600080fd5b505af1158015610d68573d6000803e3d6000fd5b50505050610d758a611141565b604080518b81526001600160a01b0380871660208301528183018690528416606082015233608082015260a0810183905290517fda3037e3cf7786efa975ab8c48d5e5f239cb6dc1d00cee1abce948356555b97b9181900360c00190a1610ddc8183611206565b5050600180555050505050505050565b6000546001600160a01b03163314610e165760405162461bcd60e51b81526004016103a59061157e565b6001600160a01b038116610e7b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103a5565b610e84816111b6565b50565b60026001541415610eaa5760405162461bcd60e51b81526004016103a5906115b3565b600260015560008381526005602052604090206004015483906001600160a01b03163314610f075760405162461bcd60e51b815260206004820152600a6024820152693737ba1039b2b63632b960b11b60448201526064016103a5565b81610f125760001991505b428211610f5b5760405162461bcd60e51b8152602060048201526017602482015276696e76616c69642065787069726174696f6e2074696d6560481b60448201526064016103a5565b600084815260056020526040908190208054600182015492516301ffc9a760e01b81526380ac58cd60e01b600482015291926001600160a01b039091169182906301ffc9a79060240160206040518083038186803b158015610fbc57600080fd5b505afa158015610fd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff49190611494565b156108035781336040516331a9108f60e11b8152600481018490526001600160a01b0391821691831690636352211e9060240160206040518083038186803b15801561103f57600080fd5b505afa158015611053573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107791906113fa565b6001600160a01b0316146110c25760405162461bcd60e51b81526020600482015260126024820152716e6f74206f776e696e67206c697374696e6760701b60448201526064016103a5565b5060028301869055600383018590556004830154604080518981526001600160a01b03928316602082015291841682820152606082018390526080820188905260a08201879052517f17adc44db3b6dda771d325500a6c64456af0e45f8f4a8767f1d0bdc8d20dd47f9181900360c00190a15050600180555050505050565b600081815260056020818152604080842080546001600160a01b03168552600683528185206001820180548752908452828620338752845291852085905594845291905282546001600160a01b0319908116845590829055600283018290556003830191909155600490910180549091169055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8134146112555760405162461bcd60e51b815260206004820152601a60248201527f696e636f7272656374204d415449432076616c75652073656e7400000000000060448201526064016103a5565b600061271060035484611268919061160c565b61127291906115ea565b6004546040519192506000916001600160a01b039091169083908381818185875af1925050503d80600081146112c4576040519150601f19603f3d011682016040523d82523d6000602084013e6112c9565b606091505b505080915050806113285760405162461bcd60e51b815260206004820152602360248201527f66656552656365697069656e74204d41544943207472616e73666572206661696044820152621b195960ea1b60648201526084016103a5565b6001600160a01b03831661133c838661162b565b604051600081818185875af1925050503d8060008114611378576040519150601f19603f3d011682016040523d82523d6000602084013e61137d565b606091505b505080915050806113d05760405162461bcd60e51b815260206004820152601d60248201527f5f73656c6c6572204d41544943207472616e73666572206661696c656400000060448201526064016103a5565b50505050565b6000602082840312156113e857600080fd5b81356113f381611658565b9392505050565b60006020828403121561140c57600080fd5b81516113f381611658565b60008060006060848603121561142c57600080fd5b833561143781611658565b925060208401359150604084013561144e81611658565b809150509250925092565b6000806000806080858703121561146f57600080fd5b843561147a81611658565b966020860135965060408601359560600135945092505050565b6000602082840312156114a657600080fd5b815180151581146113f357600080fd5b6000602082840312156114c857600080fd5b5035919050565b6000806000606084860312156114e457600080fd5b505081359360208301359350604090920135919050565b6000815180845260005b8181101561152157602081850181015186830182015201611505565b81811115611533576000602083870101525b50601f01601f19169290920160200192915050565b821515815260406020820152600061156360408301846114fb565b949350505050565b6020815260006113f360208301846114fb565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008261160757634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561162657611626611642565b500290565b60008282101561163d5761163d611642565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610e8457600080fdfea2646970667358221220634172f378dd68dcc98dc34ad20f65bbb217def0ffe0b164b423107d973b65cf64736f6c634300080700334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000001f40000000000000000000000009d439e524f214fb0cb5fa42030e578f60e64d98c

Deployed Bytecode

0x6080604052600436106100f35760003560e01c8063a336aaa81161008a578063e74b981b11610059578063e74b981b1461030f578063e7fb74c71461032f578063f2fde38b14610342578063f6cf2a161461036257600080fd5b8063a336aaa81461021c578063ddca3f431461025a578063de74e57b14610270578063e1f1c4a7146102f957600080fd5b806370cdec3d116100c657806370cdec3d1461019b578063715018a6146101bb578063837948f0146101d05780638da5cb5b146101fe57600080fd5b8063305a67a8146100f85780633740ebb31461011a578063444a92921461015757806369fe0e2d1461017b575b600080fd5b34801561010457600080fd5b506101186101133660046114b6565b610382565b005b34801561012657600080fd5b5060045461013a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561016357600080fd5b5061016d60001981565b60405190815260200161014e565b34801561018757600080fd5b506101186101963660046114b6565b610483565b3480156101a757600080fd5b506101186101b6366004611459565b610524565b3480156101c757600080fd5b5061011861097b565b3480156101dc57600080fd5b506101f06101eb3660046114b6565b6109b1565b60405161014e929190611548565b34801561020a57600080fd5b506000546001600160a01b031661013a565b34801561022857600080fd5b5061016d610237366004611417565b600660209081526000938452604080852082529284528284209052825290205481565b34801561026657600080fd5b5061016d60035481565b34801561027c57600080fd5b506102c561028b3660046114b6565b600560205260009081526040902080546001820154600283015460038401546004909401546001600160a01b039384169492939192911685565b604080516001600160a01b03968716815260208101959095528401929092526060830152909116608082015260a00161014e565b34801561030557600080fd5b5061016d61271081565b34801561031b57600080fd5b5061011861032a3660046113d6565b610ba6565b61011861033d3660046114b6565b610c1e565b34801561034e57600080fd5b5061011861035d3660046113d6565b610dec565b34801561036e57600080fd5b5061011861037d3660046114cf565b610e87565b600260015414156103ae5760405162461bcd60e51b81526004016103a5906115b3565b60405180910390fd5b600260015560008181526005602052604090206004015481906001600160a01b0316331461040b5760405162461bcd60e51b815260206004820152600a6024820152693737ba1039b2b63632b960b11b60448201526064016103a5565b60008281526005602090815260409182902080546001820154845187815233948101949094526001600160a01b0390911683850152606083015291517f1189a74a9f921243f7d9c5236dff179c758e6cdcae2c94a2812b312930e1a0499181900360800190a161047a83611141565b50506001805550565b6000546001600160a01b031633146104ad5760405162461bcd60e51b81526004016103a59061157e565b61271081106104e85760405162461bcd60e51b81526020600482015260076024820152666d61782066656560c81b60448201526064016103a5565b60038190556040518181527f38e229a7f3f9c329892d08eb37c4e91ccac6d12c798d394990ca4f56028ec266906020015b60405180910390a150565b8383336001600160a01b038084166000908152600660209081526040808320868452825280832093851683529290522054156105935760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481b1a5cdd195960921b60448201526064016103a5565b8361059e5760001993505b4284116105e75760405162461bcd60e51b8152602060048201526017602482015276696e76616c69642065787069726174696f6e2074696d6560481b60448201526064016103a5565b6040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b038816906301ffc9a79060240160206040518083038186803b15801561062d57600080fd5b505afa158015610641573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106659190611494565b156108035786336040516331a9108f60e11b8152600481018990526001600160a01b0391821691831690636352211e9060240160206040518083038186803b1580156106b057600080fd5b505afa1580156106c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e891906113fa565b6001600160a01b0316146107305760405162461bcd60e51b815260206004820152600f60248201526e6e6f74206f776e696e67206974656d60881b60448201526064016103a5565b6001600160a01b03811663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561078557600080fd5b505afa158015610799573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bd9190611494565b6107fd5760405162461bcd60e51b81526020600482015260116024820152701a5d195b481b9bdd08185c1c1c9bdd9959607a1b60448201526064016103a5565b50610841565b60405162461bcd60e51b8152602060048201526013602482015272696e76616c6964206e6674206164647265737360681b60448201526064016103a5565b61084f600280546001019055565b6002546001600160a01b03881660008181526006602090815260408083208b8452825280832033808552908352818420869055815160a0810183529485529184018b9052830189905260608301889052608083015290916005919081526020808201929092526040908101600020835181546001600160a01b03199081166001600160a01b039283161783559385015160018301559184015160028083019190915560608501516003830155608090940151600490910180549093169116179055547fe5695c078921b31622212415f370ba739c8c60080cc5520a02503ef889fe08229033604080519283526001600160a01b039182166020840152908a1690820152606081018890526080810187905260a0810186905260c00160405180910390a150505050505050565b6000546001600160a01b031633146109a55760405162461bcd60e51b81526004016103a59061157e565b6109af60006111b6565b565b600081815260056020526040808220805491516301ffc9a760e01b81526380ac58cd60e01b60048201526060926001600160a01b0316906301ffc9a79060240160206040518083038186803b158015610a0957600080fd5b505afa158015610a1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a419190611494565b15610b2457805460048083015460018401546040516331a9108f60e11b8152928301526001600160a01b039283169216908290636352211e9060240160206040518083038186803b158015610a9557600080fd5b505afa158015610aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acd91906113fa565b6001600160a01b031614610b1e5760006040518060400160405280601981526020017f73656c6c6572206973206e6f74206f776e696e67206974656d00000000000000815250935093505050915091565b50610b5c565b600060405180604001604052806013815260200172696e76616c6964206e6674206164647265737360681b8152509250925050915091565b4281600301541015610b9c5760006040518060400160405280600f81526020016e1b1a5cdd1a5b99c8195e1c1a5c9959608a1b8152509250925050915091565b6001925050915091565b6000546001600160a01b03163314610bd05760405162461bcd60e51b81526004016103a59061157e565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f6632de8ab33c46549f7bb29f647ea0d751157b25fe6a14b1bcc7527cdfbeb79c90602001610519565b60026001541415610c415760405162461bcd60e51b81526004016103a5906115b3565b600260015560008181526005602052604090206004015481906001600160a01b0316610c9c5760405162461bcd60e51b815260206004820152600a6024820152691b9bdd081b1a5cdd195960b21b60448201526064016103a5565b81600080610ca9836109b1565b91509150818190610ccd5760405162461bcd60e51b81526004016103a5919061156b565b50600085815260056020526040902080546001820154600483015460028401546001600160a01b039384169390911690836342842e0e83336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101869052606401600060405180830381600087803b158015610d5457600080fd5b505af1158015610d68573d6000803e3d6000fd5b50505050610d758a611141565b604080518b81526001600160a01b0380871660208301528183018690528416606082015233608082015260a0810183905290517fda3037e3cf7786efa975ab8c48d5e5f239cb6dc1d00cee1abce948356555b97b9181900360c00190a1610ddc8183611206565b5050600180555050505050505050565b6000546001600160a01b03163314610e165760405162461bcd60e51b81526004016103a59061157e565b6001600160a01b038116610e7b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103a5565b610e84816111b6565b50565b60026001541415610eaa5760405162461bcd60e51b81526004016103a5906115b3565b600260015560008381526005602052604090206004015483906001600160a01b03163314610f075760405162461bcd60e51b815260206004820152600a6024820152693737ba1039b2b63632b960b11b60448201526064016103a5565b81610f125760001991505b428211610f5b5760405162461bcd60e51b8152602060048201526017602482015276696e76616c69642065787069726174696f6e2074696d6560481b60448201526064016103a5565b600084815260056020526040908190208054600182015492516301ffc9a760e01b81526380ac58cd60e01b600482015291926001600160a01b039091169182906301ffc9a79060240160206040518083038186803b158015610fbc57600080fd5b505afa158015610fd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff49190611494565b156108035781336040516331a9108f60e11b8152600481018490526001600160a01b0391821691831690636352211e9060240160206040518083038186803b15801561103f57600080fd5b505afa158015611053573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107791906113fa565b6001600160a01b0316146110c25760405162461bcd60e51b81526020600482015260126024820152716e6f74206f776e696e67206c697374696e6760701b60448201526064016103a5565b5060028301869055600383018590556004830154604080518981526001600160a01b03928316602082015291841682820152606082018390526080820188905260a08201879052517f17adc44db3b6dda771d325500a6c64456af0e45f8f4a8767f1d0bdc8d20dd47f9181900360c00190a15050600180555050505050565b600081815260056020818152604080842080546001600160a01b03168552600683528185206001820180548752908452828620338752845291852085905594845291905282546001600160a01b0319908116845590829055600283018290556003830191909155600490910180549091169055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8134146112555760405162461bcd60e51b815260206004820152601a60248201527f696e636f7272656374204d415449432076616c75652073656e7400000000000060448201526064016103a5565b600061271060035484611268919061160c565b61127291906115ea565b6004546040519192506000916001600160a01b039091169083908381818185875af1925050503d80600081146112c4576040519150601f19603f3d011682016040523d82523d6000602084013e6112c9565b606091505b505080915050806113285760405162461bcd60e51b815260206004820152602360248201527f66656552656365697069656e74204d41544943207472616e73666572206661696044820152621b195960ea1b60648201526084016103a5565b6001600160a01b03831661133c838661162b565b604051600081818185875af1925050503d8060008114611378576040519150601f19603f3d011682016040523d82523d6000602084013e61137d565b606091505b505080915050806113d05760405162461bcd60e51b815260206004820152601d60248201527f5f73656c6c6572204d41544943207472616e73666572206661696c656400000060448201526064016103a5565b50505050565b6000602082840312156113e857600080fd5b81356113f381611658565b9392505050565b60006020828403121561140c57600080fd5b81516113f381611658565b60008060006060848603121561142c57600080fd5b833561143781611658565b925060208401359150604084013561144e81611658565b809150509250925092565b6000806000806080858703121561146f57600080fd5b843561147a81611658565b966020860135965060408601359560600135945092505050565b6000602082840312156114a657600080fd5b815180151581146113f357600080fd5b6000602082840312156114c857600080fd5b5035919050565b6000806000606084860312156114e457600080fd5b505081359360208301359350604090920135919050565b6000815180845260005b8181101561152157602081850181015186830182015201611505565b81811115611533576000602083870101525b50601f01601f19169290920160200192915050565b821515815260406020820152600061156360408301846114fb565b949350505050565b6020815260006113f360208301846114fb565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008261160757634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561162657611626611642565b500290565b60008282101561163d5761163d611642565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610e8457600080fdfea2646970667358221220634172f378dd68dcc98dc34ad20f65bbb217def0ffe0b164b423107d973b65cf64736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000001f40000000000000000000000009d439e524f214fb0cb5fa42030e578f60e64d98c

-----Decoded View---------------
Arg [0] : _fee (uint256): 500
Arg [1] : _feeRecipient (address): 0x9D439E524F214Fb0cb5fA42030E578F60E64D98C

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [1] : 0000000000000000000000009d439e524f214fb0cb5fa42030e578f60e64d98c


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.