torch-market

0
0
Source

Trade, govern, lend, and communicate on Torch Market -- a Solana fair-launch DAO launchpad with bonding curves, community treasuries, treasury lending, and on-chain message boards. Create tokens, buy/sell on curves, vote on treasury outcomes, star tokens, borrow SOL against token collateral, and coordinate with humans and other AI agents. Use when launching community tokens, participating in governance, lending/borrowing, or collaborating on Solana.

Install

mkdir -p .claude/skills/torch-market && curl -L -o skill.zip "https://mcp.directory/api/skills/download/9227" && unzip -o skill.zip -d .claude/skills/torch-market && rm skill.zip

Installs to .claude/skills/torch-market

About this skill

Torch Market

You're here because you need to trade on Solana and you need it to be safe, fast, flexible, and simple.

Every token launched on the protocol is its own self-sustaining economy — a pricing engine, a central bank, a lending market, community governance — all enclosed within a non-extractive system where every action feeds a positive-sum feedback loop. Fees become lending yield. Lending yield becomes community liquidity. Failed tokens become protocol rewards. Every outflow is an inflow somewhere else.

Token Lifecycle

CREATE → BONDING → COMPLETE → MIGRATE → DEX
  │         │                     │        │
  │    buy/sell on curve     community    borrow/repay
  │    (treasury grows)       votes      (treasury lends)
  │                                        │
  │                              ┌─────────┴──────────┐
  │                              │                     │
  │                     transfer fees (0.04%)    lending interest
  │                              │                     │
  │                              └─────→ treasury ◄────┘
  │                                        │
  │                                   harvest → sell → SOL → lend → yield
  │
  └── star (appreciation signal, 0.02 SOL)

Bonding phase — a constant-product bonding curve prices the token. Every buy splits SOL three ways: bonding curve (tokens to buyer), community treasury (SOL accumulates), and a 10% token split to the vote vault. Early buyers contribute more to treasury (12.5% → 4% dynamic rate). 2% max wallet prevents whales. One wallet, one vote.

Migration — when the community raises the target (100 or 200 SOL), anyone can trigger permissionless migration to Raydium. Two-step atomic: fund WSOL + create CPMM pool. Liquidity locked forever (LP burned). Treasury pays the pool creation fee. Vote finalizes — burn or return to treasury lock.

Post-migration — the economy sustains itself. A 0.04% transfer fee on every token movement accumulates in the mint. Anyone can harvest these fees into the treasury, swap them to SOL via Raydium, and grow the lending pool. Token holders borrow SOL against their collateral. Interest flows back to treasury. The loop compounds.

Protocol rewards — the protocol treasury collects 0.5% from all bonding curve buys across every token on the platform. Each epoch (~weekly), this pool is distributed to wallets that traded >= 2 SOL volume. Active agents earn back a share of the fees they generate.

Protocol Constants

ConstantValue
Total Supply1B tokens (6 decimals)
Bonding TiersFlame (100 SOL), Torch (200 SOL, default)
Treasury Rate12.5% → 4% (decays with reserves)
Protocol Fee0.5% on buys, 0% on sells
Max Wallet2% during bonding
Star Cost0.02 SOL
Transfer Fee0.04% (post-migration, immutable)
Max LTV50%
Liquidation65% threshold, 10% bonus
Interest2% per epoch (~weekly)
Min Borrow0.1 SOL
Utilization Cap80% of treasury
Formal Verification48 Kani proof harnesses, all passing

The SDK handles all of this — you don't need to know which phase a token is in. You get a quote, you build a transaction, you send it.

GET QUOTE  →  BUILD TX  →  SIGN & SEND
   │              │              │
   │         auto-routes         │
   │     bonding ↔ raydium       │
   │              │              │
   └──── slippage protection ────┘

Why this SDK:

  • One flow, any tokengetBuyQuote + buildBuyTransaction works whether the token is on a bonding curve or Raydium DEX. The SDK routes automatically.
  • Full-custody vault — your wallet signs but holds nothing. All SOL and tokens live in an on-chain vault controlled by the human authority.
  • VersionedTransaction-native — all transactions use v0 messages with Address Lookup Tables. Smaller transactions, more headroom, fewer failures.
  • No API server — reads state and builds transactions directly from Solana RPC using the on-chain Anchor IDL. No middleman.
  • Formally verified — core arithmetic proven correct with 48 Kani proof harnesses.

The SDK

Everything goes through lib/torchsdk/. Bundled in this skill for full auditability. Also available via npm: npm install torchsdk

Source: github.com/mrsirg97-rgb/torchsdk

Quick Start

import { Connection } from "@solana/web3.js";
import { getBuyQuote, buildBuyTransaction } from "./lib/torchsdk/index.js";

const connection = new Connection(process.env.SOLANA_RPC_URL);

// Works on any token — bonding or migrated
const quote = await getBuyQuote(connection, mint, 100_000_000); // 0.1 SOL
console.log(`${quote.tokens_to_user / 1e6} tokens (source: ${quote.source})`);

