CreateVaultZap

CreateVaultZap.sol

This contract is a zap for creating and setting up a vault.

Table of Contents

Constants
Public Write Functions

Constants

MINIMUM_INVENTORY_LIQUIDITY

uint256 internal immutable MINIMUM_INVENTORY_LIQUIDITY

Set to NFTX inventory staking contract's MINIMUM_LIQUIDITY.

WETH

function WETH() external view returns (address)

Address of WETH contract.

vaultFactory

function vaultFactory() external view returns (address)

Address of NFTXVaultFactoryUpgradeableV3.

nftxRouter

function nftxRouter() external view returns (address)

Address of NFTXRouter contract.

ammFactory

function ammFactory() external view returns (address)

Address of NFTX AMM's UniswapV3FactoryUpgradeable contract.

inventoryStaking

function inventoryStaking() external view returns (address)

Address of NFTXInventoryStakingV3Upgradeable contract.

positionManager

function positionManager() external view returns (address)

Address of the NFTX AMM's NonfungiblePositionManager contract.

Write Functions

createVault

function createVault(
    CreateVaultParams calldata params
) external payable returns (uint256 vaultId)

Sells one or more ERC721 NFTs for ETH.

Last updated