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.
- 01Launch
- 02Bond
- 03Go Deep
- 04Graduate
- 05DeepSwap
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.
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.
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.
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.
Fees
Who pays, who receives, and when. Every rate below is read from the on-chain config on mainnet.
READING THE ON-CHAIN CONFIG…Fee flow
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.
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
- Add the bot to your group and make it an admin.
- An admin sends
/settings. - 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
- Trading bot
- @Deep_Terminal_Bot
- Buy alerts bot
- @dlfun_bot
- Website
- deepliquidity.fun
These are DEEP's only official accounts. The team never DMs first.
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.
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
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.
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.
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.
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.
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.
deep-amm forks Raydium cp-swap (Apache-2.0, see its NOTICE). The rest is MIT.
Integrating a swap
- 01QuoteRead the curve account and quote with the same integer math the program runs.
quoteBuyV1(c.state, solIn, curveFees(c)) - 02Set slippagePass a minimum output. The transaction fails rather than fill worse.
applySlippage(q.tokensOut, 100) - 03Build & signBuild the instruction, add it to a transaction and have the user sign.
buyIx({ user, mint, amount, … }) - 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.
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
| Account | Program | Seeds |
|---|---|---|
| BondingCurve | deep-curve | "curve", mint |
| curve vault | ATA | ATA(mint, BondingCurve PDA) |
| graduation pool | deep-curve | "raydium_pool", mint |
| Config / Treasury | deep-curve | "config" / "treasury" |
| fee vault / splitter | deep-curve | "fee_vault" / "splitter" |
| AmmConfig | deep-amm | "amm_config", u16 index big-endian |
| pool vault | deep-amm | "pool_vault", pool, mint |
| LP mint | deep-amm | "pool_lp_mint", pool |
| observation | deep-amm | "observation", pool |
Detecting launches, completion and graduation
- 01Launchcreate_token emits TokenCreated (and LaunchFeeCharged when a launch fee is set). Or watch deep-curve accounts with the BondingCurve discriminator at offset 0.
- 02BondEvery buy and sell emits TradeEvent with the reserves after the trade. Progress = (curve_supply − real_token_reserves) / curve_supply.
- 03CompleteThe buy that sells the last curve token emits CurveCompleted and sets complete (offset 134). Curve trades then fail with CurveComplete (6003).
- 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.
- 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.
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.
| Offset | Field | Type |
|---|---|---|
| 0 | discriminator [155, 12, 170, 224, 30, 250, 204, 130] | [u8; 8] |
| 8 | admin | pubkey |
| 40 | pending_admin | pubkey |
| 72 | fee_recipient | pubkey |
| 104 | migration_authority | pubkey |
| 136 | protocol_fee_bps | u16 |
| 138 | creator_fee_bps | u16 |
| 140 | migration_fee_bps | u16 |
| 142 | initial_virtual_sol | u64 |
| 150 | initial_virtual_token | u64 |
| 158 | curve_supply | u64 |
| 166 | token_total_supply | u64 |
| 174 | decimals | u8 |
| 175 | paused | bool |
| 176 | bump | u8 |
| 177 | raydium_amm_config | pubkey |
| 209 | timelock_seconds | u32 |
| 213 | launch_fee_usd_cents | u16 |
| 215 | sell_protocol_fee_bps | u16 |
| 217 | max_reward_bps | u16 |
| 219 | referral_share_bps | u16 |
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.
| Offset | Field | Type |
|---|---|---|
| 0 | discriminator [236, 19, 41, 255, 130, 78, 147, 172] | [u8; 8] |
| 8 | mint | pubkey |
| 40 | creator | pubkey |
| 72 | name | string |
| var. | symbol | string |
| var. | uri | string |
| var. | curve_supply | u64 |
| var. | token_total_supply | u64 |
| var. | reward_model | u8 |
| var. | reward_bps | u16 |
| var. | quote_mint | pubkey |
Fee maths and rounding
# 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 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 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
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
| # | Account | Signer | Writable |
|---|---|---|---|
| 0 | creator | yes | yes |
| 1 | config | no | no |
| 2 | mint | yes | yes |
| 3 | curve | no | yes |
| 4 | vault | no | yes |
| 5 | metadata | no | yes |
| 6 | price_update | no | no |
| 7 | token_program | no | no |
| 8 | associated_token_program | no | no |
| 9 | token_metadata_program | no | no |
| 10 | system_program | no | no |
| 11 | rent | no | no |
| 12 | event_authority | no | no |
| 13 | program | no | no |
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
| # | Account | Signer | Writable |
|---|---|---|---|
| 0 | config | no | no |
| 1 | fee_vault | no | yes |
| 2 | mint | no | yes |
| 3 | curve | no | yes |
| 4 | vault | no | yes |
| 5 | reward_recipient | no | no |
| 6 | pool_creator | no | yes |
| 7 | creator_token | no | yes |
| 8 | wsol_mint | no | no |
| 9 | creator_wsol | no | yes |
| 10 | creator_lp_token | no | yes |
| 11 | pool_state | no | yes |
| 12 | amm_config | no | no |
| 13 | permission | no | no |
| 14 | raydium_authority | no | no |
| 15 | lp_mint | no | yes |
| 16 | token_0_vault | no | yes |
| 17 | token_1_vault | no | yes |
| 18 | create_pool_fee | no | yes |
| 19 | observation_state | no | yes |
| 20 | cp_swap_program | no | no |
| 21 | token_program | no | no |
| 22 | associated_token_program | no | no |
| 23 | system_program | no | no |
| 24 | event_authority | no | no |
| 25 | program | no | no |
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
| # | Account | Signer | Writable |
|---|---|---|---|
| 0 | payer | yes | yes |
| 1 | splitter | no | yes |
| 2 | fee_vault | no | yes |
| 3 | fee_vault_wsol | no | yes |
| 4 | wsol_unwrap | no | yes |
| 5 | wsol_mint | no | no |
| 6 | fixed_share_wallet | no | yes |
| 7 | token_program | no | no |
| 8 | system_program | no | no |
| 9 | event_authority | no | no |
| 10 | program | no | no |
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
| # | Account | Signer | Writable |
|---|---|---|---|
| 0 | creator | yes | yes |
| 1 | amm_config | no | no |
| 2 | authority | no | no |
| 3 | pool_state | no | yes |
| 4 | token_0_mint | no | no |
| 5 | token_1_mint | no | no |
| 6 | lp_mint | no | yes |
| 7 | creator_token_0 | no | yes |
| 8 | creator_token_1 | no | yes |
| 9 | creator_lp_token | no | yes |
| 10 | token_0_vault | no | yes |
| 11 | token_1_vault | no | yes |
| 12 | create_pool_fee | no | yes |
| 13 | observation_state | no | yes |
| 14 | token_program | no | no |
| 15 | token_0_program | no | no |
| 16 | token_1_program | no | no |
| 17 | associated_token_program | no | no |
| 18 | system_program | no | no |
| 19 | rent | no | no |
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
| # | Account | Signer | Writable |
|---|---|---|---|
| 0 | authority | yes | no |
| 1 | config | no | no |
| 2 | distributor | no | yes |
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
| # | Account | Signer | Writable |
|---|---|---|---|
| 0 | authority | yes | no |
| 1 | config | no | yes |
Error codes
deep_curve · 57 errors (6000 = 0x1770)
| Code | Name | Message |
|---|---|---|
| 6000 | Paused | Protocol is paused |
| 6001 | Unauthorized | Unauthorized |
| 6002 | ZeroAmount | Amount must be greater than zero |
| 6003 | CurveComplete | Bonding curve is complete |
| 6004 | CurveNotComplete | Bonding curve is not complete |
| 6005 | AlreadyGraduated | Token already graduated |
| 6006 | InsufficientReserves | Insufficient curve reserves |
| 6007 | SlippageExceeded | Slippage tolerance exceeded |
| 6008 | DeadlineExceeded | Quote deadline exceeded |
| 6009 | InvalidFee | Invalid fee configuration |
| 6010 | InvalidParams | Invalid parameters |
| 6011 | InvalidMetadata | Invalid token metadata |
| 6012 | InvalidFeeRecipient | Fee recipient does not match config |
| 6013 | Overflow | Arithmetic overflow |
| 6014 | InsolventCurve | Curve account would become insolvent |
| 6015 | InsufficientTreasury | Withdrawal exceeds treasury balance above rent |
| 6016 | InvalidPool | Invalid AMM pool account |
| 6017 | TimelockNotElapsed | Config update timelock has not elapsed |
| 6018 | NoPendingConfigUpdate | No config update is queued |
| 6019 | ConfigUpdatePending | A config update is already queued; cancel it first |
| 6020 | ConfigUpdateExpired | Queued config update expired; cancel and re-queue |
| 6021 | LaunchFeeAboveCap | Launch fee exceeds the hard cap |
| 6022 | PriceFeedInvalid | Invalid Pyth price account (address, owner, layout or feed) |
| 6023 | PriceNotFullyVerified | Pyth price update is not fully verified |
| 6024 | PriceStale | Pyth price is stale |
| 6025 | PriceNonPositive | Pyth price is not positive |
| 6026 | PriceConfidenceTooWide | Pyth price confidence interval too wide |
| 6027 | InvalidFixedShareWallet | The fixed-share wallet account is not the build-time wallet |
| 6028 | FixedShareWalletNotRentExempt | The fixed-share wallet would stay below rent exemption; fund it once |
| 6029 | InvalidSplitterParams | Invalid splitter parameters |
| 6030 | SplitterUpdatePending | A splitter update is already queued; cancel it first |
| 6031 | NoPendingSplitterUpdate | No splitter update is queued |
| 6032 | BelowMinDistribute | New fee-vault revenue is below the minimum distribute amount |
| 6033 | InvalidDestination | Destination accounts do not match the splitter config |
| 6034 | DestinationHasOwed | A removed destination still has owed lamports; distribute first |
| 6035 | InvalidFeeVault | Fee vault or its WSOL account does not match this build |
| 6036 | InvalidVaultToken | WSOL leaves the fee vault only through distribute |
| 6037 | InvalidRewardModel | Reward model must be 0 (Standard), 1 (Creator) or 2 (Holder) |
| 6038 | HolderVaultBelowRent | Holder vault would stay below rent exemption; init its distributor or wait for more fees |
| 6039 | InvalidRewardRate | Reward rate must be 0 for Standard and 1 to 500 bps for Creator and Holder |
| 6040 | RewardRateAboveMax | Reward rate is above the current maximum for new launches |
| 6041 | LaunchFeeAboveMax | Launch fee in lamports is above the creator's limit (max_launch_fee_lamports) |
| 6042 | GraduationImpossible | Parameters under which a completed curve could not graduate (no SOL or tokens left for the pool) |
| 6043 | ReferralShareAboveCap | Referral share is above the 50% ceiling of DEEP's protocol fee |
| 6044 | WrongQuote | Wrong instruction for this curve's quote (SOL vs token), or the wrong quote mint |
| 6045 | QuoteMintNotAllowed | Quote mint refused by the extension / issuer-control policy |
| 6046 | QuoteLaunchesDisabled | New launches are disabled for this quote asset |
| 6047 | QuoteMintChanged | Quote mint decimals or token program differ from its QuoteConfig |
| 6048 | InvalidRoutePool | Route pool is not a DeepSwap pool of this quote and WSOL |
| 6049 | NoTwap | Route 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) |
| 6050 | MigrationFeeBelowRent | The migration fee does not cover the graduation rent swap; send SOL to grad_rent |
| 6051 | RentSlippageAboveCap | Rent slippage bound above the cap |
| 6052 | DistributorMissing | The (token, quote) deep-rewards distributor does not exist yet |
| 6053 | QuoteNotApproved | Mint is not an approved quote asset (no matching QuoteConfig) |
| 6054 | QuoteMintSplitOnly | An approved quote mint leaves the fee vault only through distribute_token |
| 6055 | GradRentInUse | grad_rent holds this completed token curve's graduation rent (not graduated yet) |
| 6056 | StaleRoutePool | Route 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)
| Code | Name | Message |
|---|---|---|
| 6000 | NotApproved | Not approved |
| 6001 | InvalidOwner | Input account owner is not the program address |
| 6002 | EmptySupply | Input token account empty |
| 6003 | InvalidInput | InvalidInput |
| 6004 | IncorrectLpMint | Address of the provided lp token mint is incorrect |
| 6005 | ExceededSlippage | Exceeds desired slippage limit |
| 6006 | ZeroTradingTokens | Given pool token amount results in zero trading tokens |
| 6007 | NotSupportMint | Not support token_2022 mint extension |
| 6008 | InvalidVault | invaild vault |
| 6009 | InitLpAmountTooLess | Init lp amount is too less(Because 100 amount lp will be locked) |
| 6010 | TransferFeeCalculateNotMatch | TransferFee calculate not match |
| 6011 | MathOverflow | Math overflow |
| 6012 | InsufficientVault | Insufficient vault |
| 6013 | InvalidFeeModel | Invalid fee model |
| 6014 | NoFeeCollect | Fee is zero |
| 6015 | LamportsCalculateError | Lamports calculate error |
| 6016 | FixedShareFeeLocked | The fixed-share fund fee (rate and owner) is fixed at build time |
| 6017 | ProtocolOwnerLocked | The protocol fee owner is fixed at build time (the DEEP fee vault) |
| 6018 | InvalidProtocolFeeRecipient | Protocol fees can only be collected to the DEEP fee vault's token accounts |
| 6019 | FeeRateAboveCap | Fee rates exceed the 10% hard cap |
| 6020 | FeeModelMismatch | Fee model mismatch between the pool, its AmmConfig or the instruction |
| 6021 | InvalidRewardModel | Reward model must be 0 (Standard), 1 (Creator) or 2 (Holder) |
| 6022 | InvalidQuoteSide | A V1 pool takes fees in its quote token only (WSOL when the pair has it) |
| 6023 | InvalidRewardRate | Reward rate must be 0 for Standard and at most 5% for Creator and Holder |
| 6024 | HolderRewardsNeedSolQuote | A permissionless Holder Rewards pool must be quoted in SOL, or in a token whose rewards distributor exists |
| 6025 | RewardRateAboveMax | Reward rate is above the current maximum for new pools |
| 6026 | CreatePoolFeeAboveCap | Create-pool fee exceeds the 0.15 SOL hard cap |
| 6027 | GraduationPermissionLocked | The graduation payer's permission cannot be closed |
| 6028 | InvalidPoolStatus | Pool status can disable deposits and swaps only; withdrawals are always enabled |
| 6029 | HolderRewardsNeedDistributor | A Holder Rewards pool needs its deep-rewards distributor to exist first |
| 6030 | ReferralShareAboveCap | Referral share is above the 50% ceiling of DEEP's protocol fee |
deep_rewards · 34 errors (6000 = 0x1770)
| Code | Name | Message |
|---|---|---|
| 6000 | Unauthorized | unauthorized |
| 6001 | InvalidParams | invalid parameters |
| 6002 | Paused | paused (claims are never paused) |
| 6003 | InvalidMint | invalid mint |
| 6004 | UnsupportedRewardMint | unsupported reward mint |
| 6005 | NotSolDistributor | not a SOL distributor |
| 6006 | NotTokenDistributor | not a token distributor |
| 6007 | InvalidVault | invalid vault account |
| 6008 | NoRoot | no root has been activated yet |
| 6009 | ProofTooLong | proof too long |
| 6010 | InvalidProof | invalid Merkle proof |
| 6011 | NothingToClaim | nothing to claim |
| 6012 | ExceedsMaxTotal | claim exceeds the root's total |
| 6013 | RootNotMonotonic | new root total is below the active one |
| 6014 | RootUnfunded | root promises more than the vault holds |
| 6015 | StaleSnapshot | snapshot slot not newer than the active one, or in the future |
| 6016 | NoPendingRoot | no pending root |
| 6017 | RootNotReady | pending root not yet activatable |
| 6018 | PushDisabled | auto-send is disabled (payout mode is CLAIM) |
| 6019 | BelowPushThreshold | unclaimed amount below the auto-send threshold |
| 6020 | PushUnsupportedAsset | auto-send is not supported for this reward asset (claim only) |
| 6021 | RecipientNotEligible | recipient cannot receive this payout |
| 6022 | RecipientFrozen | recipient token account is frozen |
| 6023 | PriceInvalid | Pyth SOL/USD price missing, stale or invalid |
| 6024 | Overflow | arithmetic overflow |
| 6025 | ZeroAmount | amount must be > 0 |
| 6026 | InvalidClaimStatus | claim status does not match |
| 6027 | VaultShort | vault cannot cover this payout |
| 6028 | ConfigUpdatePending | a settings change is already queued |
| 6029 | NoPendingConfigUpdate | no settings change is queued |
| 6030 | ConfigUpdateNotReady | the queued settings change is not yet applicable |
| 6031 | ConfigUpdateExpired | the queued settings change expired; cancel and re-queue |
| 6032 | NotStray | this token is a reward asset, not stray |
| 6033 | ConfigNotMigrated | PendingRewardsConfig 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.
| Instruction | SDK constant | Limit |
|---|---|---|
| graduate | GRADUATE_COMPUTE_UNITS | 400,000 |
| initialize / initialize_v1 | CPMM_INITIALIZE_COMPUTE_UNITS | 400,000 |
| distribute | DISTRIBUTE_COMPUTE_UNITS | 200,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 totokensortrades:<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):
| Field | Carries |
|---|---|
| PairSummary.fees | PairFees: feeModel, buy and sell { lp, protocol, reward, total } per 1e6; on V1 also rewardModel, rewardRecipient, quoteMint |
| PairSummary.fees24h | V1 pairs: lp, protocol and reward fees of the last 24h, base units of mint (the quote token) |
| PairTrade.v1 | V1 swaps: the exact fee parts of that swap, from its SwapFeesV1 event |
| PoolSummary.fees | the same PairFees for a graduation pool |
| PoolSummary.rewardFees24h | 24h reward fees of V1 swaps, lamports; a part of creatorFees24h |
| PoolSummary.creatorRewardFees24h / holderRewardFees24h | the 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.rewardBps | the 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)).
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.
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.
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.
https://api.deepliquidity.funGET /v1/seasonsGET /v1/seasons/:id/tradersGET /v1/seasons/:id/creatorsGET /v1/seasons/:id/wallets/:walletGET /v1/traders/:wallet/weekGET /v1/cards/trade/:fileGET /v1/cards/token/:fileGET /v1/cards/week/:fileGET /v1/cards/season/:id/:board/:fileGET /v1/share/t/:signatureGET /v1/share/token/:mintGET /v1/share/c/:mintGET /v1/share/week/:walletGET /v1/share/season/:idAlso in the OpenAPI 3.1 document at /v1/openapi.json.
https://social.deepliquidity.funGET /v1/auth/providersGET /v1/profiles/:handle/referralsGET /v1/me/suggestionsGET /v1/voice/liveGET /v1/tokens/:mint/previewGET /v1/seasons/:id/referrersGET /v1/share/u/:handleMainnet only. Writes (posting, following, messaging) need a signed-in session; see docs/SOCIAL.md in the repo.