For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overview

The NFTX v4 on-chain contracts — what each one does, how they fit together, and where they're deployed.

NFTX v4 is a set of non-upgradeable Solidity contracts that turn an NFT collection into a fungible, liquid market on top of Uniswap V4. This section is the on-chain reference: an architecture overview, the deployment addresses per chain, and a page per contract documenting its public functions, inputs, and return values.

Built with Foundry on Solidity ^0.8.26. Key dependencies: Uniswap V4 core/periphery and hooks, Permit2, OpenZeppelin (including upgradeable ERC20 primitives for the clone-based collection token), and Solady.

For collections with enforced creator-token transfers, see Creator Token Approvals for the operator addresses to send to the collection team.

How the pieces fit together

At the center is the Locker, which custodies every deposited ERC-721 and mints a fungible ERC-20 collection token (the collection's floor token) in return. Redeeming burns the token and returns an NFT. Everything else builds on that core:

  • Locker — the vault. Holds the NFTs, mints/burns collection tokens, and exposes the core deposit / redeem / swap operations plus collection creation. Entry and exit are feeless; fees live in the listing and AMM layers.

  • Collection Token — the ERC-20 that represents a collection. Deployed as a minimal-proxy clone per collection; mint and burn are restricted to the Locker.

  • Listings — the self-assessed listing system. Sellers list non-floor items at a chosen floor multiple (liquid or Dutch), paying a tax that scales with price and duration.

  • Tax Calculator — prices that listing tax from the floor multiple and duration, with a softening kink above 2.00x.

  • NFTX V4 Hook — the Uniswap V4 hook. The single integration point for pool fees and swaps, including per-collection fees and fee exemptions.

  • NFTX Flex Hook — the second hook. Permissionless pools pairing a collection token with any whitelisted pair token, sharing the canonical hook's fee logic.

  • Zap — convenience entry point for atomic ETH ↔ NFT flows.

  • Migrator Zap — one-transaction migration from the legacy NFTX v2/v3 vaults into v4, with a 1:1 dust escrow for sub-unit legacy balances (Ethereum Mainnet only).

  • Collection Shutdown — a community-driven wind-down path for collections that have become illiquid.

  • Supporting Contracts — the Locker Manager, collection launch gates, the liquidation bonding curve, and token escrow.

  • Royalty Gate — the royalty-charging entrance to the Locker for ERC721-C collections that enforce creator royalties on NFTX. Live on every mainnet.

A typical flow

Contract reference

Last updated

Was this helpful?