Contract 0xd816595544e6f557644c357ca134d0c4b7f4bcbd 6

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x9ecd29e9be4dce81c9ef1476277220e319846acd4d72311c1e1f0a90f3ccbf31Update Listing408165952023-03-27 7:23:5629 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.007120876308 150.296044842
0x248243248064268db896538a17b941e98afc6c4cc6262f5979b08041913dd3a8Buy Item408165112023-03-27 7:20:4832 mins ago 18688888888.dao  IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd1.5 MATIC0.025829143945 188.36890275
0x9494375c25afbecac1c48e80810c70569da58b009954f4b98a3b8e37e62f6d34Create Listing408164442023-03-27 7:17:5435 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.027771102227 159.869566278
0x1ab93600287f6ccfdb95ac98c354c7027973dc8350e4de9046df5cb7de637089Create Listing408162592023-03-27 7:10:1843 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.029938207705 172.344916012
0x026071a3ba6fa809f8ead401a4661944cc83ee27adbca52e52666d860f2b77c8Create Listing408161612023-03-27 7:06:1247 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.030290956629 174.375581454
0xa1c9b4cb16c6eb6eae92553295d3cdcf5bf8f253d588c8b5c43d3e9ab10fa095Create Listing408161392023-03-27 7:05:2448 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.028938467541 166.589723973
0x2a09b3bc359707c0461364537f831c277835935353536f38b753e1c515d9e681Create Listing408160932023-03-27 7:03:4250 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.035106192083 202.095388799
0x4cd8a010bba6eb802a5fdbca426cc64c97f15c6266977663b6c2179626ffe01fBuy Item408157242023-03-27 6:48:341 hr 5 mins ago0x0fa74724bd26b8c37424a95dd95f915ddbc9b2ad IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd25 MATIC0.024384316367 188.968578243
0x7931fba0dddde219cdc6510717ba806e5d0d4f61efad743faff4d89e794b41fdBuy Item408154152023-03-27 6:35:511 hr 17 mins ago0x2c90a1f7d2f7a2643e42a1d177505143190b061e IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd1.5 MATIC0.038585265914 299.37747538
0x1e7d5e4df43debb678df2d0c7b0e532d625b5ff167d91edcbaea0930141c4329Update Listing408149952023-03-27 6:18:271 hr 35 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.007419028746 156.588968671
0x20d6451d84f67e8176028defece487de2b738ba227183a354d6fb34e9bbf7078Buy Item408141512023-03-27 5:44:092 hrs 9 mins ago0x6cd7b42bc99234f313102b7e235efc5aef45e2ef IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd18.8 MATIC0.015392336934 119.284378632
0x93f77ba81bb84a3a953edd9763e336db85e94eec68a75e72b95bc40c82b7996cBuy Item408140472023-03-27 5:39:552 hrs 13 mins ago0x6cd7b42bc99234f313102b7e235efc5aef45e2ef IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd22 MATIC0.017049830682 132.129284031
0xad19811f5e44a37e850f69a88d4989b3ec8374eb7753e8565a59c299e5b822c0Update Listing408132022023-03-27 5:05:452 hrs 48 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.006690690721 141.216376908
0x8381c6a0318ec1b8b4ad498b5088a01ecb255677389f9c65b99272ebc69da3b7Update Listing408130642023-03-27 5:00:192 hrs 53 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.006137482263 129.540139379
0xfec5308da60ed5b51e1e16b84dfcb3de9ff55f31efc9854fec788335d9229de8Update Listing408129692023-03-27 4:56:252 hrs 57 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.005400230978 113.979420799
0xac528c4c47158924ec3920d1ea7e3277130a154b7cd3cf29fc6d9ddcef4188bcUpdate Listing408129072023-03-27 4:54:132 hrs 59 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.00612459455 129.26812618
0x4a394a9a7f3383fad465033cd922a56e12279578b018b322592230492ef1e7c3Update Listing408128812023-03-27 4:53:193 hrs ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.006934410723 146.360428119
0xf5ffe79356f8ee1e69b2d68633df66d47098e80e26ddd4c5bb4db539a67ef07bBuy Item408127932023-03-27 4:49:393 hrs 4 mins ago0x3732558ace6e48170fb0fe023e617ee1b00982d8 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd1.5 MATIC0.01659152 121
0x5e8ee381f2e793e6ad7927caf7b9287b31ce72931b0ae248404eb439e940e80fBuy Item408126882023-03-27 4:45:253 hrs 8 mins ago0xb6a5490ca29f939a63c8b3cdaf66d81cd7df64ae IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd1.5 MATIC0.013695388179 110.947733145
0x84d85f12d13ff7068b3d236e190f5a0748fcb3caf7f1b696d58783519ab2a876Buy Item408126702023-03-27 4:44:453 hrs 9 mins ago0xb6a5490ca29f939a63c8b3cdaf66d81cd7df64ae IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd3.123 MATIC0.015869152151 115.731856414
0xd5ff48385fbc40ec004ef8db609e8e80f08c05a458a0c2361103546654108797Update Listing408126562023-03-27 4:44:173 hrs 9 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.005861008801 123.704780621
0x95178c12abf77b8d818fc727b9b880c4af3e49694584816b71a2cd3f5f691825Update Listing408126252023-03-27 4:43:113 hrs 10 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.006917041009 145.993816027
0x8f0484e31fc0de9aba04518af8a280c0d7a5c671d9bddf414c79a76d065e4c19Update Listing408125702023-03-27 4:40:413 hrs 13 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.005177202227 109.272087365
0xf56162c79bcc704bf3bea7c2cbcd68136ebb800081f7aac4ae6fa602c68da1ebUpdate Listing408125252023-03-27 4:39:053 hrs 14 mins ago0xd93d167e181115a42cb9e911f3caa17e6872a604 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd0 MATIC0.006092590631 128.592638748
0x795ae080da5ad4fc74a9165f53feed1dd4f3501e3e656d69c432f6fed7a194bbBuy Item408122632023-03-27 4:28:453 hrs 25 mins ago0xba6ffa1e9a59ab4f4f11b202f7d16d1ab2d983f3 IN  0xd816595544e6f557644c357ca134d0c4b7f4bcbd1.5 MATIC0.01740504 141
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x248243248064268db896538a17b941e98afc6c4cc6262f5979b08041913dd3a8408165112023-03-27 7:20:4832 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0xd93d167e181115a42cb9e911f3caa17e6872a6041.425 MATIC
0x248243248064268db896538a17b941e98afc6c4cc6262f5979b08041913dd3a8408165112023-03-27 7:20:4832 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c0.075 MATIC
0x4cd8a010bba6eb802a5fdbca426cc64c97f15c6266977663b6c2179626ffe01f408157242023-03-27 6:48:341 hr 5 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0xf226fee6e0da9542c872e8f11753da4be141585a23.75 MATIC
0x4cd8a010bba6eb802a5fdbca426cc64c97f15c6266977663b6c2179626ffe01f408157242023-03-27 6:48:341 hr 5 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c1.25 MATIC
0x7931fba0dddde219cdc6510717ba806e5d0d4f61efad743faff4d89e794b41fd408154152023-03-27 6:35:511 hr 17 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0xd93d167e181115a42cb9e911f3caa17e6872a6041.425 MATIC
0x7931fba0dddde219cdc6510717ba806e5d0d4f61efad743faff4d89e794b41fd408154152023-03-27 6:35:511 hr 17 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c0.075 MATIC
0x20d6451d84f67e8176028defece487de2b738ba227183a354d6fb34e9bbf7078408141512023-03-27 5:44:092 hrs 9 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x41a7a2f9f748cedd2e3c87c95b39aed4b2eac82017.86 MATIC
0x20d6451d84f67e8176028defece487de2b738ba227183a354d6fb34e9bbf7078408141512023-03-27 5:44:092 hrs 9 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c0.94 MATIC
0x93f77ba81bb84a3a953edd9763e336db85e94eec68a75e72b95bc40c82b7996c408140472023-03-27 5:39:552 hrs 13 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x6a4d776550fb81c212633edc54e211f4f8b432de20.9 MATIC
0x93f77ba81bb84a3a953edd9763e336db85e94eec68a75e72b95bc40c82b7996c408140472023-03-27 5:39:552 hrs 13 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c1.1 MATIC
0xf5ffe79356f8ee1e69b2d68633df66d47098e80e26ddd4c5bb4db539a67ef07b408127932023-03-27 4:49:393 hrs 4 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0xd93d167e181115a42cb9e911f3caa17e6872a6041.425 MATIC
0xf5ffe79356f8ee1e69b2d68633df66d47098e80e26ddd4c5bb4db539a67ef07b408127932023-03-27 4:49:393 hrs 4 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c0.075 MATIC
0x5e8ee381f2e793e6ad7927caf7b9287b31ce72931b0ae248404eb439e940e80f408126882023-03-27 4:45:253 hrs 8 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0xd93d167e181115a42cb9e911f3caa17e6872a6041.425 MATIC
0x5e8ee381f2e793e6ad7927caf7b9287b31ce72931b0ae248404eb439e940e80f408126882023-03-27 4:45:253 hrs 8 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c0.075 MATIC
0x84d85f12d13ff7068b3d236e190f5a0748fcb3caf7f1b696d58783519ab2a876408126702023-03-27 4:44:453 hrs 9 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x6a4d776550fb81c212633edc54e211f4f8b432de2.96685 MATIC
0x84d85f12d13ff7068b3d236e190f5a0748fcb3caf7f1b696d58783519ab2a876408126702023-03-27 4:44:453 hrs 9 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c0.15615 MATIC
0x795ae080da5ad4fc74a9165f53feed1dd4f3501e3e656d69c432f6fed7a194bb408122632023-03-27 4:28:453 hrs 25 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0xd93d167e181115a42cb9e911f3caa17e6872a6041.425 MATIC
0x795ae080da5ad4fc74a9165f53feed1dd4f3501e3e656d69c432f6fed7a194bb408122632023-03-27 4:28:453 hrs 25 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c0.075 MATIC
0x2a551c9da4ea8877ea56965207e3693309b7a9065f3d20b0b2390a321377ca1c408122322023-03-27 4:27:253 hrs 26 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd tocens2019.wallet 1.045 MATIC
0x2a551c9da4ea8877ea56965207e3693309b7a9065f3d20b0b2390a321377ca1c408122322023-03-27 4:27:253 hrs 26 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c0.055 MATIC
0x20efaedae259fa0ccba68de1555a5b6f43b2cc2fc8f92169c669488c88f24dd7408113302023-03-27 3:51:594 hrs 1 min ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x017947fae9c680f13a321e512e5e6c78b32dea6f23.75 MATIC
0x20efaedae259fa0ccba68de1555a5b6f43b2cc2fc8f92169c669488c88f24dd7408113302023-03-27 3:51:594 hrs 1 min ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c1.25 MATIC
0x4e88808e928329bc9f42e3c641ed4fb5ee96f84a258cc630b9d0fc6f05888b92408112872023-03-27 3:50:274 hrs 3 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x38684229f6e57fe593e1899c099f49b41696fa5821.8025 MATIC
0x4e88808e928329bc9f42e3c641ed4fb5ee96f84a258cc630b9d0fc6f05888b92408112872023-03-27 3:50:274 hrs 3 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x9d439e524f214fb0cb5fa42030e578f60e64d98c1.1475 MATIC
0x60b37288c1b93814767b7509d8581e08197ddd43c0703cd910243fbf5aa409a5408082262023-03-27 1:45:366 hrs 8 mins ago 0xd816595544e6f557644c357ca134d0c4b7f4bcbd0x86e704aacb92e52b0e8c41a6b87d27f7d54811ef33.25 MATIC
[ Download CSV Export 
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

Contract Source Code (Solidity Standard Json-Input format)

File 1 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 2 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 3 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 4 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 5 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 6 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 7 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 8 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 9 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 10 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);
}

File 11 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);
    }
}

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

[{"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

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
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.