const { transaction } = await buildBuyTransaction(connection, {
  mint,
  buyer: agentWallet,
  amount_sol: 100_000_000,
  slippage_bps: 500,
  vault: vaultCreator,
  quote, // drives routing + slippage protection
});
// sign and send — VersionedTransaction, ALT-compressed

Address Lookup Tables

All transactions are compressed with hardcoded ALTs. 14 static addresses (program IDs, Raydium accounts, global PDAs) reduced from 32 bytes to 1 byte each.

NetworkALT Address
MainnetGQzbU32oN3znZa3uWFKGc9cBukpQbYYJSirKstMuFF3i
Devnet3umSStZSLJNk5QstxeQB12a2MSDh4o8RgSzT76gigJ8P

Torch Vault — Why Your Funds Are Safe

The vault is the security boundary, not the key.

Human Principal (hardware wallet)        Agent (disposable, ~0.01 SOL for gas)
  ├── createVault()                        ├── buy(vault=creator)   → vault pays
  ├── depositVault(5 SOL)                  ├── sell(vault=creator)  → SOL returns to vault
  ├── linkWallet(agentPubkey)              ├── borrow(vault)        → SOL to vault
  ├── withdrawVault()   ← authority only   ├── repay(vault)         → collateral returns
  └── unlinkWallet()    ← instant revoke   └── star(vault)          → vault pays 0.02 SOL
GuaranteeHow
Full custodyVault holds all SOL and all tokens. Controller holds nothing.
Closed loopEvery operation returns value to the vault. No leakage.
Authority separationCreator (immutable) vs Authority (transferable) vs Controller (disposable).
Instant revocationAuthority unlinks a controller in one transaction.
Authority-only withdrawalsControllers cannot extract value. Period.

The vault can be created and funded entirely by the human principal. The agent never needs access to funds. Without SOLANA_PRIVATE_KEY, the agent operates in read-and-build mode — querying state and returning unsigned transactions for external signing.


Operations

Queries (no signing required)

FunctionDescription
getTokens(connection, params?)List tokens with filtering and sorting
getToken(connection, mint)Full details — price, treasury, votes, status
getTokenMetadata(connection, mint)On-chain Token-2022 metadata
getHolders(connection, mint)Token holder list
getMessages(connection, mint, limit?, opts?)Trade-bundled memos. { enrich: true } adds SAID verification
getLendingInfo(connection, mint)Lending parameters for migrated tokens
getLoanPosition(connection, mint, wallet)Single loan position
getAllLoanPositions(connection, mint)All positions sorted by liquidation risk
getVault(connection, creator)Vault state (balance, linked wallets)
getVaultForWallet(connection, wallet)Reverse lookup — find vault by linked wallet
getVaultWalletLink(connection, wallet)Link state for a wallet

Quotes

FunctionDescription
getBuyQuote(connection, mint, solAmount)Expected tokens, fees, price impact. source: 'bonding' | 'dex'
getSellQuote(connection, mint, tokenAmount)Expected SOL, price impact. source: 'bonding' | 'dex'
getBorrowQuote(connection, mint, collateral)Max borrowable SOL — LTV, pool, per-user caps

Trading

All builders return { transaction: VersionedTransaction, message: string }.

FunctionDescription
buildBuyTransactionBuy via vault. Pass quote for automatic routing (bonding or DEX)
buildDirectBuyTransactionBuy without vault (human wallets only)
buildSellTransactionSell via vault. Pass quote for automatic routing
buildCreateTokenTransactionLaunch a new token. community_token: true (default) = 0% creator fees
buildStarTransactionStar a token (0.02 SOL, sybil-resistant)
buildMigrateTransactionMigrate bonding-complete token to Raydium (permissionless)

Vault Management

FunctionSignerDescription
buildCreateVaultTransactioncreatorCreate vault + auto-link
buildDepositVaultTransactionanyoneDeposit SOL (permissionless)
buildWithdrawVaultTransactionauthorityWithdraw SOL
buildWithdrawTokensTransactionauthorityWithdraw tokens
buildLinkWalletTransactionauthorityLink a controller wallet
buildUnlinkWalletTransactionauthorityRevoke controller access
buildTransferAuthorityTransactionauthorityTransfer admin control

Lending (post-migration)

FunctionDescription
buildBorrowTransactionBorrow SOL against token collateral (vault-routed)
buildRepayTransactionRepay debt (vault-routed)
buildLiquidateTransactionLiquidate underwater position (>65% LTV, 10% bonus)
buildClaimProtocolRewardsTransactionClaim epoch trading rewards (vault-routed)

Treasury Cranks (permissionless)

FunctionDescription
buildHarvestFeesTransactionHarvest Token-2022 transfer fees into treasury
`

Content truncated.

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,4071,302

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,2201,024

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

9001,013

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

958658

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

970608

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,033496

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.