Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: update PumpSwap to use effective quote reserves for pricing
nirholas0563874f6c8d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex de0059d97..ad2c9404a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,11 @@Public history for [three.ws](https://three.ws), newest first. New pages come from `added` dates in data/pages.json; everything else is curated in data/changelog.json. Also available as [JSON](https://three.ws/changelog.json) and [RSS](https://three.ws/changelog.xml), live at [three.ws/changelog](https://three.ws/changelog).+## 2026-07-20++- **Bonding curve progress reads correctly again in the MCP tools** — The agent tools that report a coin's bonding curve were showing every coin as 0% to graduation with zero reserves and a zero price. Pump renamed these on-chain fields when USDC became a possible trading pair, and the tools were still reading the old names, which quietly resolved to zero instead of failing. They now read the current fields, so graduation progress, reserves, and price reflect the real curve. Verified against live coins reading 2% through 70% to graduation. `[fix]`+- **Graduated-coin prices now match PumpSwap exactly** — PumpSwap changed how pool prices are calculated: a pool can now hold quote-side liquidity that is not sitting in its vault, and prices have to count it. Every place we price a graduated coin has been updated to match, so quotes, price impact, market caps, and agent trade fills line up with what actually executes on-chain. Coins that have not graduated are unaffected, and the change is exact rather than approximate: where a pool carries none of this liquidity, prices are identical to before. `[fix, infra]`+## 2026-07-19- **Agent Sniper: Autonomous On-Chain Trading** (`/docs/agent-sniper`) — How three.ws agents trade autonomously: the new-mint trigger, entry gates, the simulate-the-sell trade firewall, the hash-chained decision ledger, the exit ladder, and the case study of the first live +42% trade.diff --git a/api/_lib/pump.js b/api/_lib/pump.jsindex 306a387b2..ef5bfe9c5 100644--- a/api/_lib/pump.js+++ b/api/_lib/pump.js@@ -30,7 +30,10 @@ import { PUMP_PROGRAM_ID } from './solana/programs.js';{const _err = console.error.bind(console);console.error = (...args) => {- if (typeof args[0] === 'string' && /Server responded with \d+ .*Retrying after/.test(args[0])) {+ if (+ typeof args[0] === 'string' &&+ /Server responded with \d+ .*Retrying after/.test(args[0])+ ) {console.warn(...args);} else {_err(...args);@@ -249,6 +252,9 @@ export function txInvokesPumpProgram(tx) {// return everything `buyQuoteInput` / `sellBaseInput` need to price a swap.// Quote currency is WSOL on the canonical pool.//+// Returns BOTH `quoteReserve` (raw vault balance) and `effectiveQuoteReserve`+// (raw + virtual). See the note at the reserve decode below for which to use.+//// Throws { status: 404, code: 'pool_not_found' } if no pool exists yet.export async function getAmmPoolState({ network = 'mainnet', mint, quoteMint = null } = {}) {if (!mint) throw Object.assign(new Error('mint required'), { status: 400 });@@ -261,7 +267,8 @@ export async function getAmmPoolState({ network = 'mainnet', mint, quoteMint = n]);const connection = getConnection({ network });const mintPk = mint instanceof PublicKey ? mint : new PublicKey(mint);- const quoteMintPk = quoteMint instanceof PublicKey ? quoteMint : (quoteMint ? new PublicKey(quoteMint) : null);+ const quoteMintPk =+ quoteMint instanceof PublicKey ? quoteMint : quoteMint ? new PublicKey(quoteMint) : null;const poolKey = quoteMintPk? canonicalPumpPoolPda(mintPk, quoteMintPk): canonicalPumpPoolPda(mintPk);@@ -294,6 +301,22 @@ export async function getAmmPoolState({ network = 'mainnet', mint, quoteMint = nconst baseReserve = new BN(baseAcc.amount.toString());const quoteReserve = new BN(quoteAcc.amount.toString());+ // PumpSwap prices against EFFECTIVE quote reserves, not the raw vault balance:+ // effective = quote_vault_balance + pool.virtual_quote_reserves+ // The field shipped 2026-07-15 at 0 on every pool and went non-zero for+ // launchpad coins on 2026-07-20. Non-launchpad pools keep it at 0, where+ // effective == raw and quotes are unchanged.+ //+ // Two consumers, two different values — do not mix them up:+ // · SDK quote fns (buyQuoteInput/sellBaseInput) take `virtualQuoteReserves`+ // as its OWN argument and add it internally. Pass the raw `quoteReserve`+ // alongside it; passing an already-summed reserve double-counts.+ // · Our own spot-price / price-impact math takes `effectiveQuoteReserve`.+ // A pool decoded by an SDK older than 1.19.0 has no field; default to 0 so+ // this stays correct rather than NaN.+ const virtualQuoteReserves = new BN((pool.virtualQuoteReserves ?? 0).toString());+ const effectiveQuoteReserve = quoteReserve.add(virtualQuoteReserves);+const offline = new PumpAmmSdk();const [globalConfigInfo, feeConfigInfo] = await Promise.all([connection.getAccountInfo((await import('@pump-fun/pump-swap-sdk')).GLOBAL_CONFIG_PDA),@@ -310,6 +333,8 @@ export async function getAmmPoolState({ network = 'mainnet', mint, quoteMint = npool,baseReserve,quoteReserve,+ virtualQuoteReserves,+ effectiveQuoteReserve,baseMintAccount,globalConfig,feeConfig,diff --git a/api/_lib/trade-firewall.js b/api/_lib/trade-firewall.jsindex 614f20844..c934f635f 100644--- a/api/_lib/trade-firewall.js+++ b/api/_lib/trade-firewall.js@@ -171,7 +171,11 @@ async function checkVenue(network, mintPk, cacheKey) {try {const amm = await getAmmPoolState({ network, mint: mintPk });const baseRes = bigOf(amm.baseReserve);- const quoteRes = bigOf(amm.quoteReserve);+ // Liquidity is judged on EFFECTIVE quote reserves (vault + virtual):+ // a launchpad pool can hold real quote-side depth in its virtual+ // reserves, and gating on the raw vault alone would fail a tradable+ // pool as `pool_reserves_empty`.+ const quoteRes = bigOf(amm.effectiveQuoteReserve);if (baseRes <= 0n || quoteRes <= 0n) {return result('venue', 'fail', 'pool_reserves_empty', {base_reserve: baseRes.toString(),diff --git a/api/agents/pumpfun/[action].js b/api/agents/pumpfun/[action].jsindex 332cb2fae..31a5b2b60 100644--- a/api/agents/pumpfun/[action].js+++ b/api/agents/pumpfun/[action].js@@ -13,7 +13,17 @@*/import { getSessionUser, authenticateBearer, extractBearer } from '../../_lib/auth.js';-import { cors, json, method, readJson, wrap, error, rateLimited, serverError, respondError } from '../../_lib/http.js';+import {+ cors,+ json,+ method,+ readJson,+ wrap,+ error,+ rateLimited,+ serverError,+ respondError,+} from '../../_lib/http.js';import { limits, clientIp } from '../../_lib/rate-limit.js';import { loadAgentForSigning, solanaConnection } from '../../_lib/agent-pumpfun.js';import { submitProtected } from '../../_lib/execution-engine.js';@@ -143,7 +153,12 @@ async function handleBuy(req, res, id) {if (quote.isUsdc) {if (body.usdcAmount == null)- return error(res, 400, 'validation_error', 'usdcAmount required for USDC-paired coin');+ return error(+ res,+ 400,+ 'validation_error',+ 'usdcAmount required for USDC-paired coin',+ );const quoteMintPk = new PublicKey(quote.quoteMint);// quote_token_program must match the quote mint's owner (USDC is SPL// Token today; read it from chain so a future quote can't break us).@@ -195,7 +210,12 @@ async function handleBuy(req, res, id) {quoteMint: quoteMintPk,});if (!tokenAmount.gt(new BN(0)))- return error(res, 400, 'amount_too_small', 'usdcAmount too small to buy any tokens');+ return error(+ res,+ 400,+ 'amount_too_small',+ 'usdcAmount too small to buy any tokens',+ );instructions = await sdk.buyV2Instructions({global,bondingCurveAccountInfo: state.bondingCurveAccountInfo,@@ -212,7 +232,12 @@ async function handleBuy(req, res, id) {} else {// SOL-paired buy (unchanged behaviour).if (body.solAmount == null)- return error(res, 400, 'validation_error', 'solAmount required for SOL-paired coin');+ return error(+ res,+ 400,+ 'validation_error',+ 'solAmount required for SOL-paired coin',+ );quoteAtomics = new BN(Math.floor(body.solAmount * 1e9));const expected = getBuyTokenAmountFromSolAmount({global,@@ -266,7 +291,12 @@ async function handleBuy(req, res, id) {try {// Protected send: priority fee + CU estimate, rebroadcast with blockhash// refresh until it lands, hard throw on an on-chain revert.- ({ signature } = await submitProtected({ network: body.network, connection: conn, payer: keypair, instructions }));+ ({ signature } = await submitProtected({+ network: body.network,+ connection: conn,+ payer: keypair,+ instructions,+ }));} catch (err) {console.error('[pumpfun/buy] send failed', err);if (reservation) await releaseSpend(reservation.reservationId);@@ -720,7 +750,12 @@ async function handlePay(req, res, id) {try {// Protected send: priority fee + CU estimate, rebroadcast with blockhash// refresh until it lands, hard throw on an on-chain revert.- ({ signature } = await submitProtected({ network: body.network, connection: conn, payer: keypair, instructions }));+ ({ signature } = await submitProtected({+ network: body.network,+ connection: conn,+ payer: keypair,+ instructions,+ }));} catch (err) {console.error(`[pumpfun/pay] ${body.action} send failed`, err);return serverError(res, 502, 'rpc_error', err);@@ -827,7 +862,6 @@ async function handlePortfolio(req, res, id) {]);const online = new OnlinePumpSdk(conn);const onlineAmm = new ammMod.OnlinePumpAmmSdk(conn);- const ammSdk = new ammMod.PumpAmmSdk();let global;try {global = await online.fetchGlobal();@@ -912,27 +946,26 @@ async function handlePortfolio(req, res, id) {poolKey,keypair.publicKey,);- const result = ammSdk.sellAutocompleteQuoteFromBase- ? ammSdk.sellAutocompleteQuoteFromBase(- swapState,- new BN(out.token_balance),- 0,- )- : null;- if (result && result.uiQuote != null) {- out.estimated_sol_value = lamportsToSol(result.uiQuote);- } else {- const pool = swapState.pool;- const baseReserve = pool.baseReserve || pool.virtualBaseReserves;- const quoteReserve = pool.quoteReserve || pool.virtualQuoteReserves;- if (baseReserve && quoteReserve) {- const bal = new BN(out.token_balance);- const out_q = bal.mul(quoteReserve).div(baseReserve.add(bal));- out.estimated_sol_value = lamportsToSol(out_q);- } else {- out.estimated_sol_value = null;- }- }+ // Fee-aware quote off the live pool. Reserves come from the+ // swap state (the vault balances); `virtualQuoteReserves`+ // is added to the quote side by the SDK itself, so it is+ // passed separately rather than pre-summed.+ const result = ammMod.sellBaseInput({+ base: new BN(out.token_balance),+ slippage: 0,+ baseReserve: swapState.poolBaseAmount,+ quoteReserve: swapState.poolQuoteAmount,+ virtualQuoteReserves: swapState.pool.virtualQuoteReserves,+ baseMintAccount: swapState.baseMintAccount,+ baseMint: swapState.baseMint,+ coinCreator: swapState.pool.coinCreator,+ creator: swapState.pool.creator,+ feeConfig: swapState.feeConfig,+ globalConfig: swapState.globalConfig,+ });+ const expectedQuote = result?.uiQuote ?? result?.minQuote ?? null;+ out.estimated_sol_value =+ expectedQuote != null ? lamportsToSol(expectedQuote) : null;out.venue = 'amm';out.pool = poolKey.toBase58();} catch (e) {@@ -1113,7 +1146,12 @@ async function handleSell(req, res, id) {try {// Protected send: priority fee + CU estimate, rebroadcast with blockhash// refresh until it lands, hard throw on an on-chain revert.- ({ signature } = await submitProtected({ network: body.network, connection: conn, payer: keypair, instructions }));+ ({ signature } = await submitProtected({+ network: body.network,+ connection: conn,+ payer: keypair,+ instructions,+ }));} catch (err) {console.error('[pumpfun/sell] send failed', err);return serverError(res, 502, 'rpc_error', err);@@ -1236,7 +1274,7 @@ async function handleSwap(req, res, id) {}// AMM path.- const { PumpAmmSdk, OnlinePumpAmmSdk, canonicalPumpPoolPda } =+ const { PumpAmmSdk, OnlinePumpAmmSdk, canonicalPumpPoolPda, sellBaseInput } =await import('@pump-fun/pump-swap-sdk');const BN = (await import('bn.js')).default;const amm = new PumpAmmSdk();@@ -1328,15 +1366,28 @@ async function handleSwap(req, res, id) {const baseAmount = new BN(body.tokenAmount);instructions = await amm.sellBaseInput(swapState, baseAmount, slippage);quotedAmount = { base_amount: baseAmount.toString() };- // Best-effort expected quote-out via constant-product on pool reserves.+ // Expected quote-out from the SDK's own pricing. Reserves come from the+ // swap state (the vault balances); the pool's `virtualQuoteReserves` is+ // added to the quote side by the SDK, so it is passed separately rather+ // than pre-summed into `quoteReserve`.try {- const pool = swapState.pool || {};- const baseReserve = pool.baseReserve || pool.virtualBaseReserves;- const quoteReserve = pool.quoteReserve || pool.virtualQuoteReserves;- if (baseReserve && quoteReserve) {- const out = baseAmount.mul(quoteReserve).div(baseReserve.add(baseAmount));+ const r = sellBaseInput({+ base: baseAmount,+ slippage: 0,+ baseReserve: swapState.poolBaseAmount,+ quoteReserve: swapState.poolQuoteAmount,+ virtualQuoteReserves: swapState.pool.virtualQuoteReserves,+ baseMintAccount: swapState.baseMintAccount,+ baseMint: swapState.baseMint,+ coinCreator: swapState.pool.coinCreator,+ creator: swapState.pool.creator,+ feeConfig: swapState.feeConfig,+ globalConfig: swapState.globalConfig,+ });+ const expected = r?.uiQuote ?? r?.minQuote ?? null;+ if (expected != null) {quotedAmount[quote.isUsdc ? 'expectedUsdcAtomics' : 'expectedSolLamports'] =- out.toString();+ expected.toString();}} catch (e) {console.error('[pumpfun/swap] sell quote failed', e);@@ -1368,7 +1419,12 @@ async function handleSwap(req, res, id) {try {// Protected send: priority fee + CU estimate, rebroadcast with blockhash// refresh until it lands, hard throw on an on-chain revert.- ({ signature } = await submitProtected({ network: body.network, connection: conn, payer: keypair, instructions }));+ ({ signature } = await submitProtected({+ network: body.network,+ connection: conn,+ payer: keypair,+ instructions,+ }));} catch (err) {console.error('[pumpfun/swap] send failed', err);if (reservation) await releaseSpend(reservation.reservationId);diff --git a/api/agents/solana-trade.js b/api/agents/solana-trade.jsindex 20677918d..8c69a1f62 100644--- a/api/agents/solana-trade.js+++ b/api/agents/solana-trade.js@@ -138,9 +138,12 @@ export async function quoteTrade({ conn, side, mintPk, mintStr, network, solAmou// Graduated → AMM pool.const amm = await loadAmm(network, mintPk);const sdk = await import('@pump-fun/pump-swap-sdk');+ // `virtualQuoteReserves` is added to `quoteReserve` by the SDK itself —+ // pass the raw reserve here; our own impact math uses the summed value.const r = sdk.buyQuoteInput({quote: new amm.BN(lamportsIn.toString()), slippage: slippagePercentFromBps(slippageBps),- baseReserve: amm.baseReserve, quoteReserve: amm.quoteReserve, globalConfig: amm.globalConfig,+ baseReserve: amm.baseReserve, quoteReserve: amm.quoteReserve,+ virtualQuoteReserves: amm.virtualQuoteReserves, globalConfig: amm.globalConfig,baseMintAccount: amm.baseMintAccount, baseMint: amm.pool.baseMint,coinCreator: amm.pool.coinCreator, creator: amm.pool.creator, feeConfig: amm.feeConfig,});@@ -153,7 +156,7 @@ export async function quoteTrade({ conn, side, mintPk, mintStr, network, solAmououtAsset: 'TOKEN', outAtomics: tokensOut.toString(), outUi: Number(tokensOut) / 10 ** decimals,minOutAtomics: applySlippageFloor(tokensOut, slippageBps).toString(),minOutUi: Number(applySlippageFloor(tokensOut, slippageBps)) / 10 ** decimals,- decimals, priceImpactPct: derivePriceImpact(amm.quoteReserve, amm.baseReserve, lamportsIn, tokensOut),+ decimals, priceImpactPct: derivePriceImpact(amm.effectiveQuoteReserve, amm.baseReserve, lamportsIn, tokensOut),};}@@ -180,7 +183,8 @@ export async function quoteTrade({ conn, side, mintPk, mintStr, network, solAmouconst sdk = await import('@pump-fun/pump-swap-sdk');const r = sdk.sellBaseInput({base: new amm.BN(baseUnits.toString()), slippage: slippagePercentFromBps(slippageBps),- baseReserve: amm.baseReserve, quoteReserve: amm.quoteReserve, globalConfig: amm.globalConfig,+ baseReserve: amm.baseReserve, quoteReserve: amm.quoteReserve,+ virtualQuoteReserves: amm.virtualQuoteReserves, globalConfig: amm.globalConfig,baseMintAccount: amm.baseMintAccount, baseMint: amm.pool.baseMint,coinCreator: amm.pool.coinCreator, creator: amm.pool.creator, feeConfig: amm.feeConfig,});@@ -191,7 +195,7 @@ export async function quoteTrade({ conn, side, mintPk, mintStr, network, solAmouinAsset: 'TOKEN', inAtomics: baseUnits.toString(), inUi: Number(baseUnits) / 10 ** decimals,outAsset: 'SOL', outAtomics: lamportsOut.toString(), outUi: lamportsToSol(lamportsOut),minOutAtomics: minLamportsOut.toString(), minOutUi: lamportsToSol(minLamportsOut),- decimals, priceImpactPct: derivePriceImpact(amm.baseReserve, amm.quoteReserve, baseUnits, lamportsOut),+ decimals, priceImpactPct: derivePriceImpact(amm.baseReserve, amm.effectiveQuoteReserve, baseUnits, lamportsOut),};}diff --git a/api/cron/[name].js b/api/cron/[name].jsindex a53050107..d29224dff 100644--- a/api/cron/[name].js+++ b/api/cron/[name].js@@ -1167,6 +1167,10 @@ async function pumpStatsSnapshotMint({ network, mint }) {pool: amm.poolKey.toString(),base_reserve: amm.baseReserve.toString(),quote_reserve: amm.quoteReserve.toString(),+ // Quotes price against vault + virtual; expose both so a consumer+ // of this snapshot can reproduce the same numbers.+ virtual_quote_reserves: amm.virtualQuoteReserves.toString(),+ effective_quote_reserve: amm.effectiveQuoteReserve.toString(),lp_supply: amm.pool.lpSupply?.toString?.() ?? null,};} catch (e) {diff --git a/api/pump-fun-mcp.js b/api/pump-fun-mcp.jsindex 3bf08fdfd..23d8d9a72 100644--- a/api/pump-fun-mcp.js+++ b/api/pump-fun-mcp.js@@ -53,6 +53,21 @@ import { getSolPriceUsd } from '../src/shared/usd-price.js';const TOTAL_PUMP_TOKEN_SUPPLY = 1_000_000_000; // 1B pump.fun standardconst GRADUATION_REAL_SOL_LAMPORTS = 85_000_000_000n; // ~85 SOL — heuristic+// Read a bonding curve's quote-side reserve as a string, or null if absent.+//+// Pump renamed these when USDC became a possible quote asset:+// `real_sol_reserves` → `real_quote_reserves`, `virtual_sol_reserves` →+// `virtual_quote_reserves` (same u64s at the same offsets, new names). Current+// SDKs expose only the `*Quote*` names. Reading just the legacy name yields+// `undefined`, which silently coerces to 0 and reports a healthy curve as empty+// rather than failing — so read the current name first and keep the legacy one+// as a fallback for an older decoder.+function curveQuoteReserve(curve, kind /* 'real' | 'virtual' */) {+ const quoteKey = kind === 'real' ? 'realQuoteReserves' : 'virtualQuoteReserves';+ const legacyKey = kind === 'real' ? 'realSolReserves' : 'virtualSolReserves';+ return curve?.[quoteKey]?.toString?.() ?? curve?.[legacyKey]?.toString?.() ?? null;+}+async function handleGetBondingCurve({ mint, network = 'mainnet' }) {const pk = solanaPubkey(mint);if (!pk) throw rpcError(-32602, 'invalid mint');@@ -70,9 +85,9 @@ async function handleGetBondingCurve({ mint, network = 'mainnet' }) {}if (!curve) throw rpcError(-32004, 'no bonding curve found for this mint');- const realSol = BigInt(curve.realSolReserves?.toString?.() ?? '0');+ const realSol = BigInt(curveQuoteReserve(curve, 'real') ?? '0');const realToken = BigInt(curve.realTokenReserves?.toString?.() ?? '0');- const virtSol = BigInt(curve.virtualSolReserves?.toString?.() ?? '0');+ const virtSol = BigInt(curveQuoteReserve(curve, 'virtual') ?? '0');const virtToken = BigInt(curve.virtualTokenReserves?.toString?.() ?? '0');const complete = !!curve.complete;// Graduation % heuristic: complete=100, else realSol/graduationTarget * 100.@@ -443,15 +458,28 @@ async function handleQuoteSwap({const { buyQuoteInput, sellBaseInput } = await import('@pump-fun/pump-swap-sdk');const BNMod = await import('bn.js');const BN = BNMod.default || BNMod;- const { poolKey, pool, baseReserve, quoteReserve, baseMintAccount, globalConfig, feeConfig } =- state;+ const {+ poolKey,+ pool,+ baseReserve,+ quoteReserve,+ virtualQuoteReserves,+ effectiveQuoteReserve,+ baseMintAccount,+ globalConfig,+ feeConfig,+ } = state;const amountBn = new BN(String(amountIn));// pump-swap-sdk takes slippage as a PERCENT (1 = 1%): `1 ± slippage / 100`.const slip = (slippageBps ?? 100) / 100;+ // `virtualQuoteReserves` is a separate arg the SDK adds to `quoteReserve`+ // itself — pass the RAW reserve here. Our own impact math below uses the+ // pre-summed `effectiveQuoteReserve`.const shared = {slippage: slip,baseReserve,quoteReserve,+ virtualQuoteReserves,globalConfig,baseMintAccount,baseMint: pool.baseMint,@@ -464,14 +492,14 @@ async function handleQuoteSwap({const r = buyQuoteInput({ quote: amountBn, ...shared });amountOut = r.base;const num = amountBn.mul(baseReserve);- const denom = amountOut.mul(quoteReserve);+ const denom = amountOut.mul(effectiveQuoteReserve);priceImpactBps = denom.isZero()? 0: Math.max(0, num.muln(10_000).div(denom).subn(10_000).toNumber());} else {const r = sellBaseInput({ base: amountBn, ...shared });amountOut = r.uiQuote;- const spot = quoteReserve.mul(amountBn);+ const spot = effectiveQuoteReserve.mul(amountBn);const exec = amountOut.mul(baseReserve);priceImpactBps = spot.isZero()? 0@@ -527,9 +555,9 @@ async function handleSocialXPostImpact({ postUrl, mint, windowMin = 30, network}if (!curve) throw rpcError(-32004, 'no bonding curve found for this mint');- const virtSol = Number(curve.virtualSolReserves?.toString?.() ?? '0');+ const virtSol = Number(curveQuoteReserve(curve, 'virtual') ?? '0');const virtToken = Number(curve.virtualTokenReserves?.toString?.() ?? '0');- const realSolLamports = Number(curve.realSolReserves?.toString?.() ?? '0');+ const realSolLamports = Number(curveQuoteReserve(curve, 'real') ?? '0');const priceRaw = virtToken > 0 ? virtSol / virtToken : null;const volSol = realSolLamports / 1e9;@@ -587,7 +615,8 @@ async function handleWatchWhales({ mint, minUsd = 5000, durationMs = 5000 }) {if (event.name !== 'TradeEvent') continue;const d = event.data;if (d.mint?.toString() !== mintStr) continue;- const sol = Number(eventField(d, 'solAmount')?.toString() ?? '0') / 1_000_000_000;+ const sol =+ Number(eventField(d, 'solAmount')?.toString() ?? '0') / 1_000_000_000;const usd = sol * solPrice;if (usd < minUsdNum) continue;trades.push({@@ -596,7 +625,9 @@ async function handleWatchWhales({ mint, minUsd = 5000, durationMs = 5000 }) {sideBuy: !!eventField(d, 'isBuy'),usd,sol,- ts: Number(eventField(d, 'timestamp')?.toString() ?? '0') * 1000 || Date.now(),+ ts:+ Number(eventField(d, 'timestamp')?.toString() ?? '0') * 1000 ||+ Date.now(),});}} catch {}@@ -684,8 +715,12 @@ async function readTradesFromChain({ mint, limit, network }) {const d = event.data;if (poolStr && d.pool?.toString() !== poolStr) continue;const isBuy = event.name === 'BuyEvent';- const lamports = isBuy ? eventField(d, 'quoteAmountIn') : eventField(d, 'quoteAmountOut');- const tokens = isBuy ? eventField(d, 'baseAmountOut') : eventField(d, 'baseAmountIn');+ const lamports = isBuy+ ? eventField(d, 'quoteAmountIn')+ : eventField(d, 'quoteAmountOut');+ const tokens = isBuy+ ? eventField(d, 'baseAmountOut')+ : eventField(d, 'baseAmountIn');const sol = Number(lamports?.toString() ?? '0') / 1e9;const ts = eventField(d, 'timestamp');return {diff --git a/api/pump/[action].js b/api/pump/[action].jsindex 1f769c82d..88252ae57 100644--- a/api/pump/[action].js+++ b/api/pump/[action].js@@ -768,6 +768,7 @@ async function handleSellPrep(req, res) {const { uiQuote } = ammMod.sellBaseInput({base: tokens, slippage: slippagePct,baseReserve: swapState.poolBaseAmount, quoteReserve: swapState.poolQuoteAmount,+ virtualQuoteReserves: swapState.pool.virtualQuoteReserves,baseMintAccount: swapState.baseMintAccount, baseMint: swapState.baseMint,coinCreator: swapState.pool.coinCreator, creator: swapState.pool.creator,feeConfig: swapState.feeConfig, globalConfig: swapState.globalConfig,@@ -2752,6 +2753,8 @@ async function handleQuote(req, res) {poolKey,baseReserve,quoteReserve,+ virtualQuoteReserves,+ effectiveQuoteReserve,baseMintAccount,globalConfig,feeConfig,@@ -2780,6 +2783,7 @@ async function handleQuote(req, res) {slippage: slippagePct,baseReserve,quoteReserve,+ virtualQuoteReserves,globalConfig,baseMintAccount,baseMint: pool.baseMint,@@ -2806,6 +2810,7 @@ async function handleQuote(req, res) {slippage: slippagePct,baseReserve,quoteReserve,+ virtualQuoteReserves,globalConfig,baseMintAccount,baseMint: pool.baseMint,@@ -2837,6 +2842,12 @@ async function handleQuote(req, res) {quote: resolvedQuoteMintStr,base_reserve: baseReserve.toString(),quote_reserve: quoteReserve.toString(),+ // Price against `effective_quote_reserve`, not `quote_reserve`:+ // PumpSwap adds the pool's virtual quote reserves to the vault+ // balance when quoting (non-zero on launchpad coins since+ // 2026-07-20). The raw vault balance alone under-prices buys.+ virtual_quote_reserves: virtualQuoteReserves.toString(),+ effective_quote_reserve: effectiveQuoteReserve.toString(),lp_supply: pool.lpSupply?.toString?.() ?? null,},platform_fee_bps: await effectivePumpFeeBps(),diff --git a/contracts/idl/pump/pump.json b/contracts/idl/pump/pump.jsonindex 9977ae362..062e66f03 100644--- a/contracts/idl/pump/pump.json+++ b/contracts/idl/pump/pump.json@@ -7,28 +7,64 @@"description": "Created with Anchor"},"instructions": [+ {+ "name": "add_quote_mint",+ "discriminator": [111, 121, 21, 56, 40, 24, 94, 209],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "quote_mint",+ "type": "pubkey"+ }+ ]+ },{"name": "admin_set_creator","docs": ["Allows Global::admin_set_creator_authority to override the bonding curve creator"],- "discriminator": [- 69,- 25,- 171,- 142,- 57,- 239,- 13,- 4- ],+ "discriminator": [69, 25, 171, 142, 57, 239, 13, 4],"accounts": [{"name": "admin_set_creator_authority","signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "global",@@ -36,14 +72,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -59,19 +88,7 @@{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101]},{@@ -88,23 +105,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -123,23 +125,12 @@},{"name": "admin_set_idl_authority",- "discriminator": [- 8,- 217,- 96,- 231,- 144,- 104,- 192,- 5- ],+ "discriminator": [8, 217, 96, 231, 144, 104, 192, 5],"accounts": [{"name": "authority","signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "global",@@ -147,14 +138,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -180,23 +164,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -215,24 +184,13 @@},{"name": "admin_update_token_incentives",- "discriminator": [- 209,- 11,- 115,- 87,- 213,- 23,- 124,- 204- ],+ "discriminator": [209, 11, 115, 87, 213, 23, 124, 204],"accounts": [{"name": "authority","writable": true,"signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "global",@@ -240,14 +198,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -260,31 +211,8 @@{"kind": "const","value": [- 103,- 108,- 111,- 98,- 97,- 108,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]}]@@ -314,38 +242,9 @@"program": {"kind": "const","value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}@@ -368,23 +267,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -419,19 +303,8 @@},{"name": "buy",- "docs": [- "Buys tokens from a bonding curve."- ],- "discriminator": [- 102,- 6,- 61,- 18,- 1,- 218,- 235,- 234- ],+ "docs": ["Buys tokens from a bonding curve."],+ "discriminator": [102, 6, 61, 18, 1, 218, 235, 234],"accounts": [{"name": "global",@@ -439,14 +312,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -466,19 +332,7 @@{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101]},{@@ -509,38 +363,9 @@"program": {"kind": "const","value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}@@ -569,19 +394,7 @@{"kind": "const","value": [- 99,- 114,- 101,- 97,- 116,- 111,- 114,- 45,- 118,- 97,- 117,- 108,- 116+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116]},{@@ -599,23 +412,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -632,31 +430,8 @@{"kind": "const","value": [- 103,- 108,- 111,- 98,- 97,- 108,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]}]@@ -670,29 +445,8 @@{"kind": "const","value": [- 117,- 115,- 101,- 114,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]},{@@ -708,54 +462,14 @@"seeds": [{"kind": "const",- "value": [- 102,- 101,- 101,- 95,- 99,- 111,- 110,- 102,- 105,- 103- ]+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]},{"kind": "const","value": [- 1,- 86,- 224,- 246,- 147,- 102,- 90,- 207,- 68,- 219,- 21,- 104,- 191,- 23,- 91,- 170,- 81,- 137,- 203,- 151,- 245,- 210,- 255,- 59,- 101,- 93,- 43,- 182,- 253,- 109,- 24,- 176+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176]}],@@ -790,44 +504,8 @@]},{- "name": "buy_exact_sol_in",- "docs": [- "Given a budget of spendable SOL, buy at least min_tokens_out tokens.",- "Fees are deducted from spendable_sol_in.",- "",- "# Quote formulas",- "Where:",- "- total_fee_bps = protocol_fee_bps + creator_fee_bps (creator_fee_bps is 0 if no creator)",- "- floor(a/b) = a / b (integer division)",- "- ceil(a/b) = (a + b - 1) / b",- "",- "SOL → tokens quote",- "To calculate tokens_out for a given spendable_sol_in:",- "1. net_sol = floor(spendable_sol_in * 10_000 / (10_000 + total_fee_bps))",- "2. fees = ceil(net_sol * protocol_fee_bps / 10_000) + ceil(net_sol * creator_fee_bps / 10_000) (creator_fee_bps is 0 if no creator)",- "3. if net_sol + fees > spendable_sol_in: net_sol = net_sol - (net_sol + fees - spendable_sol_in)",- "4. tokens_out = floor((net_sol - 1) * virtual_token_reserves / (virtual_sol_reserves + net_sol - 1))",- "",- "Reverse quote (tokens → SOL)",- "To calculate spendable_sol_in for a desired number of tokens:",- "1. net_sol = ceil(tokens * virtual_sol_reserves / (virtual_token_reserves - tokens)) + 1",- "2. spendable_sol_in = ceil(net_sol * (10_000 + total_fee_bps) / 10_000)",- "",- "Rent",- "Separately make sure the instruction's payer has enough SOL to cover rent for:",- "- creator_vault: rent.minimum_balance(0)",- "- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)"- ],- "discriminator": [- 56,- 252,- 116,- 8,- 158,- 223,- 205,- 95- ],+ "name": "buy_exact_quote_in_v2",+ "discriminator": [194, 171, 28, 70, 104, 77, 91, 47],"accounts": [{"name": "global",@@ -835,24 +513,90 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}},+ {+ "name": "base_mint"+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },{"name": "fee_recipient","writable": true},{- "name": "mint"+ "name": "associated_quote_fee_recipient",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "buyback_fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_buyback_fee_recipient",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "buyback_fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }},{"name": "bonding_curve",@@ -862,30 +606,18 @@{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101]},{"kind": "account",- "path": "mint"+ "path": "base_mint"}]}},{- "name": "associated_bonding_curve",+ "name": "associated_base_bonding_curve","writable": true,"pda": {"seeds": [@@ -895,55 +627,50 @@},{"kind": "account",- "path": "token_program"+ "path": "base_token_program"},{"kind": "account",- "path": "mint"+ "path": "base_mint"}],"program": {"kind": "const","value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}},{- "name": "associated_user",- "writable": true+ "name": "associated_quote_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }},{"name": "user",@@ -951,11 +678,36 @@"signer": true},{- "name": "system_program",- "address": "11111111111111111111111111111111"+ "name": "associated_base_user",+ "writable": true},{- "name": "token_program"+ "name": "associated_quote_user",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }},{"name": "creator_vault",@@ -965,19 +717,7 @@{"kind": "const","value": [- 99,- 114,- 101,- 97,- 116,- 111,- 114,- 45,- 118,- 97,- 117,- 108,- 116+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116]},{@@ -989,38 +729,64 @@}},{- "name": "event_authority",+ "name": "associated_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator_vault"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "sharing_config",+ "docs": [+ "seeds; the account is intentionally not deserialized here because it may be uninitialized",+ "for mints that have not created a fee sharing config. Handlers must check",+ "`data_is_empty()` / owner before reading."+ ],"pda": {"seeds": [{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103]+ },+ {+ "kind": "account",+ "path": "base_mint"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }}},- {- "name": "program",- "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"- },{"name": "global_volume_accumulator","pda": {@@ -1028,31 +794,8 @@{"kind": "const","value": [- 103,- 108,- 111,- 98,- 97,- 108,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]}]@@ -1066,29 +809,8 @@{"kind": "const","value": [- 117,- 115,- 101,- 114,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]},{@@ -1099,149 +821,60 @@}},{- "name": "fee_config",+ "name": "associated_user_volume_accumulator",+ "writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 102,- 101,- 101,- 95,- 99,- 111,- 110,- 102,- 105,- 103- ]+ "kind": "account",+ "path": "user_volume_accumulator"},{- "kind": "const",- "value": [- 1,- 86,- 224,- 246,- 147,- 102,- 90,- 207,- 68,- 219,- 21,- 104,- 191,- 23,- 91,- 170,- 81,- 137,- 203,- 151,- 245,- 210,- 255,- 59,- 101,- 93,- 43,- 182,- 253,- 109,- 24,- 176- ]+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}],"program": {- "kind": "account",- "path": "fee_program"+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]}}},{- "name": "fee_program",- "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"- }- ],- "args": [- {- "name": "spendable_sol_in",- "type": "u64"- },- {- "name": "min_tokens_out",- "type": "u64"- },- {- "name": "track_volume",- "type": {- "defined": {- "name": "OptionBool"- }- }- }- ]- },- {- "name": "claim_cashback",- "discriminator": [- 37,- 58,- 35,- 126,- 190,- 53,- 228,- 197- ],- "accounts": [- {- "name": "user",- "writable": true- },- {- "name": "user_volume_accumulator",- "writable": true,+ "name": "fee_config","pda": {"seeds": [{"kind": "const",- "value": [- 117,- 115,- 101,- 114,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114- ]+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]},{- "kind": "account",- "path": "user"+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]}- ]+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }}},+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },{"name": "system_program","address": "11111111111111111111111111111111"@@ -1253,23 +886,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -1280,126 +898,92 @@"address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}],- "args": []+ "args": [+ {+ "name": "spendable_quote_in",+ "type": "u64"+ },+ {+ "name": "min_tokens_out",+ "type": "u64"+ }+ ]},{- "name": "claim_token_incentives",- "discriminator": [- 16,- 4,- 71,- 28,- 204,- 1,- 40,- 27+ "name": "buy_exact_sol_in",+ "docs": [+ "Given a budget of spendable SOL, buy at least min_tokens_out tokens.",+ "Fees are deducted from spendable_sol_in.",+ "",+ "# Quote formulas",+ "Where:",+ "- total_fee_bps = protocol_fee_bps + creator_fee_bps (creator_fee_bps is 0 if no creator)",+ "- floor(a/b) = a / b (integer division)",+ "- ceil(a/b) = (a + b - 1) / b",+ "",+ "SOL → tokens quote",+ "To calculate tokens_out for a given spendable_sol_in:",+ "1. net_sol = floor(spendable_sol_in * 10_000 / (10_000 + total_fee_bps))",+ "2. fees = ceil(net_sol * protocol_fee_bps / 10_000) + ceil(net_sol * creator_fee_bps / 10_000) (creator_fee_bps is 0 if no creator)",+ "3. if net_sol + fees > spendable_sol_in: net_sol = net_sol - (net_sol + fees - spendable_sol_in)",+ "4. tokens_out = floor((net_sol - 1) * virtual_token_reserves / (virtual_sol_reserves + net_sol - 1))",+ "",+ "Reverse quote (tokens → SOL)",+ "To calculate spendable_sol_in for a desired number of tokens:",+ "1. net_sol = ceil(tokens * virtual_sol_reserves / (virtual_token_reserves - tokens)) + 1",+ "2. spendable_sol_in = ceil(net_sol * (10_000 + total_fee_bps) / 10_000)",+ "",+ "Rent",+ "Separately make sure the instruction's payer has enough SOL to cover rent for:",+ "- creator_vault: rent.minimum_balance(0)",+ "- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)"],+ "discriminator": [56, 252, 116, 8, 158, 223, 205, 95],"accounts": [{- "name": "user"- },- {- "name": "user_ata",- "writable": true,+ "name": "global","pda": {"seeds": [{- "kind": "account",- "path": "user"- },- {- "kind": "account",- "path": "token_program"- },- {- "kind": "account",- "path": "mint"+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]}- ],- "program": {- "kind": "const",- "value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89- ]- }+ ]}},{- "name": "global_volume_accumulator",+ "name": "fee_recipient",+ "writable": true+ },+ {+ "name": "mint"+ },+ {+ "name": "bonding_curve",+ "writable": true,"pda": {"seeds": [{"kind": "const","value": [- 103,- 108,- 111,- 98,- 97,- 108,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101]+ },+ {+ "kind": "account",+ "path": "mint"}]}},{- "name": "global_incentive_token_account",+ "name": "associated_bonding_curve","writable": true,"pda": {"seeds": [{"kind": "account",- "path": "global_volume_accumulator"+ "path": "bonding_curve"},{"kind": "account",@@ -1413,99 +997,48 @@"program": {"kind": "const","value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}},{- "name": "user_volume_accumulator",+ "name": "associated_user",+ "writable": true+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program"+ },+ {+ "name": "creator_vault","writable": true,"pda": {"seeds": [{"kind": "const","value": [- 117,- 115,- 101,- 114,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116]},{"kind": "account",- "path": "user"+ "path": "bonding_curve.creator",+ "account": "BondingCurve"}]}},- {- "name": "mint",- "relations": [- "global_volume_accumulator"- ]- },- {- "name": "token_program"- },- {- "name": "system_program",- "address": "11111111111111111111111111111111"- },- {- "name": "associated_token_program",- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"- },{"name": "event_authority","pda": {@@ -1513,23 +1046,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -1540,30 +1058,18 @@"address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"},{- "name": "payer",- "writable": true,- "signer": true- }- ],- "args": []- },- {- "name": "close_user_volume_accumulator",- "discriminator": [- 249,- 69,- 164,- 218,- 150,- 103,- 84,- 138- ],- "accounts": [- {- "name": "user",- "writable": true,- "signer": true+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ }+ ]+ }},{"name": "user_volume_accumulator",@@ -1573,29 +1079,8 @@{"kind": "const","value": [- 117,- 115,- 101,- 114,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]},{@@ -1606,821 +1091,427 @@}},{- "name": "event_authority",+ "name": "fee_config","pda": {"seeds": [+ {+ "kind": "const",+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]+ },{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176]}- ]+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }}},{- "name": "program"+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"}],- "args": []+ "args": [+ {+ "name": "spendable_sol_in",+ "type": "u64"+ },+ {+ "name": "min_tokens_out",+ "type": "u64"+ },+ {+ "name": "track_volume",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }+ }+ ]},{- "name": "collect_creator_fee",- "docs": [- "Collects creator_fee from creator_vault to the coin creator account"- ],- "discriminator": [- 20,- 22,- 86,- 123,- 198,- 28,- 219,- 132- ],+ "name": "buy_v2",+ "discriminator": [184, 23, 238, 97, 103, 197, 211, 61],"accounts": [{- "name": "creator",- "writable": true- },- {- "name": "creator_vault",- "writable": true,+ "name": "global","pda": {"seeds": [{"kind": "const",- "value": [- 99,- 114,- 101,- 97,- 116,- 111,- 114,- 45,- 118,- 97,- 117,- 108,- 116- ]- },- {- "kind": "account",- "path": "creator"+ "value": [103, 108, 111, 98, 97, 108]}]}},{- "name": "system_program",- "address": "11111111111111111111111111111111"+ "name": "base_mint"},{- "name": "event_authority",- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121- ]- }- ]- }+ "name": "quote_mint"},{- "name": "program"- }- ],- "args": []- },- {- "name": "create",- "docs": [- "Creates a new coin and bonding curve."- ],- "discriminator": [- 24,- 30,- 200,- 40,- 5,- 28,- 7,- 119- ],- "accounts": [+ "name": "base_token_program"+ },{- "name": "mint",- "writable": true,- "signer": true+ "name": "quote_token_program"},{- "name": "mint_authority",- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 109,- 105,- 110,- 116,- 45,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121- ]- }- ]- }+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"},{- "name": "bonding_curve",+ "name": "fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_fee_recipient","writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101- ]+ "kind": "account",+ "path": "fee_recipient"},{"kind": "account",- "path": "mint"+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }}},{- "name": "associated_bonding_curve",+ "name": "buyback_fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_buyback_fee_recipient","writable": true,"pda": {"seeds": [{"kind": "account",- "path": "bonding_curve"+ "path": "buyback_fee_recipient"},{- "kind": "const",- "value": [- 6,- 221,- 246,- 225,- 215,- 101,- 161,- 147,- 217,- 203,- 225,- 70,- 206,- 235,- 121,- 172,- 28,- 180,- 133,- 237,- 95,- 91,- 55,- 145,- 58,- 140,- 245,- 133,- 126,- 255,- 0,- 169- ]+ "kind": "account",+ "path": "quote_token_program"},{"kind": "account",- "path": "mint"+ "path": "quote_mint"}],"program": {"kind": "const","value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}},{- "name": "global",+ "name": "bonding_curve",+ "writable": true,"pda": {"seeds": [{"kind": "const","value": [- 103,- 108,- 111,- 98,- 97,- 108+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101]+ },+ {+ "kind": "account",+ "path": "base_mint"}]}},{- "name": "mpl_token_metadata",- "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"- },- {- "name": "metadata",+ "name": "associated_base_bonding_curve","writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 109,- 101,- 116,- 97,- 100,- 97,- 116,- 97- ]+ "kind": "account",+ "path": "bonding_curve"},{- "kind": "const",- "value": [- 11,- 112,- 101,- 177,- 227,- 209,- 124,- 69,- 56,- 157,- 82,- 127,- 107,- 4,- 195,- 205,- 88,- 184,- 108,- 115,- 26,- 160,- 253,- 181,- 73,- 182,- 209,- 188,- 3,- 248,- 41,- 70- ]+ "kind": "account",+ "path": "base_token_program"},{"kind": "account",- "path": "mint"+ "path": "base_mint"}],"program": {- "kind": "account",- "path": "mpl_token_metadata"+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]}}},{- "name": "user",+ "name": "associated_quote_bonding_curve","writable": true,- "signer": true- },- {- "name": "system_program",- "address": "11111111111111111111111111111111"- },- {- "name": "token_program",- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"- },- {- "name": "associated_token_program",- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"- },- {- "name": "rent",- "address": "SysvarRent111111111111111111111111111111111"- },- {- "name": "event_authority","pda": {"seeds": [{- "kind": "const",- "value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121- ]+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }}},{- "name": "program"- }- ],- "args": [- {- "name": "name",- "type": "string"- },- {- "name": "symbol",- "type": "string"+ "name": "user",+ "writable": true,+ "signer": true},{- "name": "uri",- "type": "string"+ "name": "associated_base_user",+ "writable": true},{- "name": "creator",- "type": "pubkey"- }- ]- },- {- "name": "create_v2",- "docs": [- "Creates a new spl-22 coin and bonding curve."- ],- "discriminator": [- 214,- 144,- 76,- 236,- 95,- 139,- 49,- 180- ],- "accounts": [- {- "name": "mint",+ "name": "associated_quote_user","writable": true,- "signer": true- },- {- "name": "mint_authority","pda": {"seeds": [{- "kind": "const",- "value": [- 109,- 105,- 110,- 116,- 45,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121- ]+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }}},{- "name": "bonding_curve",+ "name": "creator_vault","writable": true,"pda": {"seeds": [{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116]},{"kind": "account",- "path": "mint"+ "path": "bonding_curve.creator",+ "account": "BondingCurve"}]}},{- "name": "associated_bonding_curve",+ "name": "associated_creator_vault","writable": true,"pda": {"seeds": [{"kind": "account",- "path": "bonding_curve"+ "path": "creator_vault"},{"kind": "account",- "path": "token_program"+ "path": "quote_token_program"},{"kind": "account",- "path": "mint"+ "path": "quote_mint"}],"program": {"kind": "const","value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}},{- "name": "global",+ "name": "sharing_config",+ "docs": [+ "seeds; the account is intentionally not deserialized here because it may be uninitialized",+ "for mints that have not created a fee sharing config. Handlers must check",+ "`data_is_empty()` / owner before reading."+ ],"pda": {"seeds": [{"kind": "const","value": [- 103,- 108,- 111,- 98,- 97,- 108+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103]+ },+ {+ "kind": "account",+ "path": "base_mint"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }}},{- "name": "user",- "writable": true,- "signer": true- },- {- "name": "system_program",- "address": "11111111111111111111111111111111"- },- {- "name": "token_program",- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"- },- {- "name": "associated_token_program",- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"- },- {- "name": "mayhem_program_id",- "writable": true,- "address": "MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e"- },- {- "name": "global_params",+ "name": "global_volume_accumulator","pda": {"seeds": [{"kind": "const","value": [- 103,- 108,- 111,- 98,- 97,- 108,- 45,- 112,- 97,- 114,- 97,- 109,- 115+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]}- ],- "program": {- "kind": "const",- "value": [- 5,- 42,- 229,- 215,- 167,- 218,- 167,- 36,- 166,- 234,- 176,- 167,- 41,- 84,- 145,- 133,- 90,- 212,- 160,- 103,- 22,- 96,- 103,- 76,- 78,- 3,- 69,- 89,- 128,- 61,- 101,- 163- ]- }+ ]}},{- "name": "sol_vault",+ "name": "user_volume_accumulator","writable": true,"pda": {"seeds": [{"kind": "const","value": [- 115,- 111,- 108,- 45,- 118,- 97,- 117,- 108,- 116+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]+ },+ {+ "kind": "account",+ "path": "user"}- ],- "program": {- "kind": "const",- "value": [- 5,- 42,- 229,- 215,- 167,- 218,- 167,- 36,- 166,- 234,- 176,- 167,- 41,- 84,- 145,- 133,- 90,- 212,- 160,- 103,- 22,- 96,- 103,- 76,- 78,- 3,- 69,- 89,- 128,- 61,- 101,- 163- ]- }+ ]}},{- "name": "mayhem_state",+ "name": "associated_user_volume_accumulator","writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 109,- 97,- 121,- 104,- 101,- 109,- 45,- 115,- 116,- 97,- 116,- 101- ]+ "kind": "account",+ "path": "user_volume_accumulator"},{"kind": "account",- "path": "mint"+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}],"program": {"kind": "const","value": [- 5,- 42,- 229,- 215,- 167,- 218,- 167,- 36,- 166,- 234,- 176,- 167,- 41,- 84,- 145,- 133,- 90,- 212,- 160,- 103,- 22,- 96,- 103,- 76,- 78,- 3,- 69,- 89,- 128,- 61,- 101,- 163+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}},{- "name": "mayhem_token_vault",- "writable": true+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]+ },+ {+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"},{"name": "event_authority",@@ -2429,282 +1520,165 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]}},{- "name": "program"+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}],"args": [{- "name": "name",- "type": "string"- },- {- "name": "symbol",- "type": "string"- },- {- "name": "uri",- "type": "string"- },- {- "name": "creator",- "type": "pubkey"- },- {- "name": "is_mayhem_mode",- "type": "bool"+ "name": "amount",+ "type": "u64"},{- "name": "is_cashback_enabled",- "type": {- "defined": {- "name": "OptionBool"- }- }+ "name": "max_sol_cost",+ "type": "u64"}]},{- "name": "distribute_creator_fees",- "docs": [- "Distributes creator fees to shareholders based on their share percentages",- "The creator vault needs to have at least the minimum distributable amount to distribute fees",- "This can be checked with the get_minimum_distributable_fee instruction"- ],- "discriminator": [- 165,- 114,- 103,- 0,- 121,- 206,- 247,- 81- ],+ "name": "claim_cashback",+ "discriminator": [37, 58, 35, 126, 190, 53, 228, 197],"accounts": [{- "name": "mint",- "relations": [- "sharing_config"- ]+ "name": "user",+ "writable": true},{- "name": "bonding_curve",+ "name": "user_volume_accumulator",+ "writable": true,"pda": {"seeds": [{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]},{"kind": "account",- "path": "mint"+ "path": "user"}]}},{- "name": "sharing_config",+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority","pda": {"seeds": [{"kind": "const","value": [- 115,- 104,- 97,- 114,- 105,- 110,- 103,- 45,- 99,- 111,- 110,- 102,- 105,- 103+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]- },- {- "kind": "account",- "path": "mint"}- ],- "program": {- "kind": "const",- "value": [- 12,- 53,- 255,- 169,- 5,- 90,- 142,- 86,- 141,- 168,- 247,- 188,- 7,- 86,- 21,- 39,- 76,- 241,- 201,- 44,- 164,- 31,- 64,- 0,- 156,- 81,- 106,- 164,- 20,- 194,- 124,- 112- ]- }+ ]}},{- "name": "creator_vault",+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ }+ ],+ "args": []+ },+ {+ "name": "claim_cashback_v2",+ "discriminator": [122, 243, 204, 65, 94, 116, 29, 55],+ "accounts": [+ {+ "name": "user",+ "writable": true+ },+ {+ "name": "user_volume_accumulator","writable": true,"pda": {"seeds": [{"kind": "const","value": [- 99,- 114,- 101,- 97,- 116,- 111,- 114,- 45,- 118,- 97,- 117,- 108,- 116+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]},{"kind": "account",- "path": "bonding_curve.creator",- "account": "BondingCurve"+ "path": "user"}]}},{- "name": "system_program",- "address": "11111111111111111111111111111111"+ "name": "quote_mint"},{- "name": "event_authority",+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "associated_user_volume_accumulator",+ "writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121- ]+ "kind": "account",+ "path": "user_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}- ]+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }}},{- "name": "program",- "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"- }- ],- "args": [],- "returns": {- "defined": {- "name": "DistributeCreatorFeesEvent"- }- }- },- {- "name": "extend_account",- "docs": [- "Extends the size of program-owned accounts"- ],- "discriminator": [- 234,- 102,- 194,- 203,- 150,- 72,- 62,- 229- ],- "accounts": [- {- "name": "account",- "writable": true- },- {- "name": "user",- "signer": true+ "name": "associated_quote_user",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }},{"name": "system_program",@@ -2717,108 +1691,81 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]}},{- "name": "program"+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}],"args": []},{- "name": "get_minimum_distributable_fee",- "docs": [- "Permissionless instruction to check the minimum required fees for distribution",- "Returns the minimum required balance from the creator_vault and whether distribution can proceed"- ],- "discriminator": [- 117,- 225,- 127,- 202,- 134,- 95,- 68,- 35- ],+ "name": "claim_token_incentives",+ "discriminator": [16, 4, 71, 28, 204, 1, 40, 27],"accounts": [{- "name": "mint",- "relations": [- "sharing_config"- ]+ "name": "user"},{- "name": "bonding_curve",+ "name": "user_ata",+ "writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101- ]+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "token_program"},{"kind": "account","path": "mint"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }}},{- "name": "sharing_config",+ "name": "global_volume_accumulator","pda": {"seeds": [{"kind": "const","value": [- 115,- 104,- 97,- 114,- 105,- 110,- 103,- 45,- 99,- 111,- 110,- 102,- 105,- 103+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]+ }+ ]+ }+ },+ {+ "name": "global_incentive_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "global_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "token_program"},{"kind": "account",@@ -2828,144 +1775,1903 @@"program": {"kind": "const","value": [- 12,- 53,- 255,- 169,- 5,- 90,- 142,- 86,- 141,- 168,- 247,- 188,- 7,- 86,- 21,- 39,- 76,- 241,- 201,- 44,- 164,- 31,- 64,- 0,- 156,- 81,- 106,- 164,- 20,- 194,- 124,- 112+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}},{- "name": "creator_vault",+ "name": "user_volume_accumulator",+ "writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 99,- 114,- 101,- 97,- 116,- 111,- 114,- 45,- 118,- 97,- 117,- 108,- 116- ]+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "mint",+ "relations": ["global_volume_accumulator"]+ },+ {+ "name": "token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "payer",+ "writable": true,+ "signer": true+ }+ ],+ "args": []+ },+ {+ "name": "close_user_volume_accumulator",+ "discriminator": [249, 69, 164, 218, 150, 103, 84, 138],+ "accounts": [+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "collect_creator_fee",+ "docs": [+ "Collects creator_fee from creator_vault to the coin creator account"+ ],+ "discriminator": [20, 22, 86, 123, 198, 28, 219, 132],+ "accounts": [+ {+ "name": "creator",+ "writable": true+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "creator"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "collect_creator_fee_v2",+ "docs": [+ "Collects creator_fee from creator_vault to the coin creator account"+ ],+ "discriminator": [207, 17, 138, 242, 4, 34, 19, 56],+ "accounts": [+ {+ "name": "creator",+ "writable": true+ },+ {+ "name": "creator_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "creator"+ }+ ]+ }+ },+ {+ "name": "creator_vault_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator_vault"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "create",+ "docs": ["Creates a new coin and bonding curve."],+ "discriminator": [24, 30, 200, 40, 5, 28, 7, 119],+ "accounts": [+ {+ "name": "mint",+ "writable": true,+ "signer": true+ },+ {+ "name": "mint_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 109, 105, 110, 116, 45, 97, 117, 116, 104, 111, 114, 105, 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "associated_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "const",+ "value": [+ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206,+ 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140,+ 245, 133, 126, 255, 0, 169+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "mpl_token_metadata",+ "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"+ },+ {+ "name": "metadata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [109, 101, 116, 97, 100, 97, 116, 97]+ },+ {+ "kind": "const",+ "value": [+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107,+ 4, 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182,+ 209, 188, 3, 248, 41, 70+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "mpl_token_metadata"+ }+ }+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "rent",+ "address": "SysvarRent111111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "name",+ "type": "string"+ },+ {+ "name": "symbol",+ "type": "string"+ },+ {+ "name": "uri",+ "type": "string"+ },+ {+ "name": "creator",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "create_v2",+ "docs": ["Creates a new spl-22 coin and bonding curve."],+ "discriminator": [214, 144, 76, 236, 95, 139, 49, 180],+ "accounts": [+ {+ "name": "mint",+ "writable": true,+ "signer": true+ },+ {+ "name": "mint_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 109, 105, 110, 116, 45, 97, 117, 116, 104, 111, 114, 105, 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "associated_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "mayhem_program_id",+ "writable": true,+ "address": "MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e"+ },+ {+ "name": "global_params",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 45, 112, 97, 114, 97, 109, 115+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 5, 42, 229, 215, 167, 218, 167, 36, 166, 234, 176, 167, 41, 84,+ 145, 133, 90, 212, 160, 103, 22, 96, 103, 76, 78, 3, 69, 89,+ 128, 61, 101, 163+ ]+ }+ }+ },+ {+ "name": "sol_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [115, 111, 108, 45, 118, 97, 117, 108, 116]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 5, 42, 229, 215, 167, 218, 167, 36, 166, 234, 176, 167, 41, 84,+ 145, 133, 90, 212, 160, 103, 22, 96, 103, 76, 78, 3, 69, 89,+ 128, 61, 101, 163+ ]+ }+ }+ },+ {+ "name": "mayhem_state",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 109, 97, 121, 104, 101, 109, 45, 115, 116, 97, 116, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 5, 42, 229, 215, 167, 218, 167, 36, 166, 234, 176, 167, 41, 84,+ 145, 133, 90, 212, 160, 103, 22, 96, 103, 76, 78, 3, 69, 89,+ 128, 61, 101, 163+ ]+ }+ }+ },+ {+ "name": "mayhem_token_vault",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "name",+ "type": "string"+ },+ {+ "name": "symbol",+ "type": "string"+ },+ {+ "name": "uri",+ "type": "string"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ },+ {+ "name": "is_cashback_enabled",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }+ }+ ]+ },+ {+ "name": "distribute_creator_fees",+ "docs": [+ "Distributes creator fees to shareholders based on their share percentages",+ "The creator vault needs to have at least the minimum distributable amount to distribute fees",+ "This can be checked with the get_minimum_distributable_fee instruction"+ ],+ "discriminator": [165, 114, 103, 0, 121, 206, 247, 81],+ "accounts": [+ {+ "name": "mint",+ "relations": ["sharing_config"]+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "sharing_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ }+ ],+ "args": [],+ "returns": {+ "defined": {+ "name": "DistributeCreatorFeesEvent"+ }+ }+ },+ {+ "name": "distribute_creator_fees_v2",+ "discriminator": [255, 203, 19, 79, 244, 68, 8, 159],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "mint",+ "relations": ["sharing_config"]+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "sharing_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "creator_vault_quote_token_account",+ "docs": [+ "Deserialized manually in the handler for non-legacy quote mints."+ ],+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator_vault"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ }+ ],+ "args": [+ {+ "name": "initialize_ata",+ "type": "bool"+ }+ ],+ "returns": {+ "defined": {+ "name": "DistributeCreatorFeesEvent"+ }+ }+ },+ {+ "name": "extend_account",+ "docs": ["Extends the size of program-owned accounts"],+ "discriminator": [234, 102, 194, 203, 150, 72, 62, 229],+ "accounts": [+ {+ "name": "account",+ "writable": true+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "get_minimum_distributable_fee",+ "docs": [+ "Permissionless instruction to check the minimum required fees for distribution",+ "Returns the minimum required balance from the creator_vault and whether distribution can proceed"+ ],+ "discriminator": [117, 225, 127, 202, 134, 95, 68, 35],+ "accounts": [+ {+ "name": "mint",+ "relations": ["sharing_config"]+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "sharing_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "creator_vault",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ }+ ],+ "args": [],+ "returns": {+ "defined": {+ "name": "MinimumDistributableFeeEvent"+ }+ }+ },+ {+ "name": "init_user_volume_accumulator",+ "discriminator": [94, 6, 202, 115, 255, 96, 232, 183],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "user"+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "initialize",+ "docs": ["Creates the global state."],+ "discriminator": [175, 175, 109, 31, 13, 152, 155, 237],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ }+ ],+ "args": []+ },+ {+ "name": "migrate",+ "docs": [+ "Migrates liquidity to pump_amm if the bonding curve is complete"+ ],+ "discriminator": [155, 234, 231, 146, 236, 158, 162, 30],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "withdraw_authority",+ "writable": true,+ "relations": ["global"]+ },+ {+ "name": "mint"+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "associated_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "mint"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "pump_amm",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "pool",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [112, 111, 111, 108]+ },+ {+ "kind": "const",+ "value": [0, 0]+ },+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "mint"+ },+ {+ "kind": "account",+ "path": "wsol_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "pool_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112, 111, 111, 108, 45, 97, 117, 116, 104, 111, 114, 105, 116,+ 121+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "pool_authority_mint_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "mint"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_authority_wsol_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "wsol_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "amm_global_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 99, 111, 110, 102, 105, 103+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "wsol_mint",+ "address": "So11111111111111111111111111111111111111112"+ },+ {+ "name": "lp_mint",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112, 111, 111, 108, 95, 108, 112, 95, 109, 105, 110, 116+ ]+ },+ {+ "kind": "account",+ "path": "pool"+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "user_pool_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "token_2022_program"+ },+ {+ "kind": "account",+ "path": "lp_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool"+ },+ {+ "kind": "account",+ "path": "mint"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "wsol_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "token_2022_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "pump_amm_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "rent",+ "address": "SysvarRent111111111111111111111111111111111"+ }+ ],+ "args": []+ },+ {+ "name": "migrate_bonding_curve_creator",+ "discriminator": [87, 124, 52, 191, 52, 38, 214, 232],+ "accounts": [+ {+ "name": "mint",+ "relations": ["sharing_config"]+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "sharing_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "migrate_v2",+ "docs": [+ "Migrates liquidity to pump_amm if the bonding curve is complete"+ ],+ "discriminator": [187, 203, 18, 31, 206, 237, 254, 41],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "withdraw_authority",+ "writable": true,+ "relations": ["global"]+ },+ {+ "name": "base_mint"+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ]+ }+ },+ {+ "name": "associated_base_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "base_token_program"+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "associated_quote_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "pump_amm",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "pool",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [112, 111, 111, 108]+ },+ {+ "kind": "const",+ "value": [0, 0]+ },+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "base_mint"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "pool_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112, 111, 111, 108, 45, 97, 117, 116, 104, 111, 114, 105, 116,+ 121+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ]+ }+ },+ {+ "name": "pool_authority_mint_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "base_token_program"+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_authority_quote_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "amm_global_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 99, 111, 110, 102, 105, 103+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "lp_mint",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112, 111, 111, 108, 95, 108, 112, 95, 109, 105, 110, 116+ ]+ },+ {+ "kind": "account",+ "path": "pool"+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "user_pool_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "token_2022_program"+ },+ {+ "kind": "account",+ "path": "lp_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool"+ },+ {+ "kind": "account",+ "path": "base_token_program"},{"kind": "account",- "path": "bonding_curve.creator",- "account": "BondingCurve"+ "path": "base_mint"}- ]+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }}- }- ],- "args": [],- "returns": {- "defined": {- "name": "MinimumDistributableFeeEvent"- }- }- },- {- "name": "init_user_volume_accumulator",- "discriminator": [- 94,- 6,- 202,- 115,- 255,- 96,- 232,- 183- ],- "accounts": [- {- "name": "payer",- "writable": true,- "signer": true- },- {- "name": "user"},{- "name": "user_volume_accumulator",+ "name": "pool_quote_token_account","writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 117,- 115,- 101,- 114,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114- ]+ "kind": "account",+ "path": "pool"},{"kind": "account",- "path": "user"+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}- ]+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }}},{- "name": "system_program",- "address": "11111111111111111111111111111111"+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "token_2022_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "pump_amm_event_authority"+ },+ {+ "name": "rent",+ "address": "SysvarRent111111111111111111111111111111111"},{"name": "event_authority",@@ -2974,23 +3680,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -3003,20 +3694,8 @@"args": []},{- "name": "initialize",- "docs": [- "Creates the global state."- ],- "discriminator": [- 175,- 175,- 109,- 31,- 13,- 152,- 155,- 237- ],+ "name": "remove_quote_mint",+ "discriminator": [177, 65, 223, 38, 88, 209, 158, 155],"accounts": [{"name": "global",@@ -3025,45 +3704,51 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}},{- "name": "user",+ "name": "authority","writable": true,- "signer": true+ "signer": true,+ "relations": ["global"]},{- "name": "system_program",- "address": "11111111111111111111111111111111"+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"}],- "args": []+ "args": [+ {+ "name": "quote_mint",+ "type": "pubkey"+ }+ ]},{- "name": "migrate",+ "name": "sell","docs": [- "Migrates liquidity to pump_amm if the bonding curve is complete"- ],- "discriminator": [- 155,- 234,- 231,- 146,- 236,- 158,- 162,- 30+ "Sells tokens into a bonding curve.",+ "For cashback coins, pass as remaining_accounts: [0] user_volume_accumulator,",+ "[1] bonding_curve_v2. If provided and valid, creator_fee goes to user_volume_accumulator.",+ "Otherwise, falls back to transferring creator_fee to creator_vault."],+ "discriminator": [51, 230, 133, 164, 1, 127, 131, 173],"accounts": [{"name": "global",@@ -3071,24 +3756,14 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}},{- "name": "withdraw_authority",- "writable": true,- "relations": [- "global"- ]+ "name": "fee_recipient",+ "writable": true},{"name": "mint"@@ -3101,19 +3776,7 @@{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101]},{@@ -3134,7 +3797,7 @@},{"kind": "account",- "path": "mint"+ "path": "token_program"},{"kind": "account",@@ -3144,44 +3807,20 @@"program": {"kind": "const","value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}},+ {+ "name": "associated_user",+ "writable": true+ },{"name": "user",+ "writable": true,"signer": true},{@@ -3189,674 +3828,445 @@"address": "11111111111111111111111111111111"},{- "name": "token_program",- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"- },- {- "name": "pump_amm",- "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"- },- {- "name": "pool",+ "name": "creator_vault","writable": true,"pda": {"seeds": [{"kind": "const","value": [- 112,- 111,- 111,- 108- ]- },- {- "kind": "const",- "value": [- 0,- 0+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116]},{"kind": "account",- "path": "pool_authority"- },- {- "kind": "account",- "path": "mint"- },- {- "kind": "account",- "path": "wsol_mint"+ "path": "bonding_curve.creator",+ "account": "BondingCurve"}- ],- "program": {- "kind": "account",- "path": "pump_amm"- }+ ]}},{- "name": "pool_authority",- "writable": true,+ "name": "token_program"+ },+ {+ "name": "event_authority","pda": {"seeds": [{"kind": "const","value": [- 112,- 111,- 111,- 108,- 45,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]- },- {- "kind": "account",- "path": "mint"}]}},{- "name": "pool_authority_mint_account",- "writable": true,+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "fee_config","pda": {"seeds": [{- "kind": "account",- "path": "pool_authority"- },- {- "kind": "account",- "path": "mint"+ "kind": "const",+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]},{- "kind": "account",- "path": "mint"+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]}],"program": {"kind": "account",- "path": "associated_token_program"+ "path": "fee_program"}}},{- "name": "pool_authority_wsol_account",+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ }+ ],+ "args": [+ {+ "name": "amount",+ "type": "u64"+ },+ {+ "name": "min_sol_output",+ "type": "u64"+ }+ ]+ },+ {+ "name": "sell_v2",+ "discriminator": [93, 246, 130, 60, 231, 233, 64, 178],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "base_mint"+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_fee_recipient","writable": true,"pda": {"seeds": [{"kind": "account",- "path": "pool_authority"+ "path": "fee_recipient"},{"kind": "account",- "path": "token_program"+ "path": "quote_token_program"},{"kind": "account",- "path": "wsol_mint"- }- ],- "program": {- "kind": "account",- "path": "associated_token_program"- }- }- },- {- "name": "amm_global_config",- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108,- 95,- 99,- 111,- 110,- 102,- 105,- 103- ]+ "path": "quote_mint"}],"program": {- "kind": "account",- "path": "pump_amm"+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]}}},{- "name": "wsol_mint",- "address": "So11111111111111111111111111111111111111112"+ "name": "buyback_fee_recipient",+ "writable": true},{- "name": "lp_mint",+ "name": "associated_quote_buyback_fee_recipient","writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 112,- 111,- 111,- 108,- 95,- 108,- 112,- 95,- 109,- 105,- 110,- 116- ]+ "kind": "account",+ "path": "buyback_fee_recipient"},{"kind": "account",- "path": "pool"+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}],"program": {- "kind": "account",- "path": "pump_amm"+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]}}},{- "name": "user_pool_token_account",+ "name": "bonding_curve","writable": true,"pda": {"seeds": [{- "kind": "account",- "path": "pool_authority"- },- {- "kind": "account",- "path": "token_2022_program"+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]},{"kind": "account",- "path": "lp_mint"+ "path": "base_mint"}- ],- "program": {- "kind": "account",- "path": "associated_token_program"- }+ ]}},{- "name": "pool_base_token_account",+ "name": "associated_base_bonding_curve","writable": true,"pda": {"seeds": [{"kind": "account",- "path": "pool"+ "path": "bonding_curve"},{"kind": "account",- "path": "mint"+ "path": "base_token_program"},{"kind": "account",- "path": "mint"+ "path": "base_mint"}],"program": {- "kind": "account",- "path": "associated_token_program"+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]}}},{- "name": "pool_quote_token_account",+ "name": "associated_quote_bonding_curve","writable": true,"pda": {"seeds": [{"kind": "account",- "path": "pool"+ "path": "bonding_curve"},{"kind": "account",- "path": "token_program"+ "path": "quote_token_program"},{"kind": "account",- "path": "wsol_mint"+ "path": "quote_mint"}],"program": {- "kind": "account",- "path": "associated_token_program"+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]}}},{- "name": "token_2022_program",- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ "name": "user",+ "writable": true,+ "signer": true},{- "name": "associated_token_program",- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ "name": "associated_base_user",+ "writable": true},{- "name": "pump_amm_event_authority",+ "name": "associated_quote_user",+ "writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121- ]+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}],"program": {- "kind": "account",- "path": "pump_amm"+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]}}},{- "name": "event_authority",+ "name": "creator_vault",+ "writable": true,"pda": {"seeds": [{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"}]}},{- "name": "program"- }- ],- "args": []- },- {- "name": "migrate_bonding_curve_creator",- "discriminator": [- 87,- 124,- 52,- 191,- 52,- 38,- 214,- 232- ],- "accounts": [- {- "name": "mint",- "relations": [- "sharing_config"- ]- },- {- "name": "bonding_curve",+ "name": "associated_creator_vault","writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101- ]+ "kind": "account",+ "path": "creator_vault"},{"kind": "account",- "path": "mint"+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }}},{"name": "sharing_config",+ "docs": [+ "seeds; the account is intentionally not deserialized here because it may be uninitialized",+ "for mints that have not created a fee sharing config. Handlers must check",+ "`data_is_empty()` / owner before reading."+ ],"pda": {"seeds": [{"kind": "const","value": [- 115,- 104,- 97,- 114,- 105,- 110,- 103,- 45,- 99,- 111,- 110,- 102,- 105,+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,103]},{"kind": "account",- "path": "mint"+ "path": "base_mint"}],"program": {"kind": "const","value": [- 12,- 53,- 255,- 169,- 5,- 90,- 142,- 86,- 141,- 168,- 247,- 188,- 7,- 86,- 21,- 39,- 76,- 241,- 201,- 44,- 164,- 31,- 64,- 0,- 156,- 81,- 106,- 164,- 20,- 194,- 124,- 112+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112]}}},{- "name": "event_authority",- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121- ]- }- ]- }- },- {- "name": "program"- }- ],- "args": []- },- {- "name": "sell",- "docs": [- "Sells tokens into a bonding curve.",- "For cashback coins, optionally pass user_volume_accumulator as remaining_accounts[0].",- "If provided and valid, creator_fee goes to user_volume_accumulator.",- "Otherwise, falls back to transferring creator_fee to creator_vault."- ],- "discriminator": [- 51,- 230,- 133,- 164,- 1,- 127,- 131,- 173- ],- "accounts": [- {- "name": "global",- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]- }- ]- }- },- {- "name": "fee_recipient",- "writable": true- },- {- "name": "mint"- },- {- "name": "bonding_curve",+ "name": "user_volume_accumulator","writable": true,"pda": {"seeds": [{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]},{"kind": "account",- "path": "mint"+ "path": "user"}]}},{- "name": "associated_bonding_curve",+ "name": "associated_user_volume_accumulator","writable": true,"pda": {"seeds": [{"kind": "account",- "path": "bonding_curve"+ "path": "user_volume_accumulator"},{"kind": "account",- "path": "token_program"+ "path": "quote_token_program"},{"kind": "account",- "path": "mint"+ "path": "quote_mint"}],"program": {"kind": "const","value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}},{- "name": "associated_user",- "writable": true- },- {- "name": "user",- "writable": true,- "signer": true- },- {- "name": "system_program",- "address": "11111111111111111111111111111111"- },- {- "name": "creator_vault",- "writable": true,+ "name": "fee_config","pda": {"seeds": [{"kind": "const",- "value": [- 99,- 114,- 101,- 97,- 116,- 111,- 114,- 45,- 118,- 97,- 117,- 108,- 116- ]+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]},{- "kind": "account",- "path": "bonding_curve.creator",- "account": "BondingCurve"+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]}- ]+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }}},{- "name": "token_program"+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"},{"name": "event_authority",@@ -3865,23 +4275,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -3890,73 +4285,6 @@{"name": "program","address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"- },- {- "name": "fee_config",- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 102,- 101,- 101,- 95,- 99,- 111,- 110,- 102,- 105,- 103- ]- },- {- "kind": "const",- "value": [- 1,- 86,- 224,- 246,- 147,- 102,- 90,- 207,- 68,- 219,- 21,- 104,- 191,- 23,- 91,- 170,- 81,- 137,- 203,- 151,- 245,- 210,- 255,- 59,- 101,- 93,- 43,- 182,- 253,- 109,- 24,- 176- ]- }- ],- "program": {- "kind": "account",- "path": "fee_program"- }- }- },- {- "name": "fee_program",- "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"}],"args": [@@ -3975,23 +4303,12 @@"docs": ["Allows Global::set_creator_authority to set the bonding curve creator from Metaplex metadata or input argument"],- "discriminator": [- 254,- 148,- 255,- 112,- 207,- 142,- 170,- 165- ],+ "discriminator": [254, 148, 255, 112, 207, 142, 170, 165],"accounts": [{"name": "set_creator_authority","signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "global",@@ -3999,14 +4316,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -4020,52 +4330,14 @@"seeds": [{"kind": "const",- "value": [- 109,- 101,- 116,- 97,- 100,- 97,- 116,- 97- ]+ "value": [109, 101, 116, 97, 100, 97, 116, 97]},{"kind": "const","value": [- 11,- 112,- 101,- 177,- 227,- 209,- 124,- 69,- 56,- 157,- 82,- 127,- 107,- 4,- 195,- 205,- 88,- 184,- 108,- 115,- 26,- 160,- 253,- 181,- 73,- 182,- 209,- 188,- 3,- 248,- 41,- 70+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107,+ 4, 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182,+ 209, 188, 3, 248, 41, 70]},{@@ -4076,38 +4348,9 @@"program": {"kind": "const","value": [- 11,- 112,- 101,- 177,- 227,- 209,- 124,- 69,- 56,- 157,- 82,- 127,- 107,- 4,- 195,- 205,- 88,- 184,- 108,- 115,- 26,- 160,- 253,- 181,- 73,- 182,- 209,- 188,- 3,- 248,- 41,- 70+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107, 4,+ 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182, 209,+ 188, 3, 248, 41, 70]}}@@ -4120,19 +4363,7 @@{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101]},{@@ -4149,23 +4380,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -4184,16 +4400,7 @@},{"name": "set_mayhem_virtual_params",- "discriminator": [- 61,- 169,- 188,- 191,- 153,- 149,- 42,- 97- ],+ "discriminator": [61, 169, 188, 191, 153, 149, 42, 97],"accounts": [{"name": "sol_vault_authority",@@ -4203,54 +4410,15 @@"seeds": [{"kind": "const",- "value": [- 115,- 111,- 108,- 45,- 118,- 97,- 117,- 108,- 116- ]+ "value": [115, 111, 108, 45, 118, 97, 117, 108, 116]}],"program": {"kind": "const","value": [- 5,- 42,- 229,- 215,- 167,- 218,- 167,- 36,- 166,- 234,- 176,- 167,- 41,- 84,- 145,- 133,- 90,- 212,- 160,- 103,- 22,- 96,- 103,- 76,- 78,- 3,- 69,- 89,- 128,- 61,- 101,- 163+ 5, 42, 229, 215, 167, 218, 167, 36, 166, 234, 176, 167, 41, 84,+ 145, 133, 90, 212, 160, 103, 22, 96, 103, 76, 78, 3, 69, 89,+ 128, 61, 101, 163]}}@@ -4276,38 +4444,9 @@"program": {"kind": "const","value": [- 140,- 151,- 37,- 143,- 78,- 36,- 137,- 241,- 187,- 61,- 16,- 41,- 20,- 142,- 13,- 131,- 11,- 90,- 19,- 153,- 218,- 255,- 16,- 132,- 4,- 142,- 123,- 216,- 219,- 233,- 248,- 89+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89]}}@@ -4321,14 +4460,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -4341,19 +4473,7 @@{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101]},{@@ -4374,23 +4494,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -4407,16 +4512,7 @@"docs": ["Syncs the bonding curve creator with the Metaplex metadata creator if it exists"],- "discriminator": [- 138,- 96,- 174,- 217,- 48,- 85,- 197,- 246- ],+ "discriminator": [138, 96, 174, 217, 48, 85, 197, 246],"accounts": [{"name": "mint"@@ -4427,52 +4523,14 @@"seeds": [{"kind": "const",- "value": [- 109,- 101,- 116,- 97,- 100,- 97,- 116,- 97- ]+ "value": [109, 101, 116, 97, 100, 97, 116, 97]},{"kind": "const","value": [- 11,- 112,- 101,- 177,- 227,- 209,- 124,- 69,- 56,- 157,- 82,- 127,- 107,- 4,- 195,- 205,- 88,- 184,- 108,- 115,- 26,- 160,- 253,- 181,- 73,- 182,- 209,- 188,- 3,- 248,- 41,- 70+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107,+ 4, 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182,+ 209, 188, 3, 248, 41, 70]},{@@ -4483,38 +4541,9 @@"program": {"kind": "const","value": [- 11,- 112,- 101,- 177,- 227,- 209,- 124,- 69,- 56,- 157,- 82,- 127,- 107,- 4,- 195,- 205,- 88,- 184,- 108,- 115,- 26,- 160,- 253,- 181,- 73,- 182,- 209,- 188,- 3,- 248,- 41,- 70+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107, 4,+ 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182, 209,+ 188, 3, 248, 41, 70]}}@@ -4527,19 +4556,7 @@{"kind": "const","value": [- 98,- 111,- 110,- 100,- 105,- 110,- 103,- 45,- 99,- 117,- 114,- 118,- 101+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101]},{@@ -4556,23 +4573,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -4585,20 +4587,9 @@"args": []},{- "name": "set_params",- "docs": [- "Sets the global state parameters."- ],- "discriminator": [- 27,- 234,- 178,- 52,- 147,- 2,- 187,- 141- ],+ "name": "set_params",+ "docs": ["Sets the global state parameters."],+ "discriminator": [27, 234, 178, 52, 147, 2, 187, 141],"accounts": [{"name": "global",@@ -4607,14 +4598,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -4623,9 +4607,7 @@"name": "authority","writable": true,"signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "event_authority",@@ -4634,23 +4616,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -4709,16 +4676,7 @@},{"name": "set_reserved_fee_recipients",- "discriminator": [- 111,- 172,- 162,- 232,- 114,- 89,- 213,- 142- ],+ "discriminator": [111, 172, 162, 232, 114, 89, 213, 142],"accounts": [{"name": "global",@@ -4727,14 +4685,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -4742,9 +4693,7 @@{"name": "authority","signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "event_authority",@@ -4753,23 +4702,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -4787,17 +4721,55 @@]},{- "name": "sync_user_volume_accumulator",- "discriminator": [- 86,- 31,- 192,- 87,- 163,- 87,- 79,- 238+ "name": "set_virtual_quote_reserves",+ "discriminator": [101, 135, 191, 104, 9, 88, 20, 96],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }],+ "args": [+ {+ "name": "initial_virtual_quote_reserves",+ "type": "u64"+ }+ ]+ },+ {+ "name": "sync_user_volume_accumulator",+ "discriminator": [86, 31, 192, 87, 163, 87, 79, 238],"accounts": [{"name": "user"@@ -4809,31 +4781,8 @@{"kind": "const","value": [- 103,- 108,- 111,- 98,- 97,- 108,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]}]@@ -4847,29 +4796,8 @@{"kind": "const","value": [- 117,- 115,- 101,- 114,- 95,- 118,- 111,- 108,- 117,- 109,- 101,- 95,- 97,- 99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,- 111,- 114+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114]},{@@ -4886,23 +4814,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -4916,16 +4829,7 @@},{"name": "toggle_cashback_enabled",- "discriminator": [- 115,- 103,- 224,- 255,- 189,- 89,- 86,- 195- ],+ "discriminator": [115, 103, 224, 255, 189, 89, 86, 195],"accounts": [{"name": "global",@@ -4934,14 +4838,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -4950,9 +4847,7 @@"name": "authority","writable": true,"signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "event_authority",@@ -4961,23 +4856,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -4996,16 +4876,7 @@},{"name": "toggle_create_v2",- "discriminator": [- 28,- 255,- 230,- 240,- 172,- 107,- 203,- 171- ],+ "discriminator": [28, 255, 230, 240, 172, 107, 203, 171],"accounts": [{"name": "global",@@ -5014,14 +4885,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -5030,9 +4894,7 @@"name": "authority","writable": true,"signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "event_authority",@@ -5041,23 +4903,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -5076,16 +4923,7 @@},{"name": "toggle_mayhem_mode",- "discriminator": [- 1,- 9,- 111,- 208,- 100,- 31,- 255,- 163- ],+ "discriminator": [1, 9, 111, 208, 100, 31, 255, 163],"accounts": [{"name": "global",@@ -5094,14 +4932,7 @@"seeds": [{"kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "value": [103, 108, 111, 98, 97, 108]}]}@@ -5110,9 +4941,7 @@"name": "authority","writable": true,"signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "event_authority",@@ -5121,23 +4950,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -5155,43 +4969,74 @@]},{- "name": "update_global_authority",- "discriminator": [- 227,- 181,- 74,- 196,- 208,- 21,- 97,- 213- ],+ "name": "update_buyback_config",+ "discriminator": [251, 224, 171, 146, 160, 26, 113, 233],"accounts": [{"name": "global","writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority","pda": {"seeds": [{"kind": "const","value": [- 103,- 108,- 111,- 98,- 97,- 108+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]}},+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "buyback_basis_points",+ "type": {+ "option": "u64"+ }+ }+ ]+ },+ {+ "name": "update_global_authority",+ "discriminator": [227, 181, 74, 196, 208, 21, 97, 213],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },{"name": "authority","signer": true,- "relations": [- "global"- ]+ "relations": ["global"]},{"name": "new_authority"@@ -5203,23 +5048,8 @@{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121]}]@@ -5235,382 +5065,121 @@"accounts": [{"name": "BondingCurve",- "discriminator": [- 23,- 183,- 248,- 55,- 96,- 216,- 172,- 96- ]+ "discriminator": [23, 183, 248, 55, 96, 216, 172, 96]},{"name": "FeeConfig",- "discriminator": [- 143,- 52,- 146,- 187,- 219,- 123,- 76,- 155- ]+ "discriminator": [143, 52, 146, 187, 219, 123, 76, 155]},{"name": "Global",- "discriminator": [- 167,- 232,- 232,- 177,- 200,- 108,- 114,- 127- ]+ "discriminator": [167, 232, 232, 177, 200, 108, 114, 127]},{"name": "GlobalVolumeAccumulator",- "discriminator": [- 202,- 42,- 246,- 43,- 142,- 190,- 30,- 255- ]+ "discriminator": [202, 42, 246, 43, 142, 190, 30, 255]},{"name": "SharingConfig",- "discriminator": [- 216,- 74,- 9,- 0,- 56,- 140,- 93,- 75- ]+ "discriminator": [216, 74, 9, 0, 56, 140, 93, 75]},{"name": "UserVolumeAccumulator",- "discriminator": [- 86,- 255,- 112,- 14,- 102,- 53,- 154,- 250- ]+ "discriminator": [86, 255, 112, 14, 102, 53, 154, 250]}],"events": [{"name": "AdminSetCreatorEvent",- "discriminator": [- 64,- 69,- 192,- 104,- 29,- 30,- 25,- 107- ]+ "discriminator": [64, 69, 192, 104, 29, 30, 25, 107]},{"name": "AdminSetIdlAuthorityEvent",- "discriminator": [- 245,- 59,- 70,- 34,- 75,- 185,- 109,- 92- ]+ "discriminator": [245, 59, 70, 34, 75, 185, 109, 92]},{"name": "AdminUpdateTokenIncentivesEvent",- "discriminator": [- 147,- 250,- 108,- 120,- 247,- 29,- 67,- 222- ]+ "discriminator": [147, 250, 108, 120, 247, 29, 67, 222]},{"name": "ClaimCashbackEvent",- "discriminator": [- 226,- 214,- 246,- 33,- 7,- 242,- 147,- 229- ]+ "discriminator": [226, 214, 246, 33, 7, 242, 147, 229]},{"name": "ClaimTokenIncentivesEvent",- "discriminator": [- 79,- 172,- 246,- 49,- 205,- 91,- 206,- 232- ]+ "discriminator": [79, 172, 246, 49, 205, 91, 206, 232]},{"name": "CloseUserVolumeAccumulatorEvent",- "discriminator": [- 146,- 159,- 189,- 172,- 146,- 88,- 56,- 244- ]+ "discriminator": [146, 159, 189, 172, 146, 88, 56, 244]},{"name": "CollectCreatorFeeEvent",- "discriminator": [- 122,- 2,- 127,- 1,- 14,- 191,- 12,- 175- ]+ "discriminator": [122, 2, 127, 1, 14, 191, 12, 175]},{"name": "CompleteEvent",- "discriminator": [- 95,- 114,- 97,- 156,- 212,- 46,- 152,- 8- ]+ "discriminator": [95, 114, 97, 156, 212, 46, 152, 8]},{"name": "CompletePumpAmmMigrationEvent",- "discriminator": [- 189,- 233,- 93,- 185,- 92,- 148,- 234,- 148- ]+ "discriminator": [189, 233, 93, 185, 92, 148, 234, 148]},{"name": "CreateEvent",- "discriminator": [- 27,- 114,- 169,- 77,- 222,- 235,- 99,- 118- ]+ "discriminator": [27, 114, 169, 77, 222, 235, 99, 118]},{"name": "DistributeCreatorFeesEvent",- "discriminator": [- 165,- 55,- 129,- 112,- 4,- 179,- 202,- 40- ]+ "discriminator": [165, 55, 129, 112, 4, 179, 202, 40]},{"name": "ExtendAccountEvent",- "discriminator": [- 97,- 97,- 215,- 144,- 93,- 146,- 22,- 124- ]+ "discriminator": [97, 97, 215, 144, 93, 146, 22, 124]},{"name": "InitUserVolumeAccumulatorEvent",- "discriminator": [- 134,- 36,- 13,- 72,- 232,- 101,- 130,- 216- ]+ "discriminator": [134, 36, 13, 72, 232, 101, 130, 216]},{"name": "MigrateBondingCurveCreatorEvent",- "discriminator": [- 155,- 167,- 104,- 220,- 213,- 108,- 243,- 3- ]+ "discriminator": [155, 167, 104, 220, 213, 108, 243, 3]},{"name": "MinimumDistributableFeeEvent",- "discriminator": [- 168,- 216,- 132,- 239,- 235,- 182,- 49,- 52- ]+ "discriminator": [168, 216, 132, 239, 235, 182, 49, 52]},{"name": "ReservedFeeRecipientsEvent",- "discriminator": [- 43,- 188,- 250,- 18,- 221,- 75,- 187,- 95- ]+ "discriminator": [43, 188, 250, 18, 221, 75, 187, 95]},{"name": "SetCreatorEvent",- "discriminator": [- 237,- 52,- 123,- 37,- 245,- 251,- 72,- 210- ]+ "discriminator": [237, 52, 123, 37, 245, 251, 72, 210]},{"name": "SetMetaplexCreatorEvent",- "discriminator": [- 142,- 203,- 6,- 32,- 127,- 105,- 191,- 162- ]+ "discriminator": [142, 203, 6, 32, 127, 105, 191, 162]},{"name": "SetParamsEvent",- "discriminator": [- 223,- 195,- 159,- 246,- 62,- 48,- 143,- 131- ]+ "discriminator": [223, 195, 159, 246, 62, 48, 143, 131]},{"name": "SyncUserVolumeAccumulatorEvent",- "discriminator": [- 197,- 122,- 167,- 124,- 116,- 81,- 91,- 255- ]+ "discriminator": [197, 122, 167, 124, 116, 81, 91, 255]},{"name": "TradeEvent",- "discriminator": [- 189,- 219,- 127,- 211,- 78,- 230,- 97,- 238- ]+ "discriminator": [189, 219, 127, 211, 78, 230, 97, 238]},{"name": "UpdateGlobalAuthorityEvent",- "discriminator": [- 182,- 195,- 137,- 42,- 35,- 206,- 207,- 247- ]+ "discriminator": [182, 195, 137, 42, 35, 206, 207, 247]},{"name": "UpdateMayhemVirtualParamsEvent",- "discriminator": [- 117,- 123,- 228,- 182,- 161,- 168,- 220,- 214- ]+ "discriminator": [117, 123, 228, 182, 161, 168, 220, 214]}],"errors": [@@ -5883,6 +5452,78 @@"code": 6056,"name": "CashbackNotEnabled","msg": "Cashback is not enabled"+ },+ {+ "code": 6057,+ "name": "BuybackFeeRecipientNotAuthorized",+ "msg": "Buyback fee recipient not authorized"+ },+ {+ "code": 6058,+ "name": "AllBuybackFeeRecipientsShouldBeNonZero"+ },+ {+ "code": 6059,+ "name": "NotUniqueBuybackFeeRecipients"+ },+ {+ "code": 6060,+ "name": "BuybackBasisPointsOutOfRange",+ "msg": "buyback_basis_points must be <= 10_000"+ },+ {+ "code": 6061,+ "name": "WrongBuybackFeeRecipientsCount",+ "msg": "buyback fee recipients require exactly 8 remaining accounts (or none)"+ },+ {+ "code": 6062,+ "name": "BuybackFeeRecipientMissing"+ },+ {+ "code": 6063,+ "name": "UnsupportedQuoteMint",+ "msg": "Unsupported quote mint"+ },+ {+ "code": 6064,+ "name": "InvalidQuoteTokenProgram",+ "msg": "Create v2: quote token program must be legacy SPL Token"+ },+ {+ "code": 6065,+ "name": "InvalidAssociatedQuoteBondingCurve",+ "msg": "Create v2: associated quote bonding curve address does not match derivation"+ },+ {+ "code": 6066,+ "name": "QuoteMintWhitelistFull",+ "msg": "Quote mint whitelist is full"+ },+ {+ "code": 6067,+ "name": "QuoteMintAlreadyWhitelisted",+ "msg": "Quote mint is already whitelisted"+ },+ {+ "code": 6068,+ "name": "QuoteMintNotWhitelisted",+ "msg": "Quote mint is not in the whitelist"+ },+ {+ "code": 6069,+ "name": "QuoteMintNotEligibleForWhitelist",+ "msg": "Quote mint cannot be added or removed via whitelist (default or native SOL mint)"+ },+ {+ "code": 6070,+ "name": "UnableToDistributeCreatorFeesToUninitializedAccount",+ "msg": "Unable to distribute creator fees to uninitialized account"+ },+ {+ "code": 6071,+ "name": "MayhemModeQuoteMintNotAllowed",+ "msg": "Mayhem mode quote mint not allowed"}],"types": [@@ -5976,7 +5617,7 @@"type": "u64"},{- "name": "virtual_sol_reserves",+ "name": "virtual_quote_reserves","type": "u64"},{@@ -5984,7 +5625,7 @@"type": "u64"},{- "name": "real_sol_reserves",+ "name": "real_quote_reserves","type": "u64"},{@@ -6006,6 +5647,10 @@{"name": "is_cashback_coin","type": "bool"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"}]}@@ -6118,6 +5763,10 @@{"name": "creator_fee","type": "u64"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"}]}@@ -6142,6 +5791,10 @@{"name": "timestamp","type": "i64"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"}]}@@ -6182,6 +5835,10 @@{"name": "pool","type": "pubkey"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"}]}@@ -6264,6 +5921,14 @@{"name": "is_cashback_enabled","type": "bool"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "u64"}]}@@ -6306,6 +5971,10 @@{"name": "distributed","type": "u64"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"}]}@@ -6368,6 +6037,16 @@}}}+ },+ {+ "name": "stable_fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }}]}@@ -6419,9 +6098,7 @@"fields": [{"name": "initialized",- "docs": [- "Unused"- ],+ "docs": ["Unused"],"type": "bool"},{@@ -6458,9 +6135,7 @@},{"name": "enable_migrate",- "docs": [- "Unused"- ],+ "docs": ["Unused"],"type": "bool"},{@@ -6474,10 +6149,7 @@{"name": "fee_recipients","type": {- "array": [- "pubkey",- 7- ]+ "array": ["pubkey", 7]}},{@@ -6507,15 +6179,32 @@{"name": "reserved_fee_recipients","type": {- "array": [- "pubkey",- 7- ]+ "array": ["pubkey", 7]}},{"name": "is_cashback_enabled","type": "bool"+ },+ {+ "name": "buyback_fee_recipients",+ "type": {+ "array": ["pubkey", 8]+ }+ },+ {+ "name": "buyback_basis_points",+ "type": "u64"+ },+ {+ "name": "initial_virtual_quote_reserves",+ "type": "u64"+ },+ {+ "name": "whitelisted_quote_mints",+ "type": {+ "array": ["pubkey", 1]+ }}]}@@ -6544,19 +6233,13 @@{"name": "total_token_supply","type": {- "array": [- "u64",- 30- ]+ "array": ["u64", 30]}},{"name": "sol_volumes","type": {- "array": [- "u64",- 30- ]+ "array": ["u64", 30]}}]@@ -6638,9 +6321,7 @@"name": "OptionBool","type": {"kind": "struct",- "fields": [- "bool"- ]+ "fields": ["bool"]}},{@@ -6659,10 +6340,7 @@{"name": "reserved_fee_recipients","type": {- "array": [- "pubkey",- 7- ]+ "array": ["pubkey", 7]}}]@@ -6768,10 +6446,7 @@{"name": "fee_recipients","type": {- "array": [- "pubkey",- 8- ]+ "array": ["pubkey", 8]}},{@@ -6877,9 +6552,7 @@},{"name": "TradeEvent",- "docs": [- "ix_name: \"buy\" | \"sell\" | \"buy_exact_sol_in\""- ],+ "docs": ["ix_name: \"buy\" | \"sell\" | \"buy_exact_sol_in\""],"type": {"kind": "struct","fields": [@@ -6982,6 +6655,40 @@{"name": "cashback","type": "u64"+ },+ {+ "name": "buyback_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "buyback_fee",+ "type": "u64"+ },+ {+ "name": "shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "quote_amount",+ "type": "u64"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "u64"+ },+ {+ "name": "real_quote_reserves",+ "type": "u64"}]}@@ -7090,9 +6797,17 @@{"name": "total_cashback_claimed","type": "u64"+ },+ {+ "name": "stable_cashback_earned",+ "type": "u64"+ },+ {+ "name": "total_stable_cashback_claimed",+ "type": "u64"}]}}]-}\ No newline at end of file+}diff --git a/contracts/idl/pump/pump_amm.json b/contracts/idl/pump/pump_amm.jsonindex 47d7b9534..a654b6f92 100644--- a/contracts/idl/pump/pump_amm.json+++ b/contracts/idl/pump/pump_amm.json@@ -288,6 +288,213 @@}]},+ {+ "name": "boost_buy_and_burn",+ "discriminator": [+ 105,+ 68,+ 6,+ 175,+ 0,+ 7,+ 35,+ 162+ ],+ "accounts": [+ {+ "name": "pool"+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true+ },+ {+ "name": "global_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ }+ ]+ }+ },+ {+ "name": "base_mint",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "quote_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "boost_vault_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 111,+ 115,+ 116,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "pool"+ }+ ]+ }+ },+ {+ "name": "boost_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "boost_vault_authority"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "quote_amount_in",+ "type": "u64"+ },+ {+ "name": "min_base_amount_burned",+ "type": "u64"+ }+ ]+ },{"name": "buy","docs": [@@ -2588,71 +2795,273 @@"args": []},{- "name": "init_user_volume_accumulator",+ "name": "init_boost","discriminator": [+ 140,+ 233,+ 33,94,- 6,- 202,- 115,- 255,- 96,- 232,- 183+ 132,+ 90,+ 194,+ 143],"accounts": [{- "name": "payer",- "writable": true,- "signer": true- },- {- "name": "user"+ "name": "pool",+ "writable": true},{- "name": "user_volume_accumulator",- "writable": true,+ "name": "global_config","pda": {"seeds": [{"kind": "const","value": [- 117,- 115,- 101,- 114,- 95,- 118,+ 103,+ 108,111,+ 98,+ 97,108,- 117,- 109,- 101,95,- 97,99,- 99,- 117,- 109,- 117,- 108,- 97,- 116,111,- 114+ 110,+ 102,+ 105,+ 103]- },- {- "kind": "account",- "path": "user"}]}},{- "name": "system_program",- "address": "11111111111111111111111111111111"- },- {+ "name": "creator",+ "writable": true,+ "signer": true+ },+ {+ "name": "base_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "quote_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "pool_base_token_account",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "boost_vault_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 111,+ 115,+ 116,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "pool"+ }+ ]+ }+ },+ {+ "name": "boost_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "boost_vault_authority"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "init_user_volume_accumulator",+ "discriminator": [+ 94,+ 6,+ 202,+ 115,+ 255,+ 96,+ 232,+ 183+ ],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "user"+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117,+ 115,+ 101,+ 114,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {"name": "event_authority","pda": {"seeds": [@@ -3176,34 +3585,100 @@]},{- "name": "set_coin_creator",- "docs": [- "Sets Pool::coin_creator from Metaplex metadata creator or BondingCurve::creator"- ],+ "name": "set_boost_authority","discriminator": [- 210,+ 227,149,- 128,- 45,- 188,- 58,- 78,- 175+ 76,+ 42,+ 130,+ 39,+ 234,+ 205],"accounts": [{- "name": "pool",+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config","writable": true},{- "name": "metadata",+ "name": "boost_authority"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority","pda": {"seeds": [{"kind": "const","value": [- 109,- 101,+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "set_coin_creator",+ "docs": [+ "Sets Pool::coin_creator from Metaplex metadata creator or BondingCurve::creator"+ ],+ "discriminator": [+ 210,+ 149,+ 128,+ 45,+ 188,+ 58,+ 78,+ 175+ ],+ "accounts": [+ {+ "name": "pool",+ "writable": true+ },+ {+ "name": "metadata",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 109,+ 101,116,97,100,@@ -3610,6 +4085,38 @@],"args": []},+ {+ "name": "toggle_boost",+ "discriminator": [+ 117,+ 161,+ 160,+ 74,+ 223,+ 137,+ 118,+ 99+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config",+ "writable": true+ }+ ],+ "args": [+ {+ "name": "enabled",+ "type": "bool"+ }+ ]+ },{"name": "toggle_cashback_enabled","discriminator": [@@ -3966,16 +4473,326 @@"args": []},{- "name": "update_admin",+ "name": "transfer_creator_fees_to_pump_v2",+ "discriminator": [+ 1,+ 33,+ 78,+ 185,+ 33,+ 67,+ 44,+ 92+ ],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "coin_creator"+ }+ ]+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "coin_creator"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pump_creator_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "update_admin",+ "discriminator": [+ 161,+ 176,+ 40,+ 213,+ 60,+ 184,+ 179,+ 228+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config",+ "writable": true+ },+ {+ "name": "new_admin"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "update_buyback_config","discriminator": [- 161,- 176,- 40,- 213,- 60,- 184,- 179,- 228+ 251,+ 224,+ 171,+ 146,+ 160,+ 26,+ 113,+ 233],"accounts": [{@@ -3989,9 +4806,6 @@"name": "global_config","writable": true},- {- "name": "new_admin"- },{"name": "event_authority","pda": {@@ -4025,7 +4839,14 @@"name": "program"}],- "args": []+ "args": [+ {+ "name": "buyback_basis_points",+ "type": {+ "option": "u64"+ }+ }+ ]},{"name": "update_fee_config",@@ -4358,6 +5179,19 @@222]},+ {+ "name": "BoostBuyAndBurnEvent",+ "discriminator": [+ 63,+ 69,+ 28,+ 22,+ 48,+ 92,+ 194,+ 185+ ]+ },{"name": "BuyEvent","discriminator": [@@ -4488,6 +5322,19 @@124]},+ {+ "name": "InitBoostEvent",+ "discriminator": [+ 174,+ 124,+ 74,+ 249,+ 4,+ 81,+ 246,+ 17+ ]+ },{"name": "InitUserVolumeAccumulatorEvent","discriminator": [@@ -4553,6 +5400,19 @@211]},+ {+ "name": "SetBoostAuthorityEvent",+ "discriminator": [+ 89,+ 128,+ 240,+ 141,+ 91,+ 202,+ 71,+ 105+ ]+ },{"name": "SetMetaplexCoinCreatorEvent","discriminator": [@@ -4835,7 +5695,79 @@},{"code": 6052,- "name": "CashbackEarnedDoesNotMatchTokenInVault"+ "name": "TokensInVaultLessThanCashbackEarned"+ },+ {+ "code": 6053,+ "name": "BuybackFeeRecipientNotAuthorized",+ "msg": "Buyback fee recipient not authorized"+ },+ {+ "code": 6054,+ "name": "AllBuybackFeeRecipientsShouldBeNonZero"+ },+ {+ "code": 6055,+ "name": "NotUniqueBuybackFeeRecipients"+ },+ {+ "code": 6056,+ "name": "BuybackBasisPointsOutOfRange",+ "msg": "buyback_basis_points must be <= 10_000"+ },+ {+ "code": 6057,+ "name": "WrongBuybackFeeRecipientsCount",+ "msg": "buyback fee recipients require exactly 8 remaining accounts (or none)"+ },+ {+ "code": 6058,+ "name": "BuybackFeeRecipientMissing"+ },+ {+ "code": 6059,+ "name": "MissingCashbackAccounts",+ "msg": "Cashback trade is missing the required remaining accounts"+ },+ {+ "code": 6060,+ "name": "InvalidCashbackAccumulator",+ "msg": "Cashback user_volume_accumulator account is invalid"+ },+ {+ "code": 6061,+ "name": "InvalidCashbackAccumulatorAta",+ "msg": "Cashback user_volume_accumulator ATA is missing or invalid"+ },+ {+ "code": 6062,+ "name": "InvalidPoolV2",+ "msg": "pool_v2 remaining account is missing or invalid"+ },+ {+ "code": 6063,+ "name": "InsufficientRealQuoteReserves",+ "msg": "BOOST: sell output exceeds the real quote vault. effective = real + virtual is pricing-only; payout is capped at real_vault, so quote min(out, real_vault)"+ },+ {+ "code": 6064,+ "name": "BoostPoolLiquidityUnsupported",+ "msg": "BOOST: deposit/withdraw don't apply to boost pools"+ },+ {+ "code": 6065,+ "name": "PoolCannotBoost",+ "msg": "BOOST: pool cannot be boosted (no virtual reserves)"+ },+ {+ "code": 6066,+ "name": "BoostDisabled",+ "msg": "BOOST: boost is disabled"+ },+ {+ "code": 6067,+ "name": "SeedLockViolation",+ "msg": "BOOST: lp_supply must never drop below the circulating LP mint supply"}],"types": [@@ -4951,6 +5883,62 @@]}},+ {+ "name": "BoostBuyAndBurnEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "authority",+ "type": "pubkey"+ },+ {+ "name": "quote_amount_in_requested",+ "type": "u64"+ },+ {+ "name": "quote_amount_in_used",+ "type": "u64"+ },+ {+ "name": "base_amount_burned",+ "type": "u64"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "i128"+ },+ {+ "name": "real_quote_reserves_after",+ "type": "u64"+ },+ {+ "name": "base_reserves_after",+ "type": "u64"+ },+ {+ "name": "boost_vault_remaining",+ "type": "u64"+ }+ ]+ }+ },{"name": "BuyEvent","docs": [@@ -5086,6 +6074,26 @@{"name": "cashback","type": "u64"+ },+ {+ "name": "buyback_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "buyback_fee",+ "type": "u64"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "i128"+ },+ {+ "name": "can_boost",+ "type": "bool"+ },+ {+ "name": "base_supply",+ "type": "u64"}]}@@ -5523,6 +6531,16 @@}}}+ },+ {+ "name": "stable_fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }}]}@@ -5646,6 +6664,27 @@{"name": "is_cashback_enabled","type": "bool"+ },+ {+ "name": "buyback_fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 8+ ]+ }+ },+ {+ "name": "buyback_basis_points",+ "type": "u64"+ },+ {+ "name": "boost_authority",+ "type": "pubkey"+ },+ {+ "name": "boost_enabled",+ "type": "bool"}]}@@ -5692,6 +6731,38 @@]}},+ {+ "name": "InitBoostEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "i128"+ },+ {+ "name": "real_quote_reserves_after",+ "type": "u64"+ }+ ]+ }+ },{"name": "InitUserVolumeAccumulatorEvent","type": {@@ -5808,6 +6879,13 @@{"name": "is_cashback_coin","type": "bool"+ },+ {+ "name": "virtual_quote_reserves",+ "docs": [+ "For non-boost pools, value is 0, so the behavior is identical to legacy pools."+ ],+ "type": "i128"}]}@@ -5941,6 +7019,26 @@{"name": "cashback","type": "u64"+ },+ {+ "name": "buyback_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "buyback_fee",+ "type": "u64"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "i128"+ },+ {+ "name": "can_boost",+ "type": "bool"+ },+ {+ "name": "base_supply",+ "type": "u64"}]}@@ -5973,6 +7071,30 @@]}},+ {+ "name": "SetBoostAuthorityEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "old_boost_authority",+ "type": "pubkey"+ },+ {+ "name": "new_boost_authority",+ "type": "pubkey"+ }+ ]+ }+ },{"name": "SetMetaplexCoinCreatorEvent","type": {diff --git a/contracts/idl/pump/pump_fees.json b/contracts/idl/pump/pump_fees.jsonindex 8b45bbbeb..900a99fba 100644--- a/contracts/idl/pump/pump_fees.json+++ b/contracts/idl/pump/pump_fees.json@@ -117,225 +117,131 @@}},{- "name": "create_fee_sharing_config",- "docs": [- "Create Fee Sharing Config"- ],+ "name": "claim_social_fee_pda_v2","discriminator": [- 195,- 78,- 86,- 76,- 111,- 52,- 251,- 213+ 17,+ 77,+ 240,+ 134,+ 58,+ 188,+ 53,+ 149],"accounts": [{- "name": "event_authority",- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,- 105,- 116,- 121- ]- }- ]- }+ "name": "recipient",+ "writable": true},{- "name": "program",- "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ "name": "social_fee_pda",+ "writable": true},{- "name": "payer",- "writable": true,- "signer": true+ "name": "quote_mint",+ "docs": [+ "Quote mint for claim"+ ],+ "writable": true},{- "name": "global",+ "name": "associated_social_fee_pda",+ "writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 103,- 108,- 111,- 98,- 97,- 108- ]+ "kind": "account",+ "path": "social_fee_pda"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}],"program": {- "kind": "const",- "value": [- 1,- 86,- 224,- 246,- 147,- 102,- 90,- 207,- 68,- 219,- 21,- 104,- 191,- 23,- 91,- 170,- 81,- 137,- 203,- 151,- 245,- 210,- 255,- 59,- 101,- 93,- 43,- 182,- 253,- 109,- 24,- 176- ]+ "kind": "account",+ "path": "associated_token_program"}}},{- "name": "mint"- },- {- "name": "sharing_config",+ "name": "associated_recipient","writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 115,- 104,- 97,- 114,- 105,- 110,- 103,- 45,- 99,- 111,- 110,- 102,- 105,- 103- ]+ "kind": "account",+ "path": "recipient"},{"kind": "account",- "path": "mint"+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"}- ]+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }}},{- "name": "system_program",- "address": "11111111111111111111111111111111"+ "name": "quote_token_program"},{- "name": "bonding_curve",- "writable": true,+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "fee_program_global","pda": {"seeds": [{"kind": "const","value": [- 98,+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,111,- 110,- 100,- 105,- 110,103,- 45,- 99,- 117,114,- 118,- 101+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108]- },- {- "kind": "account",- "path": "mint"}- ],- "program": {- "kind": "const",- "value": [- 1,- 86,- 224,- 246,- 147,- 102,- 90,- 207,- 68,- 219,- 21,- 104,- 191,- 23,- 91,- 170,- 81,- 137,- 203,- 151,- 245,- 210,- 255,- 59,- 101,- 93,- 43,- 182,- 253,- 109,- 24,- 176- ]- }+ ]}},{- "name": "pump_program",- "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ "name": "social_claim_authority",+ "signer": true,+ "relations": [+ "fee_program_global"+ ]},{- "name": "pump_event_authority",+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority","pda": {"seeds": [{@@ -360,59 +266,46 @@121]}- ],- "program": {- "kind": "const",- "value": [- 1,- 86,- 224,- 246,- 147,- 102,- 90,- 207,- 68,- 219,- 21,- 104,- 191,- 23,- 91,- 170,- 81,- 137,- 203,- 151,- 245,- 210,- 255,- 59,- 101,- 93,- 43,- 182,- 253,- 109,- 24,- 176- ]- }+ ]}},{- "name": "pool",- "writable": true,- "optional": true- },+ "name": "program"+ }+ ],+ "args": [{- "name": "pump_amm_program",- "optional": true,- "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ "name": "user_id",+ "type": "string"},{- "name": "pump_amm_event_authority",- "optional": true,+ "name": "platform",+ "type": "u8"+ }+ ],+ "returns": {+ "option": {+ "defined": {+ "name": "SocialFeePdaClaimed"+ }+ }+ }+ },+ {+ "name": "crank_donation_fee_pda",+ "discriminator": [+ 220,+ 10,+ 189,+ 167,+ 169,+ 17,+ 25,+ 69+ ],+ "accounts": [+ {+ "name": "event_authority","pda": {"seeds": [{@@ -437,75 +330,37 @@121]}- ],- "program": {- "kind": "const",- "value": [- 12,- 20,- 222,- 252,- 130,- 94,- 198,- 118,- 148,- 37,- 8,- 24,- 187,- 101,- 64,- 101,- 244,- 41,- 141,- 49,- 86,- 213,- 113,- 180,- 212,- 248,- 9,- 12,- 24,- 233,- 168,- 99- ]- }+ ]}- }- ],- "args": []- },- {- "name": "create_social_fee_pda",- "discriminator": [- 144,- 224,- 59,- 211,- 78,- 248,- 202,- 220- ],- "accounts": [+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },{"name": "payer",+ "docs": [+ "Pays rent when [`temp_wsol_token_account`] is created (`init_if_needed`); receives rent when it is closed after the relay CPI."+ ],"writable": true,"signer": true},- {- "name": "social_fee_pda",- "writable": true- },{"name": "system_program","address": "11111111111111111111111111111111"},+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "rent",+ "address": "SysvarRent111111111111111111111111111111111"+ },{"name": "fee_program_global","pda": {@@ -537,241 +392,325 @@}},{- "name": "event_authority",+ "name": "donation_fee_pda",+ "writable": true,"pda": {"seeds": [{"kind": "const","value": [- 95,- 95,- 101,- 118,- 101,+ 100,+ 111,110,- 116,- 95,97,- 117,116,- 104,- 111,- 114,105,- 116,- 121+ 111,+ 110,+ 45,+ 102,+ 101,+ 101,+ 45,+ 112,+ 100,+ 97]+ },+ {+ "kind": "account",+ "path": "donation_fee_pda.base_mint",+ "account": "DonationFeePda"+ },+ {+ "kind": "account",+ "path": "donation_fee_pda.config_id",+ "account": "DonationFeePda"}]}},{- "name": "program"- }- ],- "args": [- {- "name": "user_id",- "type": "string"+ "name": "quote_mint",+ "docs": [+ "Quote mint from donation fee pda."+ ],+ "writable": true},{- "name": "platform",- "type": "u8"- }- ]- },- {- "name": "get_fees",- "docs": [- "Get Fees"- ],- "discriminator": [- 231,- 37,- 126,- 85,- 207,- 91,- 63,- 52- ],- "accounts": [- {- "name": "fee_config",+ "name": "donation_fee_pda_ata",+ "docs": [+ "WSOL ATA owned by `donation_fee_pda`."+ ],+ "writable": true,"pda": {"seeds": [+ {+ "kind": "account",+ "path": "donation_fee_pda"+ },{"kind": "const","value": [- 102,- 101,+ 6,+ 221,+ 246,+ 225,+ 215,101,+ 161,+ 147,+ 217,+ 203,+ 225,+ 70,+ 206,+ 235,+ 121,+ 172,+ 28,+ 180,+ 133,+ 237,95,- 99,- 111,- 110,- 102,- 105,- 103+ 91,+ 55,+ 145,+ 58,+ 140,+ 245,+ 133,+ 126,+ 255,+ 0,+ 169]},{"kind": "account",- "path": "config_program_id"+ "path": "quote_mint"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }}},{- "name": "config_program_id"- }- ],- "args": [+ "name": "donation_relay_program",+ "address": "RLAYHr9TRFcKB2ubYQhspcnXiaGpaVzNQvHytt47RZu"+ },{- "name": "is_pump_pool",- "type": "bool"+ "name": "donation_relay_event_authority"},{- "name": "market_cap_lamports",- "type": "u128"+ "name": "mint_whitelist"},{- "name": "trade_size_lamports",- "type": "u64"+ "name": "epoch_tracker",+ "writable": true+ },+ {+ "name": "debouncer",+ "writable": true+ },+ {+ "name": "debouncer_ata",+ "writable": true}],- "returns": {- "defined": {- "name": "Fees"- }- }+ "args": []},{- "name": "initialize_fee_config",- "docs": [- "Initialize FeeConfig admin"- ],+ "name": "create_donation_fee_pda","discriminator": [- 62,- 162,- 20,- 133,- 121,- 65,- 145,- 27- ],- "accounts": [- {- "name": "admin",- "writable": true,- "signer": true,- "address": "8LWu7QM2dGR1G8nKDHthckea57bkCzXyBTAKPJUBDHo8"- },+ 244,+ 139,+ 16,+ 88,+ 14,+ 255,+ 122,+ 26+ ],+ "accounts": [{- "name": "fee_config",- "writable": true,+ "name": "event_authority","pda": {"seeds": [{"kind": "const","value": [- 102,+ 95,+ 95,101,+ 118,101,+ 110,+ 116,95,- 99,+ 97,+ 117,+ 116,+ 104,111,- 110,- 102,+ 114,105,- 103+ 116,+ 121]- },- {- "kind": "account",- "path": "config_program_id"}]}},{- "name": "system_program",- "address": "11111111111111111111111111111111"+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"},{- "name": "config_program_id"+ "name": "payer",+ "writable": true,+ "signer": true},{- "name": "event_authority",+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "fee_program_global","pda": {"seeds": [{"kind": "const","value": [- 95,- 95,+ 102,101,- 118,101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "donation_fee_pda",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 100,+ 111,110,- 116,- 95,97,- 117,116,- 104,- 111,- 114,105,- 116,- 121+ 111,+ 110,+ 45,+ 102,+ 101,+ 101,+ 45,+ 112,+ 100,+ 97]+ },+ {+ "kind": "account",+ "path": "base_mint"+ },+ {+ "kind": "account",+ "path": "config_id"}]}},{- "name": "program"- }- ],- "args": []- },- {- "name": "initialize_fee_program_global",- "discriminator": [- 35,- 215,- 130,- 84,- 233,- 56,- 124,- 167- ],- "accounts": [- {- "name": "authority",- "writable": true,- "signer": true,- "relations": [- "pump_global"+ "name": "config_id",+ "docs": [+ "stored on the PDA, so distinct `config_id`s for the same `base_mint` derive distinct addresses."]},{- "name": "pump_global",+ "name": "base_mint"+ },+ {+ "name": "bonding_curve","pda": {"seeds": [{"kind": "const","value": [- 103,- 108,- 111,98,- 97,- 108+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101]+ },+ {+ "kind": "account",+ "path": "base_mint"}],"program": {@@ -814,107 +753,60 @@}},{- "name": "fee_program_global",- "writable": true,+ "name": "pool"+ },+ {+ "name": "sharing_config",+ "docs": [+ "(derived from `[SHARING_CONFIG_SEED, base_mint]`)"+ ],"pda": {"seeds": [{"kind": "const","value": [- 102,- 101,- 101,- 45,- 112,+ 115,+ 104,+ 97,114,- 111,+ 105,+ 110,103,- 114,- 97,- 109,45,- 103,- 108,+ 99,111,- 98,- 97,- 108- ]- }- ]- }- },- {- "name": "system_program",- "address": "11111111111111111111111111111111"- },- {- "name": "event_authority",- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 95,- 95,- 101,- 118,- 101,110,- 116,- 95,- 97,- 117,- 116,- 104,- 111,- 114,+ 102,105,- 116,- 121+ 103]+ },+ {+ "kind": "account",+ "path": "base_mint"}]}- },- {- "name": "program"}],- "args": [- {- "name": "social_claim_authority",- "type": "pubkey"- },- {- "name": "disable_flags",- "type": "u8"- },- {- "name": "claim_rate_limit",- "type": "u64"- }- ]+ "args": []},{- "name": "reset_fee_sharing_config",+ "name": "create_fee_sharing_config","docs": [- "Reset Fee Sharing Config and distribute pending fees first"+ "Create Fee Sharing Config"],"discriminator": [- 10,- 2,- 182,- 95,- 16,- 127,- 129,- 186+ 195,+ 78,+ 86,+ 76,+ 111,+ 52,+ 251,+ 213],"accounts": [- {- "name": "new_admin"- },{"name": "event_authority","pda": {@@ -949,7 +841,8 @@"address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"},{- "name": "authority",+ "name": "payer",+ "writable": true,"signer": true},{@@ -1008,10 +901,7 @@}},{- "name": "mint",- "relations": [- "sharing_config"- ]+ "name": "mint"},{"name": "sharing_config",@@ -1044,8 +934,13 @@]}},+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },{"name": "bonding_curve",+ "writable": true,"pda": {"seeds": [{@@ -1110,77 +1005,6 @@}}},- {- "name": "pump_creator_vault",- "writable": true,- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 99,- 114,- 101,- 97,- 116,- 111,- 114,- 45,- 118,- 97,- 117,- 108,- 116- ]- },- {- "kind": "account",- "path": "sharing_config"- }- ],- "program": {- "kind": "const",- "value": [- 1,- 86,- 224,- 246,- 147,- 102,- 90,- 207,- 68,- 219,- 21,- 104,- 191,- 23,- 91,- 170,- 81,- 137,- 203,- 151,- 245,- 210,- 255,- 59,- 101,- 93,- 43,- 182,- 253,- 109,- 24,- 176- ]- }- }- },- {- "name": "system_program",- "address": "11111111111111111111111111111111"- },{"name": "pump_program","address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"@@ -1251,12 +1075,19 @@}}},+ {+ "name": "pool",+ "writable": true,+ "optional": true+ },{"name": "pump_amm_program",+ "optional": true,"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"},{- "name": "amm_event_authority",+ "name": "pump_amm_event_authority",+ "optional": true,"pda": {"seeds": [{@@ -1320,135 +1151,38 @@]}}- },- {- "name": "wsol_mint",- "address": "So11111111111111111111111111111111111111112"- },- {- "name": "token_program",- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"- },- {- "name": "associated_token_program",- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"- },- {- "name": "coin_creator_vault_authority",- "writable": true,- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 99,- 114,- 101,- 97,- 116,- 111,- 114,- 95,- 118,- 97,- 117,- 108,- 116- ]- },- {- "kind": "account",- "path": "sharing_config"- }- ],- "program": {- "kind": "const",- "value": [- 12,- 20,- 222,- 252,- 130,- 94,- 198,- 118,- 148,- 37,- 8,- 24,- 187,- 101,- 64,- 101,- 244,- 41,- 141,- 49,- 86,- 213,- 113,- 180,- 212,- 248,- 9,- 12,- 24,- 233,- 168,- 99- ]- }- }- },- {- "name": "coin_creator_vault_ata",- "writable": true}],"args": []},{- "name": "revoke_fee_sharing_authority",- "docs": [- "Revoke Fee Sharing Authority"- ],- "discriminator": [- 18,- 233,- 158,- 39,- 185,- 207,- 58,- 104- ],- "accounts": [],- "args": []- },- {- "name": "set_authority",+ "name": "create_social_fee_pda","discriminator": [- 133,- 250,- 37,- 21,- 110,- 163,- 26,- 121+ 144,+ 224,+ 59,+ 211,+ 78,+ 248,+ 202,+ 220],"accounts": [{- "name": "authority",+ "name": "payer","writable": true,- "signer": true,- "relations": [- "fee_program_global"- ]+ "signer": true+ },+ {+ "name": "social_fee_pda",+ "writable": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"},{"name": "fee_program_global",- "writable": true,"pda": {"seeds": [{@@ -1512,62 +1246,45 @@],"args": [{- "name": "new_authority",- "type": "pubkey"+ "name": "user_id",+ "type": "string"+ },+ {+ "name": "platform",+ "type": "u8"}]},{- "name": "set_claim_rate_limit",+ "name": "extend_fee_config",+ "docs": [+ "Realloc the fee_config PDA to [`FeeConfig::CURRENT_SIZE`] (signer pays rent delta)."+ ],"discriminator": [- 185,- 211,- 159,- 174,- 212,- 49,- 88,- 4+ 68,+ 179,+ 244,+ 90,+ 173,+ 56,+ 17,+ 217],"accounts": [{- "name": "authority",- "writable": true,- "signer": true,- "relations": [- "fee_program_global"- ]+ "name": "fee_config",+ "writable": true},{- "name": "fee_program_global",- "writable": true,- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 102,- 101,- 101,- 45,- 112,- 114,- 111,- 103,- 114,- 97,- 109,- 45,- 103,- 108,- 111,- 98,- 97,- 108- ]- }- ]- }+ "name": "user",+ "signer": true+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"},{"name": "event_authority",@@ -1602,37 +1319,26 @@"name": "program"}],- "args": [- {- "name": "claim_rate_limit",- "type": "u64"- }- ]+ "args": []},{- "name": "set_disable_flags",+ "name": "get_fees",+ "docs": [+ "Get Fees"+ ],"discriminator": [- 194,- 217,- 112,- 35,- 114,- 222,- 51,- 190+ 231,+ 37,+ 126,+ 85,+ 207,+ 91,+ 63,+ 52],"accounts": [{- "name": "authority",- "writable": true,- "signer": true,- "relations": [- "fee_program_global"- ]- },- {- "name": "fee_program_global",- "writable": true,+ "name": "fee_config","pda": {"seeds": [{@@ -1641,118 +1347,147 @@102,101,101,- 45,- 112,- 114,- 111,- 103,- 114,- 97,- 109,- 45,- 103,- 108,- 111,- 98,- 97,- 108- ]- }- ]- }- },- {- "name": "event_authority",- "pda": {- "seeds": [- {- "kind": "const",- "value": [- 95,- 95,- 101,- 118,- 101,- 110,- 116,95,- 97,- 117,- 116,- 104,+ 99,111,- 114,+ 110,+ 102,105,- 116,- 121+ 103]+ },+ {+ "kind": "account",+ "path": "config_program_id"}]}},{- "name": "program"+ "name": "config_program_id"}],"args": [{- "name": "disable_flags",- "type": "u8"+ "name": "is_pump_pool",+ "type": "bool"+ },+ {+ "name": "market_cap_lamports",+ "type": "u128"+ },+ {+ "name": "trade_size_lamports",+ "type": "u64"+ },+ {+ "name": "is_new_quote_mint",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }}- ]+ ],+ "returns": {+ "defined": {+ "name": "Fees"+ }+ }},{- "name": "set_social_claim_authority",+ "name": "initialize_buyback","discriminator": [- 147,- 54,- 184,- 154,- 136,- 237,- 185,- 153+ 250,+ 129,+ 236,+ 160,+ 227,+ 36,+ 103,+ 134],"accounts": [{- "name": "authority",+ "name": "payer","writable": true,- "signer": true,- "relations": [- "fee_program_global"- ]+ "signer": true},{- "name": "fee_program_global",+ "name": "buyback_vault",+ "writable": true+ },+ {+ "name": "buyback_vault_ata","writable": true,"pda": {"seeds": [{- "kind": "const",- "value": [- 102,- 101,- 101,- 45,- 112,- 114,- 111,- 103,- 114,- 97,- 109,- 45,- 103,- 108,- 111,- 98,- 97,- 108- ]+ "kind": "account",+ "path": "buyback_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }}},+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "mint"+ },+ {+ "name": "token_program"+ },{"name": "event_authority","pda": {@@ -1788,51 +1523,32 @@],"args": [{- "name": "social_claim_authority",- "type": "pubkey"+ "name": "index",+ "type": "u8"}]},{- "name": "transfer_fee_sharing_authority",+ "name": "initialize_fee_config","docs": [- "Transfer Fee Sharing Authority"+ "Initialize FeeConfig admin"],"discriminator": [- 202,- 10,- 75,- 200,- 164,- 34,- 210,- 96- ],- "accounts": [],- "args": []- },- {- "name": "update_admin",- "docs": [- "Update admin (only callable by admin)"- ],- "discriminator": [- 161,- 176,- 40,- 213,- 60,- 184,- 179,- 228+ 62,+ 162,+ 20,+ 133,+ 121,+ 65,+ 145,+ 27],"accounts": [{"name": "admin",+ "writable": true,"signer": true,- "relations": [- "fee_config"- ]+ "address": "8LWu7QM2dGR1G8nKDHthckea57bkCzXyBTAKPJUBDHo8"},{"name": "fee_config",@@ -1862,13 +1578,2579 @@}},{- "name": "new_admin"+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "initialize_fee_program_global",+ "discriminator": [+ 35,+ 215,+ 130,+ 84,+ 233,+ 56,+ 124,+ 167+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "pump_global"+ ]+ },+ {+ "name": "pump_global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "social_claim_authority",+ "type": "pubkey"+ },+ {+ "name": "disable_flags",+ "type": "u8"+ },+ {+ "name": "claim_rate_limit",+ "type": "u64"+ }+ ]+ },+ {+ "name": "reset_fee_sharing_config",+ "docs": [+ "Reset Fee Sharing Config and distribute pending fees first"+ ],+ "discriminator": [+ 10,+ 2,+ 182,+ 95,+ 16,+ 127,+ 129,+ 186+ ],+ "accounts": [+ {+ "name": "new_admin"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "authority",+ "signer": true+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "mint",+ "relations": [+ "sharing_config"+ ]+ },+ {+ "name": "sharing_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "pump_program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "pump_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_amm_program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "amm_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "wsol_mint",+ "address": "So11111111111111111111111111111111111111112"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "wsol_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ }+ ],+ "args": []+ },+ {+ "name": "reset_fee_sharing_config_v2",+ "docs": [+ "Reset Fee Sharing Config and distribute pending fees first"+ ],+ "discriminator": [+ 169,+ 245,+ 17,+ 209,+ 94,+ 91,+ 248,+ 128+ ],+ "accounts": [+ {+ "name": "new_admin"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "mint",+ "relations": [+ "sharing_config"+ ]+ },+ {+ "name": "sharing_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pump_creator_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "pump_program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "pump_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_amm_program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "amm_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ }+ ],+ "args": []+ },+ {+ "name": "revoke_fee_sharing_authority",+ "docs": [+ "Revoke Fee Sharing Authority"+ ],+ "discriminator": [+ 18,+ 233,+ 158,+ 39,+ 185,+ 207,+ 58,+ 104+ ],+ "accounts": [],+ "args": []+ },+ {+ "name": "set_authority",+ "discriminator": [+ 133,+ 250,+ 37,+ 21,+ 110,+ 163,+ 26,+ 121+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "new_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "set_claim_rate_limit",+ "discriminator": [+ 185,+ 211,+ 159,+ 174,+ 212,+ 49,+ 88,+ 4+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "claim_rate_limit",+ "type": "u64"+ }+ ]+ },+ {+ "name": "set_disable_flags",+ "discriminator": [+ 194,+ 217,+ 112,+ 35,+ 114,+ 222,+ 51,+ 190+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "disable_flags",+ "type": "u8"+ }+ ]+ },+ {+ "name": "set_social_claim_authority",+ "discriminator": [+ 147,+ 54,+ 184,+ 154,+ 136,+ 237,+ 185,+ 153+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "social_claim_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "sweep_buyback",+ "discriminator": [+ 138,+ 33,+ 204,+ 38,+ 207,+ 161,+ 159,+ 226+ ],+ "accounts": [+ {+ "name": "destination",+ "writable": true+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "buyback_vault"+ ]+ },+ {+ "name": "buyback_vault",+ "writable": true+ },+ {+ "name": "buyback_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "buyback_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "destination_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "destination"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "mint"+ },+ {+ "name": "token_program"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "index",+ "type": "u8"+ }+ ]+ },+ {+ "name": "transfer_fee_sharing_authority",+ "docs": [+ "Transfer Fee Sharing Authority"+ ],+ "discriminator": [+ 202,+ 10,+ 75,+ 200,+ 164,+ 34,+ 210,+ 96+ ],+ "accounts": [],+ "args": []+ },+ {+ "name": "update_admin",+ "docs": [+ "Update admin (only callable by admin)"+ ],+ "discriminator": [+ 161,+ 176,+ 40,+ 213,+ 60,+ 184,+ 179,+ 228+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "fee_config"+ ]+ },+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "new_admin"+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "update_buyback_authority",+ "discriminator": [+ 66,+ 98,+ 113,+ 202,+ 121,+ 37,+ 219,+ 107+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "buyback_vault",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "index",+ "type": "u8"+ },+ {+ "name": "new_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "update_buyback_claim_rate_limit",+ "discriminator": [+ 186,+ 95,+ 135,+ 190,+ 255,+ 199,+ 137,+ 170+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "buyback_vault",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "index",+ "type": "u8"+ },+ {+ "name": "claim_rate_limit",+ "type": "i64"+ }+ ]+ },+ {+ "name": "update_fee_config",+ "docs": [+ "Set/Replace fee parameters entirely (only callable by admin)"+ ],+ "discriminator": [+ 104,+ 184,+ 103,+ 242,+ 88,+ 151,+ 107,+ 20+ ],+ "accounts": [+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "fee_config"+ ]+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "flat_fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ }+ ]+ },+ {+ "name": "update_fee_shares",+ "docs": [+ "Update Fee Shares, make sure to distribute all the fees before calling this"+ ],+ "discriminator": [+ 189,+ 13,+ 136,+ 99,+ 187,+ 164,+ 237,+ 35+ ],+ "accounts": [+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "authority",+ "signer": true+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "mint",+ "relations": [+ "sharing_config"+ ]+ },+ {+ "name": "sharing_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"},{- "name": "config_program_id"+ "name": "pump_program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"},{- "name": "event_authority",+ "name": "pump_event_authority","pda": {"seeds": [{@@ -1893,136 +4175,227 @@121]}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }}},{- "name": "program"- }- ],- "args": []- },- {- "name": "update_fee_config",- "docs": [- "Set/Replace fee parameters entirely (only callable by admin)"- ],- "discriminator": [- 104,- 184,- 103,- 242,- 88,- 151,- 107,- 20- ],- "accounts": [+ "name": "pump_amm_program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },{- "name": "fee_config",- "writable": true,+ "name": "amm_event_authority","pda": {"seeds": [{"kind": "const","value": [- 102,+ 95,+ 95,101,+ 118,101,+ 110,+ 116,95,- 99,+ 97,+ 117,+ 116,+ 104,111,- 110,- 102,+ 114,105,- 103+ 116,+ 121]- },- {- "kind": "account",- "path": "config_program_id"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }}},{- "name": "admin",- "signer": true,- "relations": [- "fee_config"- ]+ "name": "wsol_mint",+ "address": "So11111111111111111111111111111111111111112"},{- "name": "config_program_id"+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{- "name": "event_authority",+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,"pda": {"seeds": [{"kind": "const","value": [- 95,- 95,- 101,- 118,+ 99,+ 114,101,- 110,- 116,- 95,97,- 117,116,- 104,111,114,- 105,- 116,- 121+ 95,+ 118,+ 97,+ 117,+ 108,+ 116]+ },+ {+ "kind": "account",+ "path": "sharing_config"}- ]+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }}},{- "name": "program"+ "name": "coin_creator_vault_ata",+ "writable": true}],"args": [{- "name": "fee_tiers",+ "name": "shareholders","type": {"vec": {"defined": {- "name": "FeeTier"- }- }- }- },- {- "name": "flat_fees",- "type": {- "defined": {- "name": "Fees"+ "name": "Shareholder"+ }}}}]},{- "name": "update_fee_shares",+ "name": "update_fee_shares_v2","docs": ["Update Fee Shares, make sure to distribute all the fees before calling this"],"discriminator": [- 189,- 13,- 136,- 99,- 187,- 164,- 237,- 35+ 111,+ 251,+ 49,+ 6,+ 78,+ 78,+ 106,+ 18],"accounts": [{@@ -2060,6 +4433,7 @@},{"name": "authority",+ "writable": true,"signer": true},{@@ -2287,6 +4661,30 @@}}},+ {+ "name": "pump_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pump_creator_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },{"name": "system_program","address": "11111111111111111111111111111111"@@ -2362,11 +4760,245 @@}},{- "name": "pump_amm_program",- "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ "name": "pump_amm_program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "amm_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ }+ ],+ "args": [+ {+ "name": "shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ }+ ]+ },+ {+ "name": "update_stable_fee_config",+ "docs": [+ "Set/Replace fee parameters entirely (only callable by admin)"+ ],+ "discriminator": [+ 107,+ 169,+ 100,+ 179,+ 134,+ 155,+ 146,+ 221+ ],+ "accounts": [+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "fee_config"+ ]+ },+ {+ "name": "config_program_id"},{- "name": "amm_event_authority",+ "name": "event_authority","pda": {"seeds": [{@@ -2391,157 +5023,143 @@121]}- ],- "program": {- "kind": "const",- "value": [- 12,- 20,- 222,- 252,- 130,- 94,- 198,- 118,- 148,- 37,- 8,- 24,- 187,- 101,- 64,- 101,- 244,- 41,- 141,- 49,- 86,- 213,- 113,- 180,- 212,- 248,- 9,- 12,- 24,- 233,- 168,- 99- ]- }+ ]}},{- "name": "wsol_mint",- "address": "So11111111111111111111111111111111111111112"+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ }+ ]+ },+ {+ "name": "upsert_fee_tiers",+ "docs": [+ "Update or expand fee tiers (only callable by admin)"+ ],+ "discriminator": [+ 227,+ 23,+ 150,+ 12,+ 77,+ 86,+ 94,+ 4+ ],+ "accounts": [+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }},{- "name": "token_program",- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ "name": "admin",+ "signer": true,+ "relations": [+ "fee_config"+ ]},{- "name": "associated_token_program",- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ "name": "config_program_id"},{- "name": "coin_creator_vault_authority",- "writable": true,+ "name": "event_authority","pda": {"seeds": [{"kind": "const","value": [- 99,- 114,+ 95,+ 95,101,- 97,+ 118,+ 101,+ 110,116,- 111,- 114,95,- 118,97,117,- 108,- 116+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121]- },- {- "kind": "account",- "path": "sharing_config"}- ],- "program": {- "kind": "const",- "value": [- 12,- 20,- 222,- 252,- 130,- 94,- 198,- 118,- 148,- 37,- 8,- 24,- 187,- 101,- 64,- 101,- 244,- 41,- 141,- 49,- 86,- 213,- 113,- 180,- 212,- 248,- 9,- 12,- 24,- 233,- 168,- 99- ]- }+ ]}},{- "name": "coin_creator_vault_ata",- "writable": true+ "name": "program"}],"args": [{- "name": "shareholders",+ "name": "fee_tiers","type": {"vec": {"defined": {- "name": "Shareholder"+ "name": "FeeTier"}}}+ },+ {+ "name": "offset",+ "type": "u8"}]},{- "name": "upsert_fee_tiers",+ "name": "upsert_stable_fee_tiers","docs": ["Update or expand fee tiers (only callable by admin)"],"discriminator": [- 227,- 23,- 150,- 12,- 77,- 86,- 94,- 4+ 181,+ 160,+ 162,+ 252,+ 74,+ 76,+ 224,+ 221],"accounts": [{@@ -2646,6 +5264,32 @@96]},+ {+ "name": "BuybackVault",+ "discriminator": [+ 153,+ 166,+ 71,+ 144,+ 179,+ 189,+ 137,+ 251+ ]+ },+ {+ "name": "DonationFeePda",+ "discriminator": [+ 246,+ 197,+ 96,+ 9,+ 193,+ 30,+ 93,+ 115+ ]+ },{"name": "FeeConfig","discriminator": [@@ -2723,20 +5367,59 @@206,150]- }- ],- "events": [+ }+ ],+ "events": [+ {+ "name": "CreateFeeSharingConfigEvent",+ "discriminator": [+ 133,+ 105,+ 170,+ 200,+ 184,+ 116,+ 251,+ 88+ ]+ },+ {+ "name": "DonationFeePdaCranked",+ "discriminator": [+ 30,+ 208,+ 107,+ 93,+ 177,+ 0,+ 223,+ 78+ ]+ },+ {+ "name": "DonationFeePdaCreated",+ "discriminator": [+ 94,+ 20,+ 137,+ 239,+ 35,+ 77,+ 225,+ 235+ ]+ },{- "name": "CreateFeeSharingConfigEvent",+ "name": "ExtendFeeConfigEvent","discriminator": [- 133,- 105,- 170,- 200,- 184,- 116,- 251,- 88+ 226,+ 203,+ 224,+ 35,+ 153,+ 10,+ 88,+ 51]},{@@ -2856,6 +5539,19 @@169]},+ {+ "name": "SweepBuybackEvent",+ "discriminator": [+ 43,+ 56,+ 42,+ 214,+ 153,+ 57,+ 166,+ 137+ ]+ },{"name": "UpdateAdminEvent","discriminator": [@@ -2895,6 +5591,19 @@203]},+ {+ "name": "UpdateStableFeeConfigEvent",+ "discriminator": [+ 94,+ 5,+ 43,+ 237,+ 103,+ 147,+ 232,+ 245+ ]+ },{"name": "UpsertFeeTiersEvent","discriminator": [@@ -2907,6 +5616,19 @@33,204]+ },+ {+ "name": "UpsertStableFeeTiersEvent",+ "discriminator": [+ 232,+ 237,+ 237,+ 52,+ 98,+ 146,+ 73,+ 243+ ]}],"errors": [@@ -3031,68 +5753,288 @@"msg": "Instruction is deprecated"},{- "code": 6024,- "name": "FeeSharesAlreadyUpdated",- "msg": "Reward split can only be updated once"- }- ],- "types": [- {- "name": "BondingCurve",+ "code": 6024,+ "name": "FeeSharesAlreadyUpdated",+ "msg": "Reward split can only be updated once"+ },+ {+ "code": 6025,+ "name": "MathOverflow",+ "msg": "Math overflow"+ },+ {+ "code": 6026,+ "name": "InvalidBuybackIndex",+ "msg": "Invalid buybackindex"+ },+ {+ "code": 6027,+ "name": "ClaimRateLimitExceeded",+ "msg": "Claim rate limit exceeded"+ },+ {+ "code": 6028,+ "name": "InvalidFeeConfigAccount",+ "msg": "Account is not a valid FeeConfig for this instruction"+ },+ {+ "code": 6029,+ "name": "AccountTypeNotSupported",+ "msg": "Account type not supported"+ },+ {+ "code": 6030,+ "name": "InvalidMint",+ "msg": "Mint does not match quote mint"+ },+ {+ "code": 6031,+ "name": "UnsupportedQuoteMint",+ "msg": "Unsupported quote mint"+ }+ ],+ "types": [+ {+ "name": "BondingCurve",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "u64"+ },+ {+ "name": "real_token_reserves",+ "type": "u64"+ },+ {+ "name": "real_quote_reserves",+ "type": "u64"+ },+ {+ "name": "token_total_supply",+ "type": "u64"+ },+ {+ "name": "complete",+ "type": "bool"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ }+ ]+ }+ },+ {+ "name": "BuybackVault",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "authority",+ "type": "pubkey"+ },+ {+ "name": "total_claimed",+ "type": "u64"+ },+ {+ "name": "total_claimed_token1",+ "type": "u64"+ },+ {+ "name": "total_claimed_token2",+ "type": "u64"+ },+ {+ "name": "last_claimed",+ "type": "i64"+ },+ {+ "name": "claim_rate_limit",+ "type": "i64"+ },+ {+ "name": "_reserved",+ "type": {+ "array": [+ "u8",+ 128+ ]+ }+ }+ ]+ }+ },+ {+ "name": "ConfigStatus",+ "type": {+ "kind": "enum",+ "variants": [+ {+ "name": "Paused"+ },+ {+ "name": "Active"+ }+ ]+ }+ },+ {+ "name": "CreateFeeSharingConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "pool",+ "type": {+ "option": "pubkey"+ }+ },+ {+ "name": "sharing_config",+ "type": "pubkey"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "initial_shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ },+ {+ "name": "status",+ "type": {+ "defined": {+ "name": "ConfigStatus"+ }+ }+ }+ ]+ }+ },+ {+ "name": "DonationFeePda",+ "docs": [+ "Escrow PDA for donation relay: one per (mint, donation campaign `config_id`)."+ ],+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "type": "u8"+ },+ {+ "name": "version",+ "type": "u8"+ },+ {+ "name": "config_id",+ "type": "pubkey"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "total_donated",+ "type": "u64"+ },+ {+ "name": "last_crank_ts",+ "type": "i64"+ },+ {+ "name": "_reserved",+ "type": {+ "array": [+ "u8",+ 64+ ]+ }+ }+ ]+ }+ },+ {+ "name": "DonationFeePdaCranked","type": {"kind": "struct","fields": [{- "name": "virtual_token_reserves",- "type": "u64"+ "name": "timestamp",+ "type": "i64"},{- "name": "virtual_sol_reserves",- "type": "u64"+ "name": "signer",+ "type": "pubkey"},{- "name": "real_token_reserves",- "type": "u64"+ "name": "donation_fee_pda",+ "type": "pubkey"},{- "name": "real_sol_reserves",- "type": "u64"+ "name": "config_id",+ "type": "pubkey"},{- "name": "token_total_supply",- "type": "u64"+ "name": "base_mint",+ "type": "pubkey"},{- "name": "complete",- "type": "bool"+ "name": "quote_mint",+ "type": "pubkey"},{"name": "creator","type": "pubkey"},{- "name": "is_mayhem_mode",- "type": "bool"- }- ]- }- },- {- "name": "ConfigStatus",- "type": {- "kind": "enum",- "variants": [- {- "name": "Paused"- },- {- "name": "Active"+ "name": "amount",+ "type": "u64"}]}},{- "name": "CreateFeeSharingConfigEvent",+ "name": "DonationFeePdaCreated","type": {"kind": "struct","fields": [@@ -3101,44 +6043,56 @@"type": "i64"},{- "name": "mint",+ "name": "created_by","type": "pubkey"},{- "name": "bonding_curve",+ "name": "donation_fee_pda","type": "pubkey"},{- "name": "pool",- "type": {- "option": "pubkey"- }+ "name": "config_id",+ "type": "pubkey"},{- "name": "sharing_config",+ "name": "base_mint","type": "pubkey"},{- "name": "admin",+ "name": "quote_mint","type": "pubkey"},{- "name": "initial_shareholders",- "type": {- "vec": {- "defined": {- "name": "Shareholder"- }- }- }+ "name": "creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "ExtendFeeConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "fee_config",+ "type": "pubkey"},{- "name": "status",- "type": {- "defined": {- "name": "ConfigStatus"- }- }+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "current_size",+ "type": "u64"+ },+ {+ "name": "new_size",+ "type": "u64"+ },+ {+ "name": "timestamp",+ "type": "i64"}]}@@ -3185,6 +6139,19 @@}}}+ },+ {+ "name": "stable_fee_tiers",+ "docs": [+ "The fee tiers"+ ],+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }}]}@@ -3412,6 +6379,15 @@]}},+ {+ "name": "OptionBool",+ "type": {+ "kind": "struct",+ "fields": [+ "bool"+ ]+ }+ },{"name": "Pool","type": {@@ -3686,12 +6662,16 @@"name": "last_claimed","type": "u64"},+ {+ "name": "total_stable_claimed",+ "type": "u64"+ },{"name": "_reserved","type": {"array": ["u8",- 128+ 120]}}@@ -3746,6 +6726,14 @@{"name": "recipient_balance_after","type": "u64"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "lifetime_stable_claimed",+ "type": "u64"}]}@@ -3778,6 +6766,38 @@]}},+ {+ "name": "SweepBuybackEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "index",+ "type": "u8"+ },+ {+ "name": "sol_amount",+ "type": "u64"+ },+ {+ "name": "token_amount",+ "type": "u64"+ },+ {+ "name": "destination",+ "type": "pubkey"+ },+ {+ "name": "buyback_vault",+ "type": "pubkey"+ },+ {+ "name": "mint",+ "type": "pubkey"+ }+ ]+ }+ },{"name": "UpdateAdminEvent","type": {@@ -3874,6 +6894,44 @@]}},+ {+ "name": "UpdateStableFeeConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "fee_config",+ "type": "pubkey"+ },+ {+ "name": "stable_fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "flat_fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ }+ ]+ }+ },{"name": "UpsertFeeTiersEvent","type": {@@ -3907,6 +6965,40 @@}]}+ },+ {+ "name": "UpsertStableFeeTiersEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "fee_config",+ "type": "pubkey"+ },+ {+ "name": "stable_fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "offset",+ "type": "u8"+ }+ ]+ }}],"constants": [@@ -3920,6 +7012,36 @@},"value": "[99, 114, 101, 97, 116, 111, 114, 95, 118, 97, 117, 108, 116]"},+ {+ "name": "BUYBACK_VAULT_SEED",+ "type": {+ "array": [+ "u8",+ 13+ ]+ },+ "value": "[98, 117, 121, 98, 97, 99, 107, 45, 118, 97, 117, 108, 116]"+ },+ {+ "name": "DEBOUNCER_V1",+ "type": "bytes",+ "value": "[100, 101, 98, 111, 117, 110, 99, 101, 114, 95, 118, 49]"+ },+ {+ "name": "DONATION_FEE_PDA_SEED",+ "type": {+ "array": [+ "u8",+ 16+ ]+ },+ "value": "[100, 111, 110, 97, 116, 105, 111, 110, 45, 102, 101, 101, 45, 112, 100, 97]"+ },+ {+ "name": "EPOCH_TRACKER_V1",+ "type": "bytes",+ "value": "[101, 112, 111, 99, 104, 95, 116, 114, 97, 99, 107, 101, 114, 95, 118, 49]"+ },{"name": "FEE_CONFIG_SEED","type": "bytes",@@ -3935,6 +7057,26 @@},"value": "[102, 101, 101, 45, 112, 114, 111, 103, 114, 97, 109, 45, 103, 108, 111, 98, 97, 108]"},+ {+ "name": "IX_DONATE_PUBKEY_CONFIG_ID_WITH_PAYER_V1",+ "type": {+ "array": [+ "u8",+ 8+ ]+ },+ "value": "[120, 217, 57, 241, 135, 104, 139, 184]"+ },+ {+ "name": "MAX_BUYBACK_INDEX",+ "type": "u8",+ "value": "8"+ },+ {+ "name": "MINT_WHITELIST_V1",+ "type": "bytes",+ "value": "[109, 105, 110, 116, 95, 119, 104, 105, 116, 101, 108, 105, 115, 116, 95, 118, 49]"+ },{"name": "PUMP_CREATOR_VAULT_SEED","type": {diff --git a/data/changelog.json b/data/changelog.jsonindex 64caf90c8..3306ddbe4 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -14972,6 +14972,23 @@"docs"],"link": "/docs/news-rights"+ },+ {+ "date": "2026-07-20",+ "title": "Graduated-coin prices now match PumpSwap exactly",+ "summary": "PumpSwap changed how pool prices are calculated: a pool can now hold quote-side liquidity that is not sitting in its vault, and prices have to count it. Every place we price a graduated coin has been updated to match, so quotes, price impact, market caps, and agent trade fills line up with what actually executes on-chain. Coins that have not graduated are unaffected, and the change is exact rather than approximate: where a pool carries none of this liquidity, prices are identical to before.",+ "tags": [+ "fix",+ "infra"+ ]+ },+ {+ "date": "2026-07-20",+ "title": "Bonding curve progress reads correctly again in the MCP tools",+ "summary": "The agent tools that report a coin's bonding curve were showing every coin as 0% to graduation with zero reserves and a zero price. Pump renamed these on-chain fields when USDC became a possible trading pair, and the tools were still reading the old names, which quietly resolved to zero instead of failing. They now read the current fields, so graduation progress, reserves, and price reflect the real curve. Verified against live coins reading 2% through 70% to graduation.",+ "tags": [+ "fix"+ ]}]}diff --git a/docs/pumpfun-program/README.md b/docs/pumpfun-program/README.mdindex 63df0729d..7265ad338 100644--- a/docs/pumpfun-program/README.md+++ b/docs/pumpfun-program/README.md@@ -17,6 +17,7 @@ re-vendor from upstream to update. Nothing here is imported by application code.| Path | What it covers || --- | --- || `UPSTREAM-buy-sell-v2-announcement.md` | **The v2 trade-instruction announcement** — `buy_v2` / `sell_v2` / `buy_exact_quote_in_v2`, the move to a unified interface, and USDC-as-quote support. (Upstream's root README.) |+| `UPSTREAM-pumpswap-virtual-quote-reserves.md` | **PumpSwap virtual quote reserves** (2026-07-20) — quotes price on `quote_vault_balance + virtual_quote_reserves`. The double-count and silent-default traps, and every three.ws surface that had to change. || `idl/pump.json` | Bonding-curve program IDL (canonical account/arg shapes). || `idl/pump_amm.json` | PumpSwap AMM (graduated pools) IDL. || `idl/pump_fees.json` | Fee program IDL (`fee_config`, `sharing_config`, creator-fee sharing). |diff --git a/docs/pumpfun-program/UPSTREAM-pumpswap-virtual-quote-reserves.md b/docs/pumpfun-program/UPSTREAM-pumpswap-virtual-quote-reserves.mdnew file mode 100644index 000000000..6fb1e1dbe--- /dev/null+++ b/docs/pumpfun-program/UPSTREAM-pumpswap-virtual-quote-reserves.md@@ -0,0 +1,109 @@+# PumpSwap: virtual quote reserves++Upstream announcement, plus what three.ws had to change to stay correctly priced.++## What changed++The PumpSwap (`pump_amm`) `Pool` account carries a field appended to the end of+the struct:++```text+virtual_quote_reserves: u64+```++Quotes are computed against the pool's **effective** quote reserves, not the raw+balance sitting in the quote vault:++```text+effective_quote_reserves = quote_vault_balance + virtual_quote_reserves+```++Buys and sells are both priced on `effective_quote_reserves`. Pricing off the raw+vault balance alone under-states the quote side of the pool, which under-prices+the token.++`BuyEvent` and `SellEvent` also carry `virtual_quote_reserves`, appended. Because+it is appended, existing Borsh decoders keep decoding the earlier fields+correctly. Indexers that rebuild reserves from the event stream need it to+reconstruct effective reserves.++## Rollout++| Phase | Date | Behaviour |+|---|---|---|+| 1 | 2026-07-15 | Field ships, `0` on every pool. `effective == raw`, so quotes are byte-identical to before. Integrate here. |+| 2 | 2026-07-20, 10:00 EST | Launchpad-coin pools begin carrying a non-zero value. Anything still pricing off the raw vault balance starts mispricing. |++Non-launchpad pools keep `virtual_quote_reserves` at `0` indefinitely, where the+change is a no-op.++## The integration trap++The SDK's quote functions take `virtualQuoteReserves` as its **own argument** and+perform the addition internally:++```js+const effectiveQuoteReserve = quoteReserve.add(virtualQuoteReserves);+```++So pass the **raw** vault balance as `quoteReserve` alongside the virtual figure.+Passing an already-summed reserve double-counts the virtual liquidity.++The argument also **defaults to `0`**. An integration that upgrades the SDK but+never passes the field gets no error and no warning: it silently keeps pricing+off the raw vault balance. This fails quietly, as bad numbers, not as a crash.++```js+// correct — SDK adds the two+sellBaseInput({ base, slippage, baseReserve, quoteReserve, virtualQuoteReserves, ... })++// wrong — double-counts the virtual reserves+sellBaseInput({ base, slippage, baseReserve, quoteReserve: effectiveQuoteReserve, virtualQuoteReserves, ... })++// wrong — silently prices off the raw vault balance+sellBaseInput({ base, slippage, baseReserve, quoteReserve, ... })+```++The SDK's **instance** methods (`PumpAmmSdk#buyQuoteInput(swapState, …)` and+friends) read `pool.virtualQuoteReserves` off the swap state themselves, so those+call sites are correct purely by upgrading the SDK.++## What three.ws does++[`getAmmPoolState`](../../api/_lib/pump.js) is the single source of truth. It+returns both values, and callers pick by consumer:++| Field | Use it for |+|---|---|+| `quoteReserve` | The raw vault balance. Pass to SDK quote functions. |+| `virtualQuoteReserves` | Pass to SDK quote functions alongside `quoteReserve`. |+| `effectiveQuoteReserve` | Our own spot-price and price-impact math, which does not go through the SDK. |++Surfaces updated to price on effective reserves:++- `api/pump/[action].js` — the public quote + trade-build endpoints. The quote+ response now also reports `virtual_quote_reserves` and+ `effective_quote_reserve` so callers can reproduce our numbers.+- `api/agents/solana-trade.js`, `api/agents/pumpfun/[action].js` — agent trading.+- `api/pump-fun-mcp.js`, `src/pump/pump-swap-quote.js` — MCP + browser quoting.+- `api/_lib/trade-firewall.js` — the liquidity gate now judges depth on effective+ reserves, so a pool holding real quote-side depth virtually is not failed as+ `pool_reserves_empty`.+- `workers/agent-sniper/amm-exit.js` — position exits and their price-impact+ circuit breaker.+- `workers/agent-mm/market.js`, `workers/agent-orders/market.js` — the market+ maker's price and the order book's derived market cap.++Regression coverage is in [`tests/agent-sniper-amm-exit.test.js`](../../tests/agent-sniper-amm-exit.test.js):+one test asserts the virtual figure reaches the SDK un-summed, another asserts+price impact is measured against effective reserves.++## Versions++| | |+|---|---|+| TypeScript SDK | `@pump-fun/[email protected]` |+| Rust SDK | `[email protected]` |+| IDL | `contracts/idl/pump/pump_amm.json`, refreshed via `npm run pump:refresh-idls` |++Upstream: <https://github.com/pump-fun/pump-public-docs#pumpswap-update-virtual-quote-reserves>diff --git a/package-lock.json b/package-lock.jsonindex debabc57b..aa3704ba6 100644--- a/package-lock.json+++ b/package-lock.json@@ -108,7 +108,7 @@"@privy-io/js-sdk-core": "^0.67.0","@pump-fun/agent-payments-sdk": "^3.0.3","@pump-fun/pump-sdk": "^1.36.0",- "@pump-fun/pump-swap-sdk": "^1.17.0",+ "@pump-fun/pump-swap-sdk": "^1.19.0","@pythnetwork/hermes-client": "^3.1.0","@solana-mobile/mobile-wallet-adapter-protocol-web3js": "^2.2.9","@solana-program/compute-budget": "^0.15.0",@@ -16053,9 +16053,9 @@"license": "MIT"},"node_modules/@pump-fun/pump-swap-sdk": {- "version": "1.17.0",- "resolved": "https://registry.npmjs.org/@pump-fun/pump-swap-sdk/-/pump-swap-sdk-1.17.0.tgz",- "integrity": "sha512-8G/rCIzIzt7xdde1Ax+mOIcUZ0p5iC8a9NU0ufMsqeWDSBRy1WjbsaJIfkKbNCrp3nOvDzBFhSo+9LnEy2+12g==",+ "version": "1.19.0",+ "resolved": "https://registry.npmjs.org/@pump-fun/pump-swap-sdk/-/pump-swap-sdk-1.19.0.tgz",+ "integrity": "sha512-ayLO7ESmPOpZfz1hQSiGJBanJVaQTQB/+8yRHiuZnaHIRMTwOYknH1EZr++tPNa+kYJgg8kccU98Jp9RGOdZLQ==","license": "MIT","dependencies": {"@coral-xyz/anchor": "^0.31.1",diff --git a/package.json b/package.jsonindex 2fba99a92..a435f64ee 100644--- a/package.json+++ b/package.json@@ -295,7 +295,7 @@"@privy-io/js-sdk-core": "^0.67.0","@pump-fun/agent-payments-sdk": "^3.0.3","@pump-fun/pump-sdk": "^1.36.0",- "@pump-fun/pump-swap-sdk": "^1.17.0",+ "@pump-fun/pump-swap-sdk": "^1.19.0","@pythnetwork/hermes-client": "^3.1.0","@solana-mobile/mobile-wallet-adapter-protocol-web3js": "^2.2.9","@solana-program/compute-budget": "^0.15.0",diff --git a/public/changelog.json b/public/changelog.jsonindex d9cfc1fa4..194a12931 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,11 +1,32 @@{- "generated_at": "2026-07-19T22:30:00.732Z",+ "generated_at": "2026-07-20T18:38:37.717Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws","url": "https://three.ws"},"entries": [+ {+ "date": "2026-07-20",+ "type": "update",+ "title": "Bonding curve progress reads correctly again in the MCP tools",+ "summary": "The agent tools that report a coin's bonding curve were showing every coin as 0% to graduation with zero reserves and a zero price. Pump renamed these on-chain fields when USDC became a possible trading pair, and the tools were still reading the old names, which quietly resolved to zero instead of failing. They now read the current fields, so graduation progress, reserves, and price reflect the real curve. Verified against live coins reading 2% through 70% to graduation.",+ "link": null,+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-07-20",+ "type": "update",+ "title": "Graduated-coin prices now match PumpSwap exactly",+ "summary": "PumpSwap changed how pool prices are calculated: a pool can now hold quote-side liquidity that is not sitting in its vault, and prices have to count it. Every place we price a graduated coin has been updated to match, so quotes, price impact, market caps, and agent trade fills line up with what actually executes on-chain. Coins that have not graduated are unaffected, and the change is exact rather than approximate: where a pool carries none of this liquidity, prices are identical to before.",+ "link": null,+ "tags": [+ "fix",+ "infra"+ ]+ },{"date": "2026-07-19","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 616ca51bf..e3568f0cc 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -6,6 +6,22 @@<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/><description>What's new on three.ws — features, improvements, and releases, newest first.</description><language>en</language>+ <item>+ <title>Bonding curve progress reads correctly again in the MCP tools</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-20:Bonding curve progress reads correctly again in the MCP tools</guid>+ <pubDate>Mon, 20 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The agent tools that report a coin's bonding curve were showing every coin as 0% to graduation with zero reserves and a zero price. Pump renamed these on-chain fields when USDC became a possible trading pair, and the tools were still reading the old names, which quietly resolved to zero instead of failing. They now read the current fields, so graduation progress, reserves, and price reflect the real curve. Verified against live coins reading 2% through 70% to graduation.</description>+ </item>+ <item>+ <title>Graduated-coin prices now match PumpSwap exactly</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-20:Graduated-coin prices now match PumpSwap exactly</guid>+ <pubDate>Mon, 20 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>PumpSwap changed how pool prices are calculated: a pool can now hold quote-side liquidity that is not sitting in its vault, and prices have to count it. Every place we price a graduated coin has been updated to match, so quotes, price impact, market caps, and agent trade fills line up with what actually executes on-chain. Coins that have not graduated are unaffected, and the change is exact rather than approximate: where a pool carries none of this liquidity, prices are identical to before.</description>+ </item><item><title>Agent Sniper: Autonomous On-Chain Trading</title><link>https://three.ws/docs/agent-sniper</link>diff --git a/public/features.json b/public/features.jsonindex 951c1856a..6144ad4e0 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-19T22:30:00.719Z",+ "generated_at": "2026-07-20T18:38:37.703Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/pump/pump-swap-quote.js b/src/pump/pump-swap-quote.jsindex 57887fd3f..fdb9ef97d 100644--- a/src/pump/pump-swap-quote.js+++ b/src/pump/pump-swap-quote.js@@ -71,18 +71,29 @@ export async function quoteSwap({ inputMint, outputMint, amountIn, slippageBps =let state;try {// SystemProgram as dummy user — user ATAs will be null, which is fine for quoting.- state = await sdk.swapSolanaState(poolKey, new PublicKey('11111111111111111111111111111111'));+ state = await sdk.swapSolanaState(+ poolKey,+ new PublicKey('11111111111111111111111111111111'),+ );} catch (err) {throw new Error(`Pool unavailable for ${baseMintPk.toBase58()}: ${err.message}`);}- const { globalConfig, feeConfig, pool, poolBaseAmount, poolQuoteAmount, baseMintAccount } = state;+ const { globalConfig, feeConfig, pool, poolBaseAmount, poolQuoteAmount, baseMintAccount } =+ state;// pump-swap-sdk takes slippage as a PERCENT (1 = 1%): `1 ± slippage / 100`.const slippage = slippageBps / 100;+ // PumpSwap prices against effective quote reserves (raw vault + the pool's+ // virtual_quote_reserves, non-zero on launchpad coins since 2026-07-20). The+ // SDK adds `virtualQuoteReserves` to `quoteReserve` internally, so pass the+ // raw reserve here; the spot-price baseline below uses the summed value.+ const virtualQuoteReserves = new BN((pool.virtualQuoteReserves ?? 0).toString());+ const effectiveQuoteReserve = poolQuoteAmount.add(virtualQuoteReserves);const shared = {slippage,baseReserve: poolBaseAmount,quoteReserve: poolQuoteAmount,+ virtualQuoteReserves,globalConfig,baseMintAccount,baseMint: pool.baseMint,@@ -97,9 +108,9 @@ export async function quoteSwap({ inputMint, outputMint, amountIn, slippageBps =const result = buyQuoteInput({ quote: amountBn, ...shared });amountOut = result.base;// impact = (execPrice / spotPrice − 1) × 10000- // execPrice = amountIn / amountOut; spotPrice = quoteReserve / baseReserve+ // execPrice = amountIn / amountOut; spotPrice = effectiveQuoteReserve / baseReserveconst num = amountBn.mul(poolBaseAmount);- const denom = amountOut.mul(poolQuoteAmount);+ const denom = amountOut.mul(effectiveQuoteReserve);priceImpactBps = denom.isZero()? 0: Math.max(0, num.muln(10_000).div(denom).subn(10_000).toNumber());@@ -107,8 +118,8 @@ export async function quoteSwap({ inputMint, outputMint, amountIn, slippageBps =const result = sellBaseInput({ base: amountBn, ...shared });amountOut = result.uiQuote;// impact = (1 − execPrice / spotPrice) × 10000- // spotPrice = quoteReserve / baseReserve; execPrice = amountOut / amountIn- const spot = poolQuoteAmount.mul(amountBn);+ // spotPrice = effectiveQuoteReserve / baseReserve; execPrice = amountOut / amountIn+ const spot = effectiveQuoteReserve.mul(amountBn);const exec = amountOut.mul(poolBaseAmount);priceImpactBps = spot.isZero()? 0diff --git a/tests/agent-sniper-amm-exit.test.js b/tests/agent-sniper-amm-exit.test.jsindex 5d984048d..1b6a9924c 100644--- a/tests/agent-sniper-amm-exit.test.js+++ b/tests/agent-sniper-amm-exit.test.js@@ -48,7 +48,14 @@ const WSOL = 'So11111111111111111111111111111111111111112';const USDC = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';const MINT = 'THREEsynthetic1111111111111111111111111111111';-function poolState({ quoteMint = WSOL, baseReserve = 1_000_000_000, quoteReserve = 1_000_000_000 } = {}) {+// Mirrors the real getAmmPoolState return, including the effective quote reserve+// (vault balance + the pool's virtual quote reserves) that pricing runs against.+function poolState({+ quoteMint = WSOL,+ baseReserve = 1_000_000_000,+ quoteReserve = 1_000_000_000,+ virtualQuoteReserves = 0,+} = {}) {return {poolKey: { toString: () => MOCK_POOL },pool: {@@ -56,9 +63,12 @@ function poolState({ quoteMint = WSOL, baseReserve = 1_000_000_000, quoteReservebaseMint: { toString: () => MINT },coinCreator: { toString: () => '11111111111111111111111111111111' },creator: { toString: () => '11111111111111111111111111111111' },+ virtualQuoteReserves: new BN(virtualQuoteReserves),},baseReserve: new BN(baseReserve),quoteReserve: new BN(quoteReserve),+ virtualQuoteReserves: new BN(virtualQuoteReserves),+ effectiveQuoteReserve: new BN(quoteReserve).add(new BN(virtualQuoteReserves)),baseMintAccount: { decimals: 6 },globalConfig: { mock: true },feeConfig: null,@@ -137,6 +147,43 @@ describe('quoteAmmSell — re-quote a graduated position off the AMM', () => {expect(call.globalConfig).toEqual({ mock: true });});+ // PumpSwap prices against vault + virtual quote reserves. The SDK performs+ // that addition itself, so we must hand it the RAW vault balance alongside+ // the virtual figure — passing a pre-summed reserve double-counts the+ // virtual liquidity and over-values every exit.+ it('passes virtual quote reserves to the SDK without pre-summing them', async () => {+ mockGetAmmPoolState.mockResolvedValueOnce(+ poolState({ quoteReserve: 1_000_000_000, virtualQuoteReserves: 250_000_000 }),+ );+ mockSellBaseInput.mockReturnValueOnce({ uiQuote: new BN(50), minQuote: new BN(45) });++ await quoteAmmSell({ network: 'mainnet', mint: MINT, baseAmount: new BN(10_000), slippagePct: 5 });++ const call = mockSellBaseInput.mock.calls[0][0];+ expect(call.quoteReserve.toString()).toBe('1000000000');+ expect(call.virtualQuoteReserves.toString()).toBe('250000000');+ });++ // Impact is measured against the spot price implied by EFFECTIVE reserves.+ // Virtual liquidity deepens the pool, so the same sale moves it less.+ it('measures price impact against effective (vault + virtual) reserves', async () => {+ // base=1e6, vault quote=1e6, virtual=1e6 → effective quote = 2e6.+ // spot value of 100_000 base = 100_000 * (2e6/1e6) = 200_000.+ // Netting 190_000 is a 5% impact, not the 10% the raw vault implies.+ mockGetAmmPoolState.mockResolvedValueOnce(+ poolState({ baseReserve: 1_000_000, quoteReserve: 1_000_000, virtualQuoteReserves: 1_000_000 }),+ );+ mockSellBaseInput.mockReturnValueOnce({ uiQuote: new BN(190_000), minQuote: new BN(180_000) });++ const r = await quoteAmmSell({+ network: 'mainnet',+ mint: MINT,+ baseAmount: new BN(100_000),+ slippagePct: 5,+ });+ expect(r.priceImpactPct).toBeCloseTo(5, 5);+ });+it('computes a non-trivial price impact for a sale that moves the pool', async () => {// baseReserve=1e6, quoteReserve=1e6, sell 100_000 base, net 90_000 quote.// spot value = 100_000 * (1e6/1e6) = 100_000; impact = (100k-90k)/100k = 10%.diff --git a/workers/agent-mm/market.js b/workers/agent-mm/market.jsindex 53f6011cc..bd1cbef13 100644--- a/workers/agent-mm/market.js+++ b/workers/agent-mm/market.js@@ -50,12 +50,15 @@ export async function quoteMarket({ network, mint }) {}}-// Price off live AMM pool reserves (post-graduation). price = quote/base.+// Price off live AMM pool reserves (post-graduation). price = quote/base, where+// quote is the EFFECTIVE reserve (vault balance + the pool's virtual quote+// reserves). Pricing off the raw vault balance alone under-states the price on+// any launchpad coin, which since 2026-07-20 carries non-zero virtual reserves.async function quoteMarketAmm({ network, mint }) {try {const state = await getAmmPoolState({ network, mint });const base = Number(state.baseReserve.toString()) / 10 ** TOKEN_DECIMALS;- const quote = Number(state.quoteReserve.toString()) / SOL;+ const quote = Number(state.effectiveQuoteReserve.toString()) / SOL;if (!(base > 0) || !(quote > 0)) return null;return { price_sol: quote / base, graduated: true };} catch {diff --git a/workers/agent-orders/market.js b/workers/agent-orders/market.jsindex f5532a2d8..fb9091c99 100644--- a/workers/agent-orders/market.js+++ b/workers/agent-orders/market.js@@ -49,12 +49,15 @@ export async function quoteMarket({ network, mint }) {}}-// Price off the live AMM pool reserves (post-graduation). price = quote/base.+// Price off the live AMM pool reserves (post-graduation). price = quote/base,+// where quote is the EFFECTIVE reserve (vault balance + the pool's virtual quote+// reserves). Using the raw vault balance alone under-states both price and the+// mcap derived from it on launchpad coins.async function quoteMarketAmm({ network, mint }) {try {const state = await getAmmPoolState({ network, mint });const base = Number(state.baseReserve.toString()) / 10 ** TOKEN_DECIMALS;- const quote = Number(state.quoteReserve.toString()) / 1e9;+ const quote = Number(state.effectiveQuoteReserve.toString()) / 1e9;if (!(base > 0) || !(quote > 0)) return null;const price_sol = quote / base;return { price_sol, mcap_sol: price_sol * TOTAL_SUPPLY_TOKENS, graduated: true };diff --git a/workers/agent-sniper/amm-exit.js b/workers/agent-sniper/amm-exit.jsindex 672a07c7c..024fa24f5 100644--- a/workers/agent-sniper/amm-exit.js+++ b/workers/agent-sniper/amm-exit.js@@ -73,7 +73,16 @@ export async function quoteAmmSell({ network, mint, baseAmount, slippagePct }) {// pool that resolved to a non-SOL quote breaks the lamports-denominated PnL math// — refuse rather than mis-price.function priceSellFromPool(amm, sdk, baseAmount, slippagePct) {- const { pool, baseReserve, quoteReserve, baseMintAccount, globalConfig, feeConfig } = amm;+ const {+ pool,+ baseReserve,+ quoteReserve,+ virtualQuoteReserves,+ effectiveQuoteReserve,+ baseMintAccount,+ globalConfig,+ feeConfig,+ } = amm;const resolvedQuoteMint = pool.quoteMint?.toString?.() ?? WSOL_MINT;if (resolvedQuoteMint !== WSOL_MINT) {@@ -82,11 +91,15 @@ function priceSellFromPool(amm, sdk, baseAmount, slippagePct) {throw e;}+ // `virtualQuoteReserves` is added to `quoteReserve` inside the SDK — pass the+ // raw reserve, never the pre-summed effective one, or the sale is priced+ // against double the virtual liquidity and the exit under-fills.const r = sdk.sellBaseInput({base: baseAmount,slippage: slippagePct,baseReserve,quoteReserve,+ virtualQuoteReserves,globalConfig,baseMintAccount,baseMint: pool.baseMint,@@ -101,7 +114,12 @@ function priceSellFromPool(amm, sdk, baseAmount, slippagePct) {// constant-product sale actually nets. quote/base spot * base = ideal; the// shortfall is impact. Guards a thin post-graduation pool the same way the// entry breaker guards a thin curve.- const priceImpactPct = derivePriceImpact(baseReserve, quoteReserve, baseAmount, expectedQuoteOut);+ const priceImpactPct = derivePriceImpact(+ baseReserve,+ effectiveQuoteReserve,+ baseAmount,+ expectedQuoteOut,+ );return { expectedQuoteOut, minQuoteOut, priceImpactPct };}@@ -158,7 +176,16 @@ export async function quoteAmmBuy({ network, mint, quoteAmount, slippagePct }) {// `maxQuote` (the most SOL you'll pay), so the base-unit floor is derived from the// slippage percentage for the ledger/guards while the on-chain bound stays maxQuote.function priceBuyFromPool(amm, sdk, quoteAmount, slippagePct) {- const { pool, baseReserve, quoteReserve, baseMintAccount, globalConfig, feeConfig } = amm;+ const {+ pool,+ baseReserve,+ quoteReserve,+ virtualQuoteReserves,+ effectiveQuoteReserve,+ baseMintAccount,+ globalConfig,+ feeConfig,+ } = amm;const resolvedQuoteMint = pool.quoteMint?.toString?.() ?? WSOL_MINT;if (resolvedQuoteMint !== WSOL_MINT) {@@ -167,11 +194,13 @@ function priceBuyFromPool(amm, sdk, quoteAmount, slippagePct) {throw e;}+ // See priceSellFromPool: raw `quoteReserve` here, virtual passed separately.const r = sdk.buyQuoteInput({quote: quoteAmount,slippage: slippagePct,baseReserve,quoteReserve,+ virtualQuoteReserves,globalConfig,baseMintAccount,baseMint: pool.baseMint,@@ -186,7 +215,12 @@ function priceBuyFromPool(amm, sdk, quoteAmount, slippagePct) {const minBaseOut = (expectedBaseOut * BigInt(10000 - slippageBps)) / 10000n;// SOL in, tokens out → input reserve is quote, output reserve is base.- const priceImpactPct = derivePriceImpact(quoteReserve, baseReserve, quoteAmount, expectedBaseOut);+ const priceImpactPct = derivePriceImpact(+ effectiveQuoteReserve,+ baseReserve,+ quoteAmount,+ expectedBaseOut,+ );return { expectedBaseOut, minBaseOut, maxQuoteIn, priceImpactPct };}