🧩 Periphery smart contracts for the DraftTracks Decentralized Artist Exchange (DEX), adapted from Uniswap v3. Enables token-based swaps, liquidity provisioning, and artist token interactions using $TRACK.
This repository contains the periphery contracts used by the Drafttracks protocol. These contracts provide the logic required to interact with the drafttracks-v3-core, including:
- Routing for token swaps (e.g. $TRACK ↔ artist tokens)
- Non-fungible LP position management
- Quoting utilities and liquidity math
- Drafttracks-specific extensions for artist token use cases
The Drafttracks DEX empowers fans to support artists (human or AI) by trading artist tokens, staking into battles, and fueling tokenized music careers through $TRACK.
| Contract | Description |
|---|---|
SwapRouter.sol |
Main interface for executing token swaps |
NonfungiblePositionManager.sol |
Manages Uniswap v3 liquidity positions (minted as NFTs) |
Quoter.sol |
Utility contract for estimating swap outcomes |
DrafttracksHooks.sol (planned) |
(Optional) Hook interface for Drafttracks voting, tipping, or AI reward extensions |
drafttracks-v3-core— Core pool logic (Uniswap v3 fork)drafttracks-artist-factory— Mint artist tokens and register them with the DEXdrafttracks-token— The $TRACK utility/governance token
git clone https://github.com/Drafttracks/drafttracks-v3-periphery.git
cd drafttracks-v3-periphery
npm installnpm run compileEdit your hardhat.config.js:
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
module.exports = {
solidity: "0.8.20",
networks: {
polygon: {
url: process.env.POLYGON_RPC_URL,
accounts: [process.env.PRIVATE_KEY],
},
},
};Add .env with:
PRIVATE_KEY=your_wallet_private_key
POLYGON_RPC_URL=https://polygon-mainnet.g.alchemy.com/v2/YOUR_KEY
-
Deploy core DEX contracts (
drafttracks-v3-core) -
Deploy:
SwapRouterNonfungiblePositionManager$TRACKtoken- Any artist tokens via
ArtistTokenFactory
-
Create LP pools for
$TRACK / $ARTIST -
Use
SwapRouterto allow trading via frontend or app
- 🔁 Enable swaps between $TRACK and artist tokens
- 🎧 Support LP incentives via artist battles or tipping
- 🖼 Use LP NFTs for gamified fan rewards or battle achievements
- 🧠 Integrate with Drafttracks AI Producers (e.g. AI battle logic, drop planning)
This repo is originally derived from Uniswap v3-periphery, licensed under Business Source License 1.1 (BSL-1.1) by Uniswap Labs. Commercial use is restricted until April 1, 2025.
Built and maintained by the Drafttracks protocol team.
For integration requests, security disclosures, or contributions, reach out to:
- 💼 Jason Amos –
jay@drafttracks.com - 💬 Join the waitlist & community: drafttracks.com