Torch Market
Every token is its own margin market. Depth-adaptive risk engine, treasury-backed lending, real-token short selling. No oracles. No stored baselines. No keep...
Every token is its own margin market. Depth-adaptive risk engine, treasury-backed lending, real-token short selling. No oracles. No stored baselines. No keep...
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Every token launched on torch gets a funded treasury, a 300M token lending reserve, margin lending, short selling, and on-chain pricing — all live from migration.
No external LPs. No oracle feeds. No protocol token. No bootstrapping.
A protocol where every token launches with its own margin market.
Shorts are not synthetic. Borrowed tokens are real. Selling them moves the real price. Short sellers are market participants contributing to price discovery.
CREATE → BOND → MIGRATE → TRADE → MARGIN │ ┌────┴─────┐ LEND SHORT SELL │ │ REPAY CLOSE │ │ LIQUIDATE LIQUIDATE
Bonding — constant-product curve. SOL splits: curve (100% of tokens to buyer) + treasury (17.5%→2.5% dynamic SOL rate). 2% max wallet. Completes at 100 or 200 SOL.
Migration — permissionless. Creates Raydium pool, burns LP tokens (liquidity locked forever), revokes mint/freeze authority permanently, activates 0.07% transfer fee.
Trading — token trades on Raydium. Transfer fees harvest to treasury as SOL. Treasury grows perpetually.
Margin — two capital pools, two-sided margin:
| Pool | Asset | Purpose |
|---|---|---|
| Token Treasury | SOL | Lending pool — borrow SOL against token collateral |
| Treasury Lock | 300M tokens | Short pool — borrow real tokens against SOL collateral |
SUPPLY 1,000,000,000 tokens (6 decimals) CURVE_SUPPLY 700,000,000 (70%) TREASURY_LOCK 300,000,000 (30%) MAX_WALLET 2% during bonding BONDING_TARGET 100 SOL (Flame) / 200 SOL (Torch) PROTOCOL_FEE 0.5% on buys TREASURY_RATE 17.5% → 2.5% (dynamic decay) TRANSFER_FEE 0.07% (post-migration, immutable) MAX_LTV 25-50% (depth-adaptive: 25% <50 SOL, 35% 50-200, 45% 200-500, 50% 500+) LIQ_THRESHOLD 65% INTEREST 2% per epoch (~7 days) LIQ_BONUS 10% UTIL_CAP 80% BORROW_CAP 23x collateral share of supply MIN_POOL_SOL 5 SOL (below this: all margin ops blocked) MIN_BORROW 0.1 SOL PROGRAM_ID 8hbUkonssSEEtkqzwM7ZcZrD9evacM92TcWSooVF4BeT
GET QUOTE → BUILD TX → SIGN & SEND
One flow, any token state. The SDK auto-routes bonding curve or Raydium DEX based on the quote's
source field.
import { getBuyQuote, buildBuyTransaction } from "torchsdk";const quote = await getBuyQuote(connection, mint, 100_000_000); // 0.1 SOL const { transaction } = await buildBuyTransaction(connection, { mint, buyer: wallet, amount_sol: 100_000_000, slippage_bps: 500, vault: vaultCreator, quote, }); // sign and send — VersionedTransaction, ALT-compressed
| Function | Returns |
|---|---|
| Token list (filterable, sortable) |
| Full detail: price, treasury, status |
| On-chain Token-2022 metadata |
| Top holders with balance/percentage |
| On-chain memos. adds SAID |
| Lending parameters and pool state |
| Loan: collateral, debt, LTV, health |
| All loans sorted by liquidation risk |
| Short: collateral, debt, LTV, health |
| Tokens out, fees, impact. |
| SOL out, impact. |
| Max borrow: LTV, pool, per-user caps |
| Vault state |
| Reverse vault lookup |
| Per-user trading volume + rewards-claimed history |
| Protocol treasury: epoch, aggregate volume, distributable amount |
| Per-token treasury: SOL balance, tokens held, baseline pool reserves at migration, stars |
| Function | Description |
|---|---|
| Buy via vault. Auto-routes bonding/DEX |
| Buy without vault (human wallets) |
| Build + simulate + submit vault buy via |
| Build + simulate + submit direct buy via |
| Sell via vault. Auto-routes bonding/DEX |
| Launch token + treasury + 300M lock |
| Build + simulate + submit token creation (Phantom-friendly) |
| Star token (0.02 SOL) |
| Migrate to Raydium (permissionless) |
| Function | Description |
|---|---|
| Borrow SOL against token collateral |
| Repay debt, unlock collateral |
| Liquidate loan (>65% LTV) |
| Post SOL, borrow tokens from treasury lock |
| Return tokens, recover SOL collateral |
| Liquidate short (>65% LTV) |
| Claim epoch trading rewards |
| Function | Signer |
|---|---|
| creator |
| anyone |
| authority |
| authority |
| authority |
| authority |
| authority |
| Function | Description |
|---|---|
| Harvest 0.07% transfer fees to treasury |
| Swap harvested tokens to SOL via Raydium |
| Advance protocol epoch so previous-epoch rewards become claimable |
| Reclaim inactive tokens (7+ days) |
Human (authority) Agent (controller, ~0.01 SOL gas) ├── createVault() ├── buy(vault) → vault pays ├── depositVault(5 SOL) ├── sell(vault) → SOL to vault ├── linkWallet(agent) ├── borrow(vault) → SOL to vault ├── withdrawVault() ← auth only ├── repay(vault) → collateral back └── unlinkWallet() ← instant ├── openShort(vault) → tokens to vault └── closeShort(vault)→ SOL to vault
| Guarantee | Mechanism |
|---|---|
| Full custody | Vault holds all SOL and tokens. Controller holds nothing. |
| Closed loop | Every operation returns value to vault. No leakage. |
| Authority separation | Creator (immutable) / Authority (transferable) / Controller (disposable) |
| Instant revocation | Authority unlinks controller in one tx |
| No extraction | Controllers cannot withdraw. Period. |
| Isolated positions | One loan per user per token. One short per user per token. No cascading. |
| Immutable parameters | LTV, liquidation, interest — set at deployment. No admin key changes them. |
If
SOLANA_PRIVATE_KEY is provided: must be a fresh disposable keypair (~0.01 SOL gas). All capital lives in vault. If compromised: attacker gets dust, authority revokes in one tx. Key never leaves the runtime.
If not provided: read-only mode — queries state, returns unsigned transactions.
Rules:
Positions can be liquidated. Bad debt is possible in extreme conditions. There is no insurance fund. But:
71 Kani proof harnesses. 61 end-to-end tests. All passing. Cross-validated by independent audit. Core arithmetic and depth-band boundaries formally verified. See VERIFICATION.md and risk.md.
lib/torchsdk/ | npm | source8hbUkonssSEEtkqzwM7ZcZrD9evacM92TcWSooVF4BeTNo automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.