MarketplaceUniversalRouterZap
MarketplaceUniversalRouterZap.sol
This contract is a marketplace zap that uses the NFTX Universal Router.
Table of Contents
Constants
WETH
Address of WETH contract.
PERMIT2
Address of PERMIT2 contract.
nftxVaultFactory
Address of NFTXVaultFactory contract.
inventoryStaking
Address of NFTXInventoryStakingV3 contract.
BASE
Variables
universalRouter
Address of NFTX's UniversalRouter contract.
paused
Is the contract paused.
dustThreshold
The maximum vToken amount that constitutes "dust."
Events
Sell
Emitted by sell721()
and sell1155()
.
Swap (721)
Emitted by swap721()
.
Swap (1155)
Emitted by swap1155()
.
Buy
Emitted by buyNFTsWithETH()
, buyNFTsWithERC20()
and buyNFTsWithERC20WithPermit2()
.
DustReturned
Emitted by buyNFTsWithETH()
, buyNFTsWithERC20()
and buyNFTsWithERC20WithPermit2()
.
Paused
Emitted by pause()
.
NewUniversalRouter
Emitted by setUniversalRouter()
.
NewDustThreshold
Emitted by setDustThreshold()
.
Write Functions
sell721
Sells one or more ERC721 NFTs for ETH.
swap721
Swaps one or more ERC721 NFTs for one or more other ERC721 NFTs.
buyNFTsWithETH
Buys one or more NFTs with ETH.
buyNFTsWithERC20
Purchases NFTs via NFTX's UniversalRouter and pay with any ERC20 supported by the NFTX AMM.
buyNFTsWithERC20WithPermit2
Buys one or more NFTs with ERC20, using Permit2 for token approval.
sell1155
Sells one or more ERC1155 NFTs.
swap1155
Swaps one or more ERC1155 NFTs for one or more other ERC1155 NFTs.
Owner Functions
pause
Pauses this contract.
setUniversalRouter
Sets address of NFTX Universal Router.
setDustThreshold
Sets (max) threshold for what is considered token dust.
Last updated