Skip to content
Documentation

How DEEP works.

The bonding curve, graduation into DeepSwap, every fee, the Telegram bots, and the programs, SDK and public API (seasons and DEEP Social included) for developers.

01

Overview

DEEP is a Solana launchpad. Each token is sold on its own bonding curve (Deep Curve) until its curve supply is exhausted. It then graduates: its raised SOL and reserved tokens seed a DeepSwap liquidity pool at the curve's final price.

  1. 01Launch
  2. 02Bond
  3. 03Go Deep
  4. 04Graduate
  5. 05DeepSwap
02

Deep Curve

A constant-product curve over virtual reserves: x · y = k, where x is virtual SOL and y is virtual tokens. The virtual offsets set the starting price without anyone depositing them. All math is integer-only (u128 on-chain, BigInt in the client). The same test vectors run against both implementations.

  • Outputs to the trader round down; fees and required inputs round up. k never decreases.
  • Every buy and sell carries a minimum-output (slippage) bound and a deadline, both enforced on-chain.
  • A buy larger than the remaining supply is capped, and only the SOL needed is charged.
03

Depth

Depth is the number of curve tokens sold, shown against the curve supply. The difference between the two is what remains until the token goes DEEP and graduates. The depth meter on each token reads curve state directly.

04

Graduation

The threshold is SOL-denominated and enforced on-chain: the curve is complete when every curve token has sold. No USD price feed decides graduation. USD values shown in the app are SOL amounts multiplied by the Pyth SOL/USD price read from chain on mainnet, and are labeled estimates. If that price is stale or unavailable, no USD value is shown.

Graduation is idempotent. A graduated flag is set in the same atomic transaction that moves funds, so a replayed or duplicate call fails with AlreadyGraduated. Graduation creates a DeepSwap pool directly from the program and burns every LP token it receives, so the liquidity is permanently locked and never leaves program custody.

05

Trade & claim

Chart

  • Candles by default, with the open, high, low, close, change and volume of the candle under the cursor or finger.
  • Moving averages MA 7, MA 25 and MA 99 as toggles.
  • Every timeframe from 1m to 7d, on bonding and graduated tokens.
  • Fullscreen, on phones too.
  • With a wallet connected, your own buys and sells are marked on the candles.

Trade from Telegram

DEEP Terminal trades the same tokens from Telegram, on the curve or the DeepSwap pool. See Telegram bots.

Claim creator fees and holder rewards

The Creator page (Me on a phone) shows only what you can act on. Its Ready to claim card adds up every claimable balance of your wallet, by source: curve creator fees, your Holder Rewards on any token, DeepSwap creator fees and the reward fees of your pools. Claim all collects the curve creator fees and every Holder Rewards claim in as few transactions as fit; your wallet approves each one. DeepSwap and pool reward fees have their own Claim lower on the page. Only the creator wallet can claim creator fees.

Holder Rewards

  • A Holder Rewards token's reward fees go to its holders through its deep-rewards distributor. The DEEP token itself is a Holder Rewards token.
  • Holders are snapshotted over a 3-hour window. A round pays out only after the on-chain delay (24 hours on mainnet, 12 hours at least), and the next snapshot waits for it, so mainnet pays about one round a day.
  • Each holder's share of a round is in proportion to what they hold at the snapshot (wallets worth about $10 or more).
  • Claim on the token's page or, for every token at once, on Me, any time. Nothing is sent automatically, and an active round never expires.
  • Holding in a Squads multisig? Program accounts are left out of snapshots because nobody can claim for them, but a Squads vault can. On Me, paste the multisig address (Squads: Settings) and press Register: DEEP checks it on chain and its vaults count from the next snapshot. To claim, press Copy Squads transaction, then import it in Squads (Developers, Import), approve and execute.
06

Fees

Who pays, who receives, and when. Every rate below is read from the on-chain config on mainnet.

READING THE ON-CHAIN CONFIG…
FEEWHENPAID BYRECEIVED BYRATE
Token creationWhen launchingPaid by CreatorTo DEEP fee vault
Curve trade — creator shareEvery curve buy/sellPaid by TraderTo Creator
Curve trade — protocol share, buysEvery curve buyPaid by TraderTo DEEP fee vault
Curve trade — protocol share, sellsEvery curve sellPaid by TraderTo DEEP fee vault
MigrationAt graduationPaid by Curve reservesTo DEEP fee vault (after pool costs)
Pool swap — LP shareEvery DeepSwap swapPaid by TraderTo Liquidity providers
Pool swap — creator feeSwaps in graduation poolsPaid by TraderTo Creator
Pool swap — protocol shareEvery DeepSwap swapPaid by TraderTo DEEP fee vault

Fee flow

Reading the on-chain config…
BAND WIDTH = SHARE OF FEE
Creator
Liquidity providers
DEEP
Total fee
READING THE ON-CHAIN CONFIG…

How the rates apply

  • Curve fees are snapshotted into each curve at launch; later config changes never affect live tokens. The curve fees combined are capped at 10.00% per side, enforced on-chain.
  • Curve fee changes wait out a delay on the config account, visible on-chain before they apply. DeepSwap rates are read from the pool configuration and can change for existing pools at once, with no waiting period, within the on-chain cap.
  • The DeepSwap creator fee is charged in SOL on top of the pool fee by the pool a token graduates into. The rate and the split can change. Pools anyone else opens for the same token charge the pool fee alone.
  • The launch fee is set in US dollars and charged in SOL at the on-chain Pyth SOL/USD price when the token is created. The program caps it at $20.00. If the price is older than 120 seconds the launch fails instead of guessing, and can be retried.
  • Every fee DEEP receives (curve protocol fees, the launch fee, the migration fee remainder, DeepSwap protocol fees, DEEP's part of the creator fee and the DeepSwap create-pool fee) goes to one program-owned fee vault. It leaves the vault only through the on-chain distribution to DEEP. Traders pay the same fees whenever it runs.
  • Solana network fees are separate.

Where DEEP revenue goes

All DEEP fees → the DEEP fee vault → paid out to DEEP by the on-chain distribution.

07

Telegram bots

DEEP runs two Telegram bots: DEEP Terminal to trade, and DEEP buy alerts to post a token's buys in your group.

DEEP Terminal · @Deep_Terminal_Bot

Trade DEEP tokens from Telegram: on the bonding curve while a token bonds, on its DeepSwap pool after it graduates. The bot reads the venue from the chain. DEEP's curve or pool fee for each token is shown on the token card.

Main menu (/start)

  • Search: by ticker, name or contract.
  • Trending: top tokens by 24 h volume.
  • Positions, Wallets, Settings and Help.
  • Terminal: opens the DEEP web app.

Buy

  • Paste a contract address to open its Buy panel: token info, every wallet's SOL, and links to DEEP, Solscan, DexScreener, Defined and GMGN.
  • Tap a buy button, or Buy X for your own amount. Right after opening a token you can also just type an amount, like 0.25.
  • Wallet toggles W1 to W5 and All: a buy goes from every selected wallet at once, and the amount is per wallet.
  • Set slippage on the panel. Every trade sends your slippage as the minimum output, which the program enforces on-chain.

Sell

  • Sell → opens the Sell panel: each wallet's bag with profit, worth and cost.
  • A sell button sells that % of each selected wallet's bag.

Wallets

  • Up to 5 wallets per user, created by the bot or imported (paste a private key; the bot deletes that message).
  • Export any wallet's key and withdraw SOL at any time.
  • Withdrawals to token accounts or program addresses are refused, so SOL can't get stuck.

Settings

  • Default slippage.
  • Your own buy buttons (up to 4 SOL amounts) and sell buttons (up to 4 percentages).
  • Trade confirmation: off by default, so a tap trades at once. Turn it on to see a review screen before each trade.

Commands

/start
Main menu
/search
Find a token
/wallets
Your wallets
/positions
Your bags
/settings
Slippage, buttons, confirmation
/import
Import a wallet
/withdraw
Send SOL out
/export
Show a wallet's key
/help
Help

DEEP Terminal is custodial: it holds your wallet keys, encrypted. It is not audited. Trade only what you can afford to lose, and keep an exported key private.

DEEP buy alerts · @dlfun_bot

Posts every buy of one DEEP token in your Telegram group. It follows the token across graduation automatically.

Set up

  1. Add the bot to your group and make it an admin.
  2. An admin sends /settings.
  3. Pick the token the group follows: paste its contract address.

Settings

Token
The DEEP token the group follows
Min buy
Smallest buy posted (default 0.1 SOL)
Emoji and Step
One emoji per X SOL, up to 100 (default 🌊 per 0.05 SOL)
Sells
Post sells too (default off)
Media
DEEP card, text only, or your own GIF, video or image: choose Custom and reply to the bot with the file (up to 20 MB)
Test post
Posts the token's last real buy
Remove token
Stops the alerts

Each alert shows

  • SOL spent (with USD), tokens received and price.
  • Market cap: price × supply. It is not liquidity.
  • The buyer, marked New holder or with their position change.
  • Bonding depth while the token is on the curve, or its DeepSwap pool after graduation.
  • Holders.
  • Buttons: Chart, Tx, and Trade on DEEP (opens DEEP Terminal on that token).

The same bot posts every new launch, graduation and new DeepSwap pool to the launch alerts channel @DeepDeploys.

Official links

Telegram chat
t.me/LaunchOnDL
Launch alerts
t.me/DeepDeploys
Buy alerts bot
@dlfun_bot

These are DEEP's only official accounts. The team never DMs first.

08

Developers

SDK, program IDs and IDLs for the mainnet deployment. Building a trading terminal, aggregator or indexer? Account layouts, events, fee maths, error codes and compute budgets are in Integrate.

Quote a curve buy
npm install @deepliquidity/sdk @deepliquidity/curve-math @solana/web3.js

import { curveFees, curvePda, decodeBondingCurve } from "@deepliquidity/sdk";
import { quoteBuyV1 } from "@deepliquidity/curve-math";
const acc = await connection.getAccountInfo(curvePda(mint));
const c = decodeBondingCurve(acc!.data);
// the token's own terms: DEEP's buy and sell rate, its reward rate and reward model
const fees = curveFees(c);
const q = quoteBuyV1(c.state, 1_000_000_000n, fees); // q.tokensOut for 1 SOL, fees included
IDLs and SDK

The SDK is on npm as @deepliquidity/sdk, with the Anchor IDLs of the three programs inside it (idl/). Source: github.com/Deep-Liquidity/deep-sdk.

HTTP API

Read-only JSON at https://api.deepliquidity.fun: /v1/tokens, /v1/pools, /v1/pairs, /v1/stats, /v1/price/sol, /v1/network, /v1/status, and /v1/trades/recent?limit=1..100 (the newest trades of listed tokens; hidden tokens are left out), /v1/rewards/:mint/:wallet and /v1/rewards/wallet/:wallet (a wallet's Holder Rewards with Merkle proofs, for one token or all of them), and POST /v1/rewards/squads (register a Squads v4 multisig's vaults for Holder Rewards, checked on chain). OpenAPI 3.1 at /v1/openapi.json.

Launching tokens from your own launchpad

Upload each token's logo and details to DEEP before create_token: uploadTokenMetadata() in the SDK, or POST /v1/metadata (multipart: image, name, symbol, description, links). It returns the uri to launch with, and the logo shows on DEEP at once. Logo: PNG, JPEG, GIF or WebP, up to 1 MB. With your API key, uploads count against your key instead of your server's address. Metadata you host yourself also works: DEEP copies the logo onto its own storage a few minutes after the launch.

API keys and the partner program

Every route works without a key. For higher limits and usage stats, sign in with your wallet on the developer dashboard, create a key and send it as the x-api-key header (never in a URL). Integrators can apply to the partner program there; approved partners choose whether they are listed on the Integrations page.

DeepSwap fee models

A pool is priced by its own account and the AmmConfig it names. decodeCpmmPoolState gives feeModel (0 legacy, 1 DEEP V1), rewardModel, rewardRate and poolCreator, the reward recipient; decodeCpmmAmmConfig gives the buy and sell rates for liquidity providers and DEEP, and maxRewardRate. cpmmPoolFeeRates(config, pool) returns what each side pays; quoteDeepSwapExactIn and quoteDeepSwapExactOut price either model. initializeV1Ix opens a pool with its own reward terms under a V1 AmmConfig. DeepSwap rates are per 1e6, curve rates basis points. Details in Integrate.

Open-source licences

deep-amm forks Raydium cp-swap (Apache-2.0, see its NOTICE). The rest is MIT.

Integrating a swap

  1. 01QuoteRead the curve account and quote with the same integer math the program runs.quoteBuyV1(c.state, solIn, curveFees(c))
  2. 02Set slippagePass a minimum output. The transaction fails rather than fill worse.applySlippage(q.tokensOut, 100)
  3. 03Build & signBuild the instruction, add it to a transaction and have the user sign.buyIx({ user, mint, amount, … })
  4. 04Handle graduationA token can graduate between quote and send. On CurveComplete, swap on its pool.cpmmSwapBaseInputIx({ poolId, … })

IDL explorer

Instructions an integration uses. The IDL files in the repo are the source of truth.

idl/deep_curve.jsonMainnet
create_tokenname, symbol, uri, reward_model, reward_bps, max_launch_fee_lamports
buysol_in, min_tokens_out, deadline
selltokens_in, min_sol_out, deadline
claim_creator_feescreator signs
sweep_holder_feesanyone; a Holder Rewards curve's reward fees go to its holder vault
09

Integrate

For trading terminals, aggregators, screeners and indexers: everything needed to support the deep-curve launchpad and DeepSwap without asking us. The programs are live on Solana mainnet since 2026-10-08. The long form, with every table, is docs/INTEGRATORS.md in the DEEP repository.

Addresses

PDA seeds
AccountProgramSeeds
BondingCurvedeep-curve"curve", mint
curve vaultATAATA(mint, BondingCurve PDA)
graduation pooldeep-curve"raydium_pool", mint
Config / Treasurydeep-curve"config" / "treasury"
fee vault / splitterdeep-curve"fee_vault" / "splitter"
AmmConfigdeep-amm"amm_config", u16 index big-endian
pool vaultdeep-amm"pool_vault", pool, mint
LP mintdeep-amm"pool_lp_mint", pool
observationdeep-amm"observation", pool

Detecting launches, completion and graduation

  1. 01Launchcreate_token emits TokenCreated (and LaunchFeeCharged when a launch fee is set). Or watch deep-curve accounts with the BondingCurve discriminator at offset 0.
  2. 02BondEvery buy and sell emits TradeEvent with the reserves after the trade. Progress = (curve_supply − real_token_reserves) / curve_supply.
  3. 03CompleteThe buy that sells the last curve token emits CurveCompleted and sets complete (offset 134). Curve trades then fail with CurveComplete (6003).
  4. 04Graduategraduate runs (anyone can send it, no account signs): a DeepSwap pool at the deep-curve PDA ["raydium_pool", mint], LP burned, BondingCurve.pool set, Graduated emitted.
  5. 05DeepSwapTrade the pool with swap_base_input. Read the pool's fee_model first. Legacy (0): the AmmConfig trade fee, plus the creator fee in WSOL on graduation pools. DEEP V1 (1): the AmmConfig's rates for the side plus the pool's own reward rate, all in the quote token. pool_creator is the token's creator, or the token's holder vault on a V1 Holder Rewards pool.
Quote, build and read events (@deepliquidity/sdk)
import { quoteBuyV1 } from "@deepliquidity/curve-math";
import { applySlippage, buyIx, curveFees, curvePda, decodeBondingCurve,
  graduationPoolPda, readCurveTransaction, rpcTransactionFromResponse,
} from "@deepliquidity/sdk";

const c = decodeBondingCurve((await conn.getAccountInfo(curvePda(mint)))!.data);
const fees = curveFees(c);    // DEEP's buy / sell rate + the token's own reward rate and model
const q = quoteBuyV1(c.state, 10_000_000n, fees);        // exact program maths
const ix = buyIx({ user, mint, amount: 10_000_000n,
  minOut: applySlippage(q.tokensOut, 100), deadline: BigInt(now + 60) });

// events of a confirmed tx, complete even when Solana truncated its log
const res = await conn.getTransaction(sig, { maxSupportedTransactionVersion: 0 });
const read = await readCurveTransaction(rpcTransactionFromResponse(res!), sig, {
  account: async (a) => { const i = await conn.getAccountInfo(new PublicKey(a));
    return i ? { data: i.data, owner: i.owner.toBase58() } : null; } });
if (read.status === "unreadable") report(sig, read.reason); // no events: never "none"
else for (const { index, event } of read.events) store(sig, index, event);
const pool = graduationPoolPda(mint);                     // after Graduated

Account layouts

Offsets include the 8-byte Anchor discriminator; integers are little-endian. Generated from the committed IDLs (idl/deep_curve.json + idl/deep_amm.json + idl/deep_rewards.json). Some display names in these tables may differ from the IDL names.

Config · deep_curve221 bytes
Config byte layout
OffsetFieldType
0discriminator [155, 12, 170, 224, 30, 250, 204, 130][u8; 8]
8adminpubkey
40pending_adminpubkey
72fee_recipientpubkey
104migration_authoritypubkey
136protocol_fee_bpsu16
138creator_fee_bpsu16
140migration_fee_bpsu16
142initial_virtual_solu64
150initial_virtual_tokenu64
158curve_supplyu64
166token_total_supplyu64
174decimalsu8
175pausedbool
176bumpu8
177raydium_amm_configpubkey
209timelock_secondsu32
213launch_fee_usd_centsu16
215sell_protocol_fee_bpsu16
217max_reward_bpsu16
219referral_share_bpsu16

Events

Anchor “Program data:” log lines. Only trust lines emitted while the DEEP program is the innermost invoked program: parseEventsFromLogs, parseFeeEventsFromLogs and parseAmmSwapEvents track the invoke stack. Solana truncates a transaction's log at about 10 kB, so a bundled launch can lose its last events: read a confirmed transaction with readCurveTransaction / readAmmTransaction, which rebuild what the log lost and prove it against the chain, or return unreadable (no events: report it, never count it as empty). TradeEvent.sol_amount is gross on a buy and net on a sell.

TokenCreated · deep_curvevariable size
TokenCreated byte layout
OffsetFieldType
0discriminator [236, 19, 41, 255, 130, 78, 147, 172][u8; 8]
8mintpubkey
40creatorpubkey
72namestring
var.symbolstring
var.uristring
var.curve_supplyu64
var.token_total_supplyu64
var.reward_modelu8
var.reward_bpsu16
var.quote_mintpubkey

Fee maths and rounding

Deep Curve
# rates from the token's own BondingCurve account, basis points:
#   p = DEEP's rate of the side: protocol_fee_bps (buy), sell_protocol_fee_bps (sell)
#   r = the token's reward rate, creator_fee_bps (0 on a Standard token); it goes to the
#       creator or to the holder vault, by reward_model
# curve buy: exact SOL in            (fees and inputs round UP, outputs DOWN)
fee_total    = ceil(sol_in × (p + r) / 10_000)
fee_reward   = floor(sol_in × r / 10_000)        # DEEP keeps fee_total − fee_reward
net          = sol_in − fee_total
tokens_out   = floor(virtual_token × net / (virtual_sol + net))
# capped at real_token_reserves: then only the SOL needed is charged

# curve sell: exact tokens in
sol_from_curve = floor(virtual_sol × tokens_in / (virtual_token + tokens_in))
sol_out        = sol_from_curve − ceil(sol_from_curve × (p + r) / 10_000)

# launch fee (Pyth SOL/USD, exponent ≤ 0)
lamports = ceil(usd_cents × 10^7 × 10^(−exponent) / price)
DeepSwap · legacy pool
# DeepSwap swap_base_input on a LEGACY pool (PoolState.fee_model = 0)
# rates per 1e6 from the pool's AmmConfig
# creator fee on the input (graduation-pool buy):
total       = ceil(in × (trade + creator) / 1e6)
creator_fee = floor(total × creator / (trade + creator))
trade_fee   = total − creator_fee
# otherwise: trade_fee = ceil(in × trade / 1e6),
#            creator_fee = ceil(out × creator / 1e6) off the output
out         = floor(x × reserve_out / (reserve_in + x)),  x = in − fees on input
protocol    = floor(trade_fee × protocol_fee_rate / 1e6)  # leaves the reserves
# creator fee settlement: DEEP keeps floor(accrued × share_rate / 1e6)
DeepSwap · DEEP V1 pool
# DeepSwap swap_base_input on a DEEP V1 pool (PoolState.fee_model = 1)
# rates per 1e6. buy: the quote token goes in. sell: the quote token comes out.
T = AmmConfig.{buy|sell}_lp_fee_rate + AmmConfig.{buy|sell}_protocol_fee_rate
    + PoolState.reward_rate_snapshot        # the pool's own rate, 0 for Standard
# buy: the fee comes off the input
total = ceil(in × T / 1e6);  net = in − total
out   = floor(net × reserve_out / (reserve_in + net))
# sell: the fee comes off the output
gross = floor(in × reserve_out / (reserve_in + in))
total = ceil(gross × T / 1e6);  out = gross − total
# parts, all in the quote token; they sum to total
lp       = floor(total × lp_rate / T)       # stays in the reserves
reward   = floor(total × reward_rate / T)   # 100% to pool_creator
protocol = total − lp − reward              # DEEP, to the fee vault
Read a pool's fees and quote (@deepliquidity/sdk)
import { cpmmPoolFeeRates, decodeCpmmAmmConfig, decodeCpmmPoolState,
  quoteDeepSwapExactIn } from "@deepliquidity/sdk";

const pool = decodeCpmmPoolState((await conn.getAccountInfo(poolId))!.data);
const cfg = decodeCpmmAmmConfig((await conn.getAccountInfo(pool.ammConfig))!.data);
// pool.feeModel 0 legacy / 1 DEEP V1; pool.rewardModel, pool.rewardRate (per 1e6);
// pool.poolCreator is the reward recipient
const { buy, sell } = cpmmPoolFeeRates(cfg, pool);   // lp, protocol, reward, total per 1e6
const bal = async (vault) => BigInt((await conn.getTokenAccountBalance(vault)).value.amount);
const q = quoteDeepSwapExactIn({ pool, config: cfg, inputMint, amount: 10_000_000n,
  vault0: await bal(pool.token0Vault), vault1: await bal(pool.token1Vault) });
// q.amountOut, q.lpFee, q.protocolFee, q.rewardFee, q.feeMint: either fee model
  • Units: DeepSwap rates are per 1e6 (millionths); curve rates are basis points. A graduation pool's reward rate is its curve's reward bps × 100.
  • Fee model: PoolState.fee_model and AmmConfig.fee_model (decodeCpmmPoolState().feeModel, decodeCpmmAmmConfig().feeModel) are 0 for legacy and 1 for DEEP V1, fixed at creation. A pool and its config always share one model.
  • V1 AmmConfig: buyLpFeeRate, buyProtocolFeeRate, sellLpFeeRate, sellProtocolFeeRate, and maxRewardRate, the current maximum for pools opened with initialize_v1. It is not any pool's rate, and existing pools keep theirs.
  • V1 PoolState: rewardModel (0 Standard, 1 Creator, 2 Holder), rewardRate (the pool's own rate, fixed at creation) and poolCreator, the only address its reward fees can be paid to.
  • cpmmPoolFeeRates(config, pool) returns what each side pays, with its lp, protocol and reward parts, for either model. quoteDeepSwapExactIn and quoteDeepSwapExactOut price either model from the decoded pool, its config and the two vault balances.
  • Every part of a V1 fee is in the pool's quote token: the input of a buy, the output of a sell. Nothing accrues on the other side.
  • Opening a pool: initializeV1Ix builds initialize_v1, which takes the reward model, the reward rate in bps and the quote token; cpmmV1PoolTerms validates them the way the program does and returns the reward recipient. It needs a V1 AmmConfig.
  • Events: a V1 swap emits SwapFeesV1 right after its SwapEvent: pool_id, is_buy, quote_mint, lp_fee, protocol_fee, reward_fee (u64 each), reward_model. decodeAmmSwapFeesV1 decodes it; parseAmmSwapEventsWithSource attaches it to its swap as feesV1.
  • Live rates are on chain: the curve's own fee fields and the pool's AmmConfig (see Fees).
  • Launch fee: at most $20 (on-chain cap), priced from Pyth and refused when the price is older than 120 s.
  • Token-2022 pools: transfer fees are withheld on the input and output transfers and minimum_amount_out applies to what arrives; ScaledUiAmount changes display only (amounts are raw).

Slippage and deadlines

  • Curve buy and sell: min out (SlippageExceeded (6007)) and a unix-seconds deadline that fails once now > deadline (DeadlineExceeded (6008)).
  • DeepSwap swaps: minimum_amount_out or max_amount_in (ExceededSlippage (6005)), no deadline argument (rely on the blockhash), NotApproved (6000) before the pool's open_time.
  • A curve can complete between quote and send: on CurveComplete (6003) route to the graduation pool once Graduated has been emitted.

Instruction accounts and arguments

Account order and arguments from the committed IDLs, for the instructions whose requirements the account list alone does not show: graduate has no signer, create_token takes the creator's launch-fee limit, distribute takes a payer, a Holder Rewards pool needs its distributor, and deep-rewards has a veto-only guardian.

create_token · deep_curve · 14 accounts, 2 signers

max_launch_fee_lamports is the most the creator accepts to pay as the launch fee (it is priced from Pyth SOL/USD at execution): above it the instruction fails with LaunchFeeAboveMax and nothing is charged.

Arguments: name string, symbol string, uri string, reward_model u8, reward_bps u16, max_launch_fee_lamports u64

create_token accounts
#AccountSignerWritable
0creatoryesyes
1confignono
2mintyesyes
3curvenoyes
4vaultnoyes
5metadatanoyes
6price_updatenono
7token_programnono
8associated_token_programnono
9token_metadata_programnono
10system_programnono
11rentnono
12event_authoritynono
13programnono
graduate · deep_curve · 26 accounts, no signer

Permissionless: no account signs. Whoever sends the transaction pays the network fee and receives nothing. Config.migration_authority is read by no instruction.

Arguments: none

graduate accounts
#AccountSignerWritable
0confignono
1fee_vaultnoyes
2mintnoyes
3curvenoyes
4vaultnoyes
5reward_recipientnono
6pool_creatornoyes
7creator_tokennoyes
8wsol_mintnono
9creator_wsolnoyes
10creator_lp_tokennoyes
11pool_statenoyes
12amm_confignono
13permissionnono
14raydium_authoritynono
15lp_mintnoyes
16token_0_vaultnoyes
17token_1_vaultnoyes
18create_pool_feenoyes
19observation_statenoyes
20cp_swap_programnono
21token_programnono
22associated_token_programnono
23system_programnono
24event_authoritynono
25programnono
distribute · deep_curve · 11 accounts, 1 signer

Permissionless. payer (anyone) signs, fronts the rent of the temporary wsol_unwrap account when the fee vault holds WSOL and gets exactly that back in the same instruction; it pays nothing else and receives nothing else. The splitter's destinations follow as remaining accounts, writable, in config order.

Arguments: none

distribute accounts
#AccountSignerWritable
0payeryesyes
1splitternoyes
2fee_vaultnoyes
3fee_vault_wsolnoyes
4wsol_unwrapnoyes
5wsol_mintnono
6fixed_share_walletnoyes
7token_programnono
8system_programnono
9event_authoritynono
10programnono
initialize_v1 · deep_amm · 20 accounts, 1 signer

A Holder Rewards pool (reward_model 2) needs one more account among the remaining accounts (after the listed ones; @deep/sdk initializeV1Ix appends it last, after any support_mint entries): the deep-rewards Distributor of (base token, quote mint), read-only. It must exist already, or the instruction fails with HolderRewardsNeedDistributor (SOL quote) or HolderRewardsNeedSolQuote (any other quote). Before the multi-quote upgrade only a SOL (WSOL) quote is accepted.

Arguments: init_amount_0 u64, init_amount_1 u64, open_time u64, creator_fee_on CreatorFeeOn, reward_model u8, reward_rate u64

initialize_v1 accounts
#AccountSignerWritable
0creatoryesyes
1amm_confignono
2authoritynono
3pool_statenoyes
4token_0_mintnono
5token_1_mintnono
6lp_mintnoyes
7creator_token_0noyes
8creator_token_1noyes
9creator_lp_tokennoyes
10token_0_vaultnoyes
11token_1_vaultnoyes
12create_pool_feenoyes
13observation_statenoyes
14token_programnono
15token_0_programnono
16token_1_programnono
17associated_token_programnono
18system_programnono
19rentnono
veto_root · deep_rewards · 3 accounts, 1 signer

authority is RewardsConfig.admin OR RewardsConfig.guardian. Discards a distributor's pending root before it activates.

Arguments: none

veto_root accounts
#AccountSignerWritable
0authorityyesno
1confignono
2distributornoyes
set_paused · deep_rewards · 2 accounts, 1 signer

authority is RewardsConfig.admin OR RewardsConfig.guardian. Pauses new roots and pushes; claims are never paused.

Arguments: paused bool

set_paused accounts
#AccountSignerWritable
0authorityyesno
1confignoyes

Error codes

deep_curve · 57 errors (6000 = 0x1770)
deep_curve error codes
CodeNameMessage
6000PausedProtocol is paused
6001UnauthorizedUnauthorized
6002ZeroAmountAmount must be greater than zero
6003CurveCompleteBonding curve is complete
6004CurveNotCompleteBonding curve is not complete
6005AlreadyGraduatedToken already graduated
6006InsufficientReservesInsufficient curve reserves
6007SlippageExceededSlippage tolerance exceeded
6008DeadlineExceededQuote deadline exceeded
6009InvalidFeeInvalid fee configuration
6010InvalidParamsInvalid parameters
6011InvalidMetadataInvalid token metadata
6012InvalidFeeRecipientFee recipient does not match config
6013OverflowArithmetic overflow
6014InsolventCurveCurve account would become insolvent
6015InsufficientTreasuryWithdrawal exceeds treasury balance above rent
6016InvalidPoolInvalid AMM pool account
6017TimelockNotElapsedConfig update timelock has not elapsed
6018NoPendingConfigUpdateNo config update is queued
6019ConfigUpdatePendingA config update is already queued; cancel it first
6020ConfigUpdateExpiredQueued config update expired; cancel and re-queue
6021LaunchFeeAboveCapLaunch fee exceeds the hard cap
6022PriceFeedInvalidInvalid Pyth price account (address, owner, layout or feed)
6023PriceNotFullyVerifiedPyth price update is not fully verified
6024PriceStalePyth price is stale
6025PriceNonPositivePyth price is not positive
6026PriceConfidenceTooWidePyth price confidence interval too wide
6027InvalidFixedShareWalletThe fixed-share wallet account is not the build-time wallet
6028FixedShareWalletNotRentExemptThe fixed-share wallet would stay below rent exemption; fund it once
6029InvalidSplitterParamsInvalid splitter parameters
6030SplitterUpdatePendingA splitter update is already queued; cancel it first
6031NoPendingSplitterUpdateNo splitter update is queued
6032BelowMinDistributeNew fee-vault revenue is below the minimum distribute amount
6033InvalidDestinationDestination accounts do not match the splitter config
6034DestinationHasOwedA removed destination still has owed lamports; distribute first
6035InvalidFeeVaultFee vault or its WSOL account does not match this build
6036InvalidVaultTokenWSOL leaves the fee vault only through distribute
6037InvalidRewardModelReward model must be 0 (Standard), 1 (Creator) or 2 (Holder)
6038HolderVaultBelowRentHolder vault would stay below rent exemption; init its distributor or wait for more fees
6039InvalidRewardRateReward rate must be 0 for Standard and 1 to 500 bps for Creator and Holder
6040RewardRateAboveMaxReward rate is above the current maximum for new launches
6041LaunchFeeAboveMaxLaunch fee in lamports is above the creator's limit (max_launch_fee_lamports)
6042GraduationImpossibleParameters under which a completed curve could not graduate (no SOL or tokens left for the pool)
6043ReferralShareAboveCapReferral share is above the 50% ceiling of DEEP's protocol fee
6044WrongQuoteWrong instruction for this curve's quote (SOL vs token), or the wrong quote mint
6045QuoteMintNotAllowedQuote mint refused by the extension / issuer-control policy
6046QuoteLaunchesDisabledNew launches are disabled for this quote asset
6047QuoteMintChangedQuote mint decimals or token program differ from its QuoteConfig
6048InvalidRoutePoolRoute pool is not a DeepSwap pool of this quote and WSOL
6049NoTwapRoute pool has no TWAP window yet: it needs two swaps at least 900 s apart within the last hour (or send SOL to grad_rent)
6050MigrationFeeBelowRentThe migration fee does not cover the graduation rent swap; send SOL to grad_rent
6051RentSlippageAboveCapRent slippage bound above the cap
6052DistributorMissingThe (token, quote) deep-rewards distributor does not exist yet
6053QuoteNotApprovedMint is not an approved quote asset (no matching QuoteConfig)
6054QuoteMintSplitOnlyAn approved quote mint leaves the fee vault only through distribute_token
6055GradRentInUsegrad_rent holds this completed token curve's graduation rent (not graduated yet)
6056StaleRoutePoolRoute pool's TWAP is stale (no swap within the last hour): it needs two swaps at least 900 s apart (or send SOL to grad_rent)
deep_amm · 31 errors (6000 = 0x1770)
deep_amm error codes
CodeNameMessage
6000NotApprovedNot approved
6001InvalidOwnerInput account owner is not the program address
6002EmptySupplyInput token account empty
6003InvalidInputInvalidInput
6004IncorrectLpMintAddress of the provided lp token mint is incorrect
6005ExceededSlippageExceeds desired slippage limit
6006ZeroTradingTokensGiven pool token amount results in zero trading tokens
6007NotSupportMintNot support token_2022 mint extension
6008InvalidVaultinvaild vault
6009InitLpAmountTooLessInit lp amount is too less(Because 100 amount lp will be locked)
6010TransferFeeCalculateNotMatchTransferFee calculate not match
6011MathOverflowMath overflow
6012InsufficientVaultInsufficient vault
6013InvalidFeeModelInvalid fee model
6014NoFeeCollectFee is zero
6015LamportsCalculateErrorLamports calculate error
6016FixedShareFeeLockedThe fixed-share fund fee (rate and owner) is fixed at build time
6017ProtocolOwnerLockedThe protocol fee owner is fixed at build time (the DEEP fee vault)
6018InvalidProtocolFeeRecipientProtocol fees can only be collected to the DEEP fee vault's token accounts
6019FeeRateAboveCapFee rates exceed the 10% hard cap
6020FeeModelMismatchFee model mismatch between the pool, its AmmConfig or the instruction
6021InvalidRewardModelReward model must be 0 (Standard), 1 (Creator) or 2 (Holder)
6022InvalidQuoteSideA V1 pool takes fees in its quote token only (WSOL when the pair has it)
6023InvalidRewardRateReward rate must be 0 for Standard and at most 5% for Creator and Holder
6024HolderRewardsNeedSolQuoteA permissionless Holder Rewards pool must be quoted in SOL, or in a token whose rewards distributor exists
6025RewardRateAboveMaxReward rate is above the current maximum for new pools
6026CreatePoolFeeAboveCapCreate-pool fee exceeds the 0.15 SOL hard cap
6027GraduationPermissionLockedThe graduation payer's permission cannot be closed
6028InvalidPoolStatusPool status can disable deposits and swaps only; withdrawals are always enabled
6029HolderRewardsNeedDistributorA Holder Rewards pool needs its deep-rewards distributor to exist first
6030ReferralShareAboveCapReferral share is above the 50% ceiling of DEEP's protocol fee
deep_rewards · 34 errors (6000 = 0x1770)
deep_rewards error codes
CodeNameMessage
6000Unauthorizedunauthorized
6001InvalidParamsinvalid parameters
6002Pausedpaused (claims are never paused)
6003InvalidMintinvalid mint
6004UnsupportedRewardMintunsupported reward mint
6005NotSolDistributornot a SOL distributor
6006NotTokenDistributornot a token distributor
6007InvalidVaultinvalid vault account
6008NoRootno root has been activated yet
6009ProofTooLongproof too long
6010InvalidProofinvalid Merkle proof
6011NothingToClaimnothing to claim
6012ExceedsMaxTotalclaim exceeds the root's total
6013RootNotMonotonicnew root total is below the active one
6014RootUnfundedroot promises more than the vault holds
6015StaleSnapshotsnapshot slot not newer than the active one, or in the future
6016NoPendingRootno pending root
6017RootNotReadypending root not yet activatable
6018PushDisabledauto-send is disabled (payout mode is CLAIM)
6019BelowPushThresholdunclaimed amount below the auto-send threshold
6020PushUnsupportedAssetauto-send is not supported for this reward asset (claim only)
6021RecipientNotEligiblerecipient cannot receive this payout
6022RecipientFrozenrecipient token account is frozen
6023PriceInvalidPyth SOL/USD price missing, stale or invalid
6024Overflowarithmetic overflow
6025ZeroAmountamount must be > 0
6026InvalidClaimStatusclaim status does not match
6027VaultShortvault cannot cover this payout
6028ConfigUpdatePendinga settings change is already queued
6029NoPendingConfigUpdateno settings change is queued
6030ConfigUpdateNotReadythe queued settings change is not yet applicable
6031ConfigUpdateExpiredthe queued settings change expired; cancel and re-queue
6032NotStraythis token is a reward asset, not stray
6033ConfigNotMigratedPendingRewardsConfig is in the old layout; run migrate_config first

Compute units

What an instruction consumes depends on its accounts (token program, new token accounts, the pool's fee model), so no measured figure is stated here. Simulate your own transaction and set the limit from its unitsConsumed; the examples in packages/sdk/examples print the units each one used. The limits below are the constants @deepliquidity/sdk exports for its heaviest instructions.

Compute-unit limits exported by the SDK
InstructionSDK constantLimit
graduateGRADUATE_COMPUTE_UNITS400,000
initialize / initialize_v1CPMM_INITIALIZE_COMPUTE_UNITS400,000
distributeDISTRIBUTE_COMPUTE_UNITS200,000

HTTP API and examples

  • OpenAPI 3.1: https://api.deepliquidity.fun/v1/openapi.json. Rate limit 300 requests per minute per IP, 120 on token stats and pool TVL; 429 carries retry-after.
  • WebSocket /v1/ws: subscribe to tokens or trades:<mint>, up to 20 topics per connection.
  • Holder Rewards: /v1/rewards/:mint (distributors and rounds) and /v1/rewards/:mint/:wallet (the wallet's cumulative amount and Merkle proof for the active root, what it already claimed), 120 requests per minute each. Proofs exist only for an active root, so a claim built from them verifies on chain.
  • packages/sdk/examples builds real transactions (buy, sell, DeepSwap swap, add and remove liquidity, creator fees) and simulates them: nothing is signed or sent.
  • Fee terms in the responses of /v1/pairs, /v1/pools and /v1/tokens (appended fields; absent until the API has read the account):
API fee fields
FieldCarries
PairSummary.feesPairFees: feeModel, buy and sell { lp, protocol, reward, total } per 1e6; on V1 also rewardModel, rewardRecipient, quoteMint
PairSummary.fees24hV1 pairs: lp, protocol and reward fees of the last 24h, base units of mint (the quote token)
PairTrade.v1V1 swaps: the exact fee parts of that swap, from its SwapFeesV1 event
PoolSummary.feesthe same PairFees for a graduation pool
PoolSummary.rewardFees24h24h reward fees of V1 swaps, lamports; a part of creatorFees24h
PoolSummary.creatorRewardFees24h / holderRewardFees24hthe same reward fees named by who receives them: the creator, or the token's holders. creatorFees24h is the older, broader figure and also counts holder rewards
TokenSummary.rewardBpsthe token's own reward rate, basis points per side (curve and graduation pool)

Differences from pump.fun and Raydium CPMM

  • pump.fun integrations: different program, layouts and events. buy is exact SOL in with min_tokens_out, sell is exact tokens in with min_sol_out, and both take a deadline.
  • Fees are taken in SOL on both sides at bps snapshotted per curve. The creator's share accrues on the curve and is claimed with claim_creator_fees.
  • Graduation creates a pool on DeepSwap at graduationPoolPda(mint) and burns all LP. CurveCompleted and Graduated are separate steps.
  • Raydium CPMM integrations: deep-amm is a fork of raydium-cp-swap with the same layouts, instructions, discriminators and swap maths, under program id HCrCy6…; swap the program id.
  • That holds for legacy pools (fee_model 0). A DEEP V1 pool (fee_model 1) keeps the layouts and the swap instructions but not cp-swap's fee maths: the fee depends on the direction and includes the pool's own reward rate. Quote it with quoteDeepSwapExactIn or quoteDeepSwapExactOut.
  • But graduation pools are not at the cp-swap pool PDA, and swap_base_output rejects an amount_out ≥ the whole reserve (InsufficientVault (6012)).
10

Social & seasons API

Seasons, share cards and pages, community previews and invite counters are public reads: no key, no sign-in, except where a line says so. Every figure they return is the chain or DEEP's indexer; a card is drawn only from facts the chain confirms.

DEEP APIhttps://api.deepliquidity.fun
GET /v1/seasons
Weekly seasons: the current one and every past one
GET /v1/seasons/:id/traders
Season board: traders by realized result
GET /v1/seasons/:id/creators
Season board: creators by graduations
GET /v1/seasons/:id/wallets/:wallet
One wallet's place on a season's boards
GET /v1/traders/:wallet/week
My week: a wallet's realized result in a season, by UTC day
GET /v1/cards/trade/:file
Share card of one trade (<signature>.png)
GET /v1/cards/token/:file
Share card of a token (<mint>.png)
GET /v1/cards/week/:file
My week card (<wallet>.png): a season's realized result by day
GET /v1/cards/season/:id/:board/:file
Season rank card (<wallet>.png): a wallet's place on a season board
GET /v1/share/t/:signature
Share page of a verified trade (Open Graph), then the token's page
GET /v1/share/token/:mint
Share page of a token (Open Graph), for link-preview bots
GET /v1/share/c/:mint
Share page of a token's public community preview (chat, voice, chart)
GET /v1/share/week/:wallet
Share page of a My week card, then the sharer's profile (?ref=)
GET /v1/share/season/:id
Share page of a season (with ?wallet&board: that wallet's rank card)

Also in the OpenAPI 3.1 document at /v1/openapi.json.

DEEP Socialhttps://social.deepliquidity.fun
GET /v1/auth/providers
The sign-in methods this server has configured; the wallet always works
GET /v1/profiles/:handle/referrals
Public invite counter (“Invited N”)
GET /v1/me/suggestions
Top traders and creators to follow (30-day boards); signed in
GET /v1/voice/live
Voice rooms live now
GET /v1/tokens/:mint/preview
A token's community, read-only, no sign-in
GET /v1/seasons/:id/referrers
The season's referrers board (bragging rights only)
GET /v1/share/u/:handle
Open Graph page of a profile for link-preview bots

Mainnet only. Writes (posting, following, messaging) need a signed-in session; see docs/SOCIAL.md in the repo.

11

Security model

  • Mint authority is revoked at launch, so supply is fixed. There is no freeze authority.
  • PDAs are validated by seeds and bump, accounts by owner and address constraints, and the fee recipient against config.
  • An emergency pause can block create, buy and sell, but never creator fee claims.
  • A solvency check asserts that the curve account always holds rent + reserves + every unclaimed fee (DEEP's, the creator's and the holders').
  • The programs are upgradeable: their code can change.

Do not use DEEP with funds you cannot afford to lose.

12

Programs & network

Curve math
Integer-only, the same test vectors on-chain and in the client
Deep Curve program
DEEP's own bonding-curve program
DeepSwap AMM
DEEP's own program, a fork of Raydium cp-swap (Apache-2.0)
Reward models
Reading from chain…
Token data, charts, pools
Read from chain by the DEEP API
Network
Solana mainnet

Whether each program is deployed on mainnet, and whether the deployed code matches the release build, is read from chain on the Status page.