
| Audited | developers.jup.ag documentation, all pages, pages fetched 11 October 2026 |
|---|---|
| Date | 11 October 2026 (audited again; first audit 31 May 2026) |
| How it ran | local run on our workstation, full audit, Standard review |
| Verdict after review | Fail (Fail if a High finding remains after review, otherwise Pass with notes) |
Related: Jupiter developer docs: pages changed or added since May
Compared with the first audit
The pages were fetched again on 11 October 2026 and audited in full; our first audit used the copy of 28 May 2026 and an earlier method, so its severities are shown as first rated. Each finding of the first audit (31 May 2026) was checked again against the pages audited now. 21 findings in the first audit; 12 still open (2 found again, 10 not reported again but still present); 6 fixed upstream since; 1 not in the pages, so the first audit was wrong there; 2 could not be compared. This audit has 95 findings after review, 93 of them new.
| First audit | Finding | Rating then (as first rated, earlier method) | Now | In this audit |
|---|---|---|---|---|
| #F-1 | Every page emits a doc-index banner pointing to legacy host; sitemap on legacy host | Critical | Fixed upstream since | #1 |
| #F-2 | Ultra surface billable but reference docs absent | Critical | Fixed upstream since | not reported again |
| #F-3 | 14 OpenAPI titles, no naming scheme | High | Still open | not reported again |
| #F-4 | info.version incoherent, quoted outlier | High | Still open | not reported again |
| #F-5 | Trigger v1 and v2 both active, no migration guidance | High | Still open | not reported again |
| #F-6 | Six Trigger v2 endpoints declare dual-scheme security, undocumented | High | Not in the code: the first audit was wrong here | not reported again |
| #F-7 | Schema definitions duplicated across specs | High | Still open | #51 |
| #F-8 | Portal hostname inconsistency | Medium | Fixed upstream since | not reported again |
| #F-9 | Banner positioned before H1 | Medium | Still open | #1 |
| #F-10 | Singleton /tx/v1 host-path | Medium | Fixed upstream since | not reported again |
| #F-11 | Price API bare-host server URL | Medium | Still open | not reported again |
| #F-12 | Prediction API BETA, no GA target | Medium | Still open | not reported again |
| #F-13 | 107 endpoint pages absent from llms.txt | Medium | Still open | not reported again |
| #F-14 | Sitemap on legacy host | Medium | Fixed upstream since | not reported again |
| #F-15 | Changelog "Danger: Action Required" past deadline | Medium | Could not be compared | not reported again |
| #F-16 | 15 broken internal links | Medium | Fixed upstream since | not reported again |
| #F-17 | llms-full.txt is 1 MB | Low | Still open | not reported again |
| #F-18 | Lock and Perps shallow | Low | Still open | not reported again |
| #F-19 | JSX wrappers everywhere | Low | Still open | not reported again |
| #F-20 | Migration pages stranded | Low | Still open | not reported again |
| #F-21 | Legacy host returns 200 + 301, not 410 | Low | Could not be compared | not reported again |
Each finding keeps the number it has in the audit report. The rating shown first is the one after review; the first automated rating is listed with it. 60 findings were first rated Medium or High; 28 of them are Medium or High after review. Text marked "From the report" is quoted from the audit report; fixes are suggestions and were not tested. Locations are paths inside the fetched copy of the documentation.
High after review (2)
lend/earn/cpi.md:97 (struct field at line 64)From the report
pub lending_program: UncheckedAccount<'info>,
...
program_id: *self.lending_program.key,
a program built from this example calls whatever program the caller passes, and forwards the user's signer privilege to it. An attacker can supply their own program and spend from the user's token accounts.
pin lending_program to the published program id with an address constraint or a typed Program account. Do the same for the liquidity, token, associated-token and system programs.
Review: lending_program: UncheckedAccount (:64, :180) is used as program_id (:97), with the signer forwarded. Same text in the earlier copy.
lend/borrow/cpi.md:80 (field at line 54)From the report
pub vaults_program: UncheckedAccount<'info>,
...
program_id: *self.vaults_program.key,
this is the same arbitrary-invocation hole as finding 55.
pin vaults_program and its sibling program accounts to their known ids before invoking.
Review: Same pattern as #55.
Medium after review (26)
lend/borrow/withdraw.md:109; also borrow.md:111, deposit.md:114, repay.md:111, liquidation.md:100, flashloan/execute.md, wallets/privy-earn.md. Without any confirmation at all: lend/advanced/unwind.md:174, vault-swap.md:190, repay-with-collateral-max-withdraw.md, native-staked-vault/*.From the report
await connection.confirmTransaction(signature, "confirmed");
console.log("Withdraw successful! Signature:", signature);
confirmTransaction does not throw when the transaction fails on-chain. A failed borrow, repay or unwind is therefore printed as successful, and the advanced guides print success before the transaction has even landed. These samples move leveraged positions.
confirm with blockhash and lastValidBlockHeight, check value.err, and only then report success.
Review: confirmTransaction(signature,"confirmed") is followed by "successful" with no value.err check. unwind, vault-swap, repay-with-collateral and native-staked-vault print success after a bare send.
trigger/create-order.md:69; also trigger/dca.md:87From the report
const { token } = await fetch(`${BASE}/auth/verify`, {
body: JSON.stringify({ type: "message", walletPubkey: owner, signature: bs58.encode(signature) }),
new integrators copy the mode that the docs say will be removed. They will break when it is removed.
send authMode: "access_refresh", read accessToken and refreshToken, and add refresh handling.
Review: The verify body has no authMode, the comment says "24h JWT", and the page destructures { token }.
trigger/lifecycle.md:53 (also line 22, errors.md, best-practices.md, manage-orders.md)From the report
Evidence: The token is valid for 24 hours. There is no refresh endpoint: when it expires, repeat the challenge-response flow.
the authentication page documents 15-minute tokens with /refresh. Integrators who follow the stale page force a wallet signature every time a token expires.
rewrite these pages for the access-plus-refresh flow and link to the authentication page.
Review: "valid for 24 hours. There is no refresh endpoint" against 15 minutes plus /refresh.
jupusd/index.md:181 (identical copy in jupusd.md:181; also the Redeem sample at lines 265-266)From the report
lpMint: configAccount.data.mint,
vault: vaultAddress,
vaultMint: configAccount.data.mint,
the vault's collateral mint is set to the JupUSD mint, and the collateral token program is taken from the JupUSD config. As published, the instruction either fails or runs the collateral under the wrong token program.
use vaultAccount.data.mint and the vault's own token program, unwrap the PDA tuple, and use one field-name style.
Review: The mint example uses vaultMint: configAccount.data.mint (same as lpMint). The redeem example uses vaultAccount.data.mint. Token program and field style are mixed.
ultra/execute-order.md:47; also ultra/add-fees-to-ultra.md:241, studio/create-token.md:42, studio/claim-fee.md:60From the report
Evidence: const wallet = Keypair.fromSecretKey(bs58.decode(process.env.PRIVATE_KEY || '')));
the first step of the main Ultra path has an extra parenthesis, a missing bs58 import and mixed import/require. A missing key is turned into an empty string instead of a clear error.
import bs58, use import 'dotenv/config', balance the parentheses, and fail at startup if the variable is not set.
Review: Extra ), no bs58 import, mixed import/require, || ''.
send/craft-send.md:56; also send/invite-code.md:191From the report
Evidence: const invite_code = await create_invite_code(); (never stored, shown or returned)
the invite is funded, but the code is lost. The recipient cannot claim it, and the clawback sample (which reads the code from the environment) cannot run. Funds stay locked until the invite expires.
persist or display the code before broadcasting, and publish one end-to-end send, claim and clawback example.
Review: Created at :56 and never shown or stored. Clawback needs INVITE_CODE. Funds return at expiry (send/index.md:42).
swap/migration/ultra-to-order.md:19From the report
Evidence: The request parameters and response format are identical. Update the base URL and you are done. (line 15: Base URL: https://ultra-api.jup.ag )
use the current Ultra base path. List the real differences (path, fields, error codes, fee model) and add a verification step.
Review: The page gives https://ultra-api.jup.ag; the Ultra pages use https://api.jup.ag/ultra/v1. "Identical parameters" is false: Swap V2 /order adds swapMode, priorityFeeLamports, jitoTipLamports, broadcastFeeType, excludeRouters, maxSupportedTransactionVersion.
trigger/authentication.md:331 (capability listed at line 324)From the report
Evidence: Updating a price order's trigger price or slippage does not require transaction signing. and so a leaked token alone cannot result in loss of funds.
whoever holds a stolen token can move the trigger and raise slippage (up to 10,000 bps) on a funded order. The keeper then executes as instructed, and the value can be extracted from the user's funds. The security statement tells integrators this risk does not exist.
require a wallet signature or another step-up proof for price and slippage edits, or cap what a token-only edit can set. Correct the claim.
Review: Line 324 discloses the edit capability; line 331 is about funds withdrawal. A real wording conflict, but no code that loses money. Slippage 0-10000 is documented.
api-reference/send/craft-send.md:97; also openapi-spec/send/send.yaml:73 and :379, pending-invites.md, invite-history.mdFrom the report
Evidence: - Unix timestamp of when the invite will expire with example expiry: '2025-03-22T10:30:00.000Z', and confirmed: type: integer with example confirmed: true
clients parse the time at which funds are clawed back incorrectly, and typed clients reject the documented responses.
make type, description and example agree for expiry and confirmed.
Review: expiry is string and "Unix timestamp" with an ISO example; confirmed is integer with example true.
jupusd/juiced.md:92 (also line 159)From the report
Evidence: amount: "1000000000", // Amount in lamports (1 JupUSD = 1e9)
the tokens page lists JupUSD with 6 decimals, so this deposits or withdraws 1000 JupUSD, not 1.
derive base units from the mint's decimals and correct the comments.
Review: JupUSD is 6 decimals (tokens/verification.md:24), so 1000000000 is 1000.
jupusd/juiced.md:75; also lines 13 and 158From the report
Evidence: The Lend API ... returns a signed transaction that you submit to the network.
the spec returns an unsigned transaction. The SDK names used here (getDepositIx, getLendingTokens) appear nowhere else in the Lend docs. "The rate never decreases" contradicts the page's own risk section.
align this page with the Lend API and SDK reference, and qualify the rate claim.
Review: "returns a signed transaction" against "unsigned" (api-reference/lend/earn/deposit.md:7). getDepositIx and getLendingTokens appear only here. "never decreases" against the qualified risk text.
lend/earn/api.md:59; also lines 145-247, 309, 380From the report
Evidence: require('dotenv').config(); const wallet = Keypair.fromSecretKey(bs58.decode(... and await ( await ( await fetch(...) ) ) with no .json()
bs58 is never imported, the response bodies are never parsed, a single-instruction response is mapped as a list, and one fetch call is missing a comma. The documented flow fails at every step.
fix the imports, parse responses with .json(), match the documented response shapes, and run each sample before publishing.
Review: No bs58 import, no .json() on four fetches, depositIx.instructions.map, and a missing comma at 380-381.
lend/earn/withdraw.md:32From the report
await getWithdrawIxs({
new Connection("https://api.mainnet-beta.solana.com"),
asset: new PublicKey("9a7qBeHBtjKk46YhfPJmBQG5zPmk4TcqpYbdJmJqcMup"), // USDC Mint
use named properties, the real USDC mint, and the correct import.
Review: Positional args inside an object, wrong "USDC" mint, imports getDepositIxs instead of getWithdrawIxs.
lend/advanced/unwind.md:74From the report
Evidence: const flashParams = { connection, signer, asset: solMint, amount: withdrawAmount }; (only WITHDRAW_AMOUNT is defined)
use one name consistently, and mark the hard-coded position id and amount as placeholders.
Review: withdrawAmount is used but WITHDRAW_AMOUNT is defined (line 86 too).
lend/borrow/combined.md:68From the report
Evidence: ... positionId } = await getOperateIx({ ... positionId: positionId!,
every other page destructures nftId. The second call receives undefined, and the non-null assertion hides the problem.
use nftId and drop the assertion.
Review: positionId is destructured; other pages destructure nftId.
lend/advanced/multiply.md:128 (also line 278)From the report
const swapOutputAmount = new BN(quoteResponse.outAmount);
const supplyAmount = initialCollateral.add(swapOutputAmount);
with 1% slippage allowed, the swap can deliver less than outAmount, and the atomic transaction then reverts.
size the deposit from otherAmountThreshold.
Review: Uses outAmount; unwind.md uses otherAmountThreshold.
guides/how-to-build-a-prediction-market-app-on-solana.md:141From the report
Evidence: console.log( ${market.metadata.title}: YES ${market.pricing.buyYesPriceUsd}¢); (line 323: micro USD)
a 70-cent price is shown as 700000¢.
divide by 10,000 for cents, or use the page's own display helper.
Review: Line 141 prints buyYesPriceUsd with "¢"; line 323 says micro USD.
openapi-spec/lend/lend.yaml:429; also lines 234 and 620, api-reference/lend/earn/earnings.md:55, openapi-spec/lend/borrow.yaml:139From the report
Evidence: UserEarningsResponse: type: object (the example is an array), and - id: "So1111..." against an integer id
generated clients and validators reject the documented responses. Earn and Borrow also type and name the same objects differently.
validate examples against schemas, and share one schema for each concept.
Review: The response schema is an object but the example is an array. id is integer but the example is a mint string.
lend/earn/read-data.md:74From the report
Evidence: supplyRate and rewardsRate are scaled by the SDK's internal precision (e.g. 1e12).
the REST schema says 1e4, and the analytics page divides by 100. Integrators who mix sources are off by orders of magnitude.
state one scale per surface, with conversions.
Review: "e.g. 1e12"; REST schema "1e4 decimals" with example "0.035"; analytics divides by 100.
openapi-spec/trigger/v2/trigger.yaml:637; also api-reference/trigger/vault-register.md:30, trigger/deposit.md:40From the report
Evidence: /vault/register: get: ... Subsequent calls return the existing vault. (and '409': Vault already exists)
a GET can be fired by prefetchers or replayed by proxies. The docs give two answers for a repeat call. The samples register a new vault on any failure, not just "not found".
use POST with defined idempotency, and fall back only on 404.
Review: Spec: "Subsequent calls return the existing vault" with a 409. Narrative: deposit.md:45 and errors.md:21 say 409.
perps/pool-account.md:52 (also line 34)From the report
Evidence: | increasePositionBps | Type: string ... / | decreasePositionBps | Type: publicKey ...
integrators who decode the account from this page read the wrong data.
correct the types from the program interface definition.
Review: increasePositionBps is string, decreasePositionBps is publicKey, and further rows are shifted (taxBps is PoolApr).
swap/build/index.md:349; also lines 386 and 481, swap/build.md (identical copy), swap/advanced/transaction-versions.md:220 and :237From the report
if (simulationResult.value.err) {
console.error("Simulation failed:", simulationResult.value.err);
}
a transaction already known to fail is signed and paid for, including the tip. The submit response is read without a status check. The polling loop ends silently on timeout.
stop on a failed simulation, check submitRes.ok, and report a timeout.
Review: console.error with no return, then sign and submit; submit response not checked.
portal/rate-limits.md:62From the report
Evidence: const remaining = Number(response.headers.get("x-ratelimit-remaining")); followed by } else if (remaining <= 1) {
the header is documented as absent on some plans and statuses. Number(null) is 0, so every response causes a one-second sleep. The request is also never retried after a 429.
act only when the header is present and finite, and retry after the wait.
Review: Number(null) is 0, so remaining <= 1 fires. Line 47 says the header is absent on some responses.
prediction/position-data.md:233 (also lines 41, 173 and 180)From the report
Evidence: | start | number | Start timestamp or index | and | status | pending, filled, or failed |
open-positions.md uses created/partiallyfilled/filled/failed. Clients that switch on the shorter set mishandle partial fills, and callers cannot tell which unit start and end use.
use one unit per parameter and one status enum per resource.
Review: start/end mean "index (or timestamp)" at :173 and "timestamp or index" at :233. Status pending/filled/failed against created/partiallyfilled/filled/failed.
tool-kits/plugin/customization.md:238 (lines 238-273)From the report
window.Jupiter.init({
displayMode: "integrated";
integratedTargetId: "jupiter-plugin";
use commas between properties.
Review: Semicolons between object properties in three examples.
prediction/forecast.md:148From the report
Evidence: slippageBps: "10000",
a copied order can be filled at any price, and nearly the whole input amount can be extracted.
use a bounded tolerance or dynamic slippage, and explain the tradeoff near expiry.
Review: slippageBps: "10000" at :148, with the prose "Use a high slippageBps".
Low after review (47)
guides/index.md:2, and the same header on 302 of the 314 files.From the report
> Fetch the complete documentation index at: https://developers.jup.ag/docs/llms.txt
> Use this file to discover all available pages before exploring further.
this is imperative text aimed at AI tools that ingest the pages, telling them to fetch an external resource. It is most likely publishing boilerplate. Still, content that steers automated readers is the same mechanism a prompt-injection attack uses: tools that follow it widen what they read and trust. It was not followed during this review.
remove the instruction from page bodies, or move it into a clearly separated machine-readable metadata block that ingestion tools can strip.
Review: Banner is on 302 of 314 files. It is the vendor's own docs-platform header pointing to its own llms.txt, with no harm shown.
guides/how-to-build-a-prediction-market-app-on-solana.md:207 (also line 263 for claims)From the report
const signature = await connection.sendRawTransaction(transaction.serialize(), {
skipPreflight: true,
});
preflight is skipped and the transaction is never confirmed. An order or payout claim that fails or is dropped looks exactly like a success to the integrator's app.
confirm the signature against the lastValidBlockHeight returned in txMeta, check the result, and re-quote on expiry. Keep preflight on, or explain why skipping it is safe.
Review: Lines 207-209 and 263-265 confirmed. Minimal snippet, no wrong result shown.
guides/how-to-embed-a-swap-widget.md:35; also tool-kits/plugin/html-app-example.md:38, tool-kits/wallet-kit/jupiter-wallet-extension.md:30, jupiter-mobile-adapter.md:40From the report
<script src="https://plugin.jup.ag/plugin-v1.js" data-preload defer></script>
npm i @jup-ag/wallet-adapter
code that runs in a wallet-connected page changes underneath the integrator, and two separately versioned adapters can drift apart.
publish versioned URLs with Subresource Integrity hashes. Pin package versions and document which adapter versions are compatible with each other.
Review: plugin-v1.js and an unversioned npm i are present.
ultra/add-payer.md:30From the report
Evidence: Integrator is required to proxy the request to their backend in order to sign the transaction (partially signed by user) before sending to /execute
the integrator's backend signs, with its payer key, a transaction that arrives from the client. Nothing in the guidance tells it to check what it is signing. A modified transaction could debit the payer for more than fees and rent.
before co-signing, decode the transaction. Check that the payer key is only the fee payer and rent funder, and never the source or authority of a transfer or close. Also check that program ids and instruction shapes match the /order response.
Review: The omission is real, but the page already warns about payer drain (lines 70-77). No wrong result shown.
swap/advanced/gasless.md:145From the report
Evidence: You are responsible for building the transaction, collecting both signatures (taker + payer), and sending via your own RPC.
this has the same exposure as finding 6. The payer key co-signs instructions that the user can change.
add a required verification step. Reject any instruction that debits the payer other than network fee, priority fee or tip, and ATA rent.
Review: Same as #6. A recoup warning exists at lines 147-153.
trigger/authentication.md:15 (also api-reference/trigger/verify.md:37, openapi-spec/trigger/v2/trigger.yaml:383)From the report
Evidence: **access_only is deprecated (2026-07-21) and will be removed.** ... Nothing breaks today
publish the removal date and the measured condition that gates the switch (for example, no remaining callers of the old mode). Keep the deprecation headers until then.
Review: Only "deprecated (2026-07-21) and will be removed".
portal/migration.md:16From the report
Evidence: Old API gateway (including lite-api) progressively deprecated | When new gateway is stable.
publish dated warn and enforce phases, and confirm that no live consumers remain before switching off.
Review: "When new gateway is stable".
openapi-spec/trigger/v2/trigger.yaml:531From the report
Evidence: No authentication is required ... security: - ApiKeyAuth: []
make the prose and the security block agree.
Review: Prose says "No authentication is required"; the block says ApiKeyAuth.
api-reference/prediction/create-order.md:274; also claim-position.md:138, get-position.md:242, openapi-spec/prediction/prediction.yaml:929From the report
Evidence: required: ... - contracts - newContracts (contractsMicro and contractsDecimal are not required)
a client that relies only on required fields reads truncated whole-contract quantities.
require the exact fields wherever the legacy field is required, and state how the two relate.
Review: contracts and newContracts are required; the exact fields are not.
api-reference/trigger/create-order.md:104; also openapi-spec/trigger/v2/trigger.yaml:704, :806From the report
Evidence: required: - orderType ... - triggerMint - expiresAt (Single, OCO and OTOCO rules appear only in descriptions)
model the order types with oneOf or a discriminator, each variant with its own required set and the promised numeric bounds.
Review: orderSubType and orderType are plain enums; the rules are in descriptions.
tool-kits/plugin/react-app-example.md:145; also nextjs-app-example.md:191, guides/how-to-embed-a-swap-widget.md:173From the report
Evidence: useEffect(() => { window.Jupiter.init({
return a cleanup that destroys the instance, or guard against a second initialisation.
Review: A close() type exists, so cleanup is possible.
guides/how-to-embed-a-swap-widget.md:313From the report
Evidence: window.Jupiter.syncProps({ passthroughWalletContextState: walletContextState,
call it from an effect keyed on the wallet state, so connect, disconnect and account switches reach the widget.
Review: A one-shot syncProps under a comment saying "when it changes".
trigger/best-practices.md:74; also prediction/trading-lifecycle.md:77, tokens/index.md:63From the report
Evidence: Poll the history endpoint to track order state; the states differ by family.
give an interval with backoff, poll only orders that are not yet terminal, skip unchanged results, and stop on terminal states.
openapi-spec/send/send.yaml:259; also trigger.yaml:969From the report
Evidence: Pubkey can be sender or recipient versus Pubkey of Sender, and '403': Order belongs to a different wallet versus '404': ... not owned on the DCA readers
define one visibility rule per collection and return the same status for "not yours" everywhere.
Review: The send.yaml pair is weak.
api-reference/recurring/create-order.md:127; also recurring/create-order.md:59From the report
inAmount:
type: integer
format: int64
for 9-decimal tokens, any order above about 9 million tokens exceeds 2^53 base units. JavaScript clients then silently round the order size. The schema also accepts a zero amount and a zero order count.
accept base-unit amounts as decimal strings, as the other APIs do, and raise the minimums.
Review: Real: format: int64, minimum: 0. The page set is "unmaintained" per trigger/index.md:40. No wrong result shown.
api-reference/tokens/verify-execute.md:121; also openapi-spec/tokens/v2/verification.yaml:259, tokens/verification.md:189From the report
Evidence: jupOutputAmount: ... echoed back so revenue tracks the actual JUP collected on swap paths.
the server already issued the quote. Taking the paid amounts back from the caller lets a client influence the payment and revenue records.
look up amounts by requestId from the stored quote, or from the confirmed on-chain transfer, and drop them from the request.
Review: The echo is real. Server handling is invisible, so the claim is speculation.
api-reference/tokens/verify-execute.md:221; also api-reference/studio/dbc-pool-create-tx.md:134From the report
Evidence: useCirculatingSupply ... coingeckoCoinId / useCoingeckoCoinId ... circulatingSupplyUrl / useCirculatingSupplyUrl
drop the use* flags, or define what happens for each conflicting combination. Derive quote decimals from the quote mint.
Review: use* flags and tokenQuoteDecimal are redundant with the data.
api-reference/prediction/create-order.md:83; also api-reference/trigger/verify.md:110, openapi-spec/prediction/prediction.yaml:368, api-reference/ultra/order.md:10From the report
Evidence: contracts: "Legacy whole-contract sell quantity ... prefer contractsMicro or contractsDecimal."
publish one list of compatibility fields and modes (the old token default, owner/ownerPubkey, legacy contracts, the duplicate error field, swapType, priceImpactPct, flows that still depend on Ultra), each with its removal condition.
api-reference/swap/order.md:236; also ultra/response.md:26From the report
Evidence: "priceImpactPct": "-0.0001311599520149334", ... "priceImpact": -0.013115995201493341,
document the unit of each field, or rename them, so migrating clients do not misread impact by a factor of 100.
Review: ultra/response.md shows -0.00013 vs -0.0131, which is x100. api-reference/ultra/order.md:411,416 shows 0.0001 for both.
lend/advanced/multiply.md:106 (also unwind, vault-swap, repay-with-collateral; loadKeypair appears on more than ten pages)From the report
Evidence: function jupIxToTransactionInstruction(ix: {
export these helpers from the SDK or one shared snippet.
Review: jupIxToTransactionInstruction appears in 5 files; loadKeypair in 14+.
portal/migration.md:15From the report
Evidence: Grace period ends ... | 30th June 2026 | versus line 68 free for **3 months** after the new platform launches
publish one end date. Three months from 6 April is 6 July, not 30 June. Also state what happens to plan grants that have no matching paid tier.
Review: 30 June against "3 months" from 6 April.
openapi-spec/trigger/v2/trigger.yaml:409; also api-reference/trigger/verify.md:66, logout.md:33, logout-all.md:36From the report
default: access_only
description: Token model. Defaults to the deprecated access_only when omitted.
every existing client silently keeps the weaker, non-revocable token. The logout pages promise that issued tokens expire within 15 minutes, which is false for this default.
make authMode required, or default it to the refresh model. Correct the logout text.
Review: The default is stated plainly. Logout takes a refresh token, so the "15 minutes" sentence concerns access_refresh.
lend/advanced/unwind.md:84; also vault-swap.md:119, repay-with-collateral-max-withdraw.md:100, multiply.md:88 and :212From the report
Evidence: const LITE_API = "https://lite-api.jup.ag/swap/v1";
move these guides to the current swap endpoint with an API key.
Review: The host is "phased out... until fully retired" (migration.md:93), not retired. All 5 cites are correct.
ai/cli.md:44From the report
Evidence: curl -fsSL https://openclaw.ai/install.sh | bash
an unverified third-party script runs on a machine that will then hold a trading key.
pin a version, publish a hash or signature, and tell users to download, verify and then run.
Review: Third-party install script, in a page marked pre-v1 alpha.
ai/skills.md:37; also lend/oracles.md:92, send/invite-code.md:258, jupusd/index.md:92From the report
Evidence: const IDL_URL = "https://raw.githubusercontent.com/jup-ag/jupiter-lend/refs/heads/main/target/idl/oracle.json";
pin packages, IDLs and skills to versions or commits, and state the versions the samples were tested with.
send/craft-clawback.md:93; also api-reference/send/pending-invites.md:148, the wallet-loading snippet on more than 20 pages, and the Plugin type declarations in three pagesFrom the report
Evidence: const blockhashInfo = await connection.getLatestBlockhashAndContext({ commitment: "confirmed" });
publish shared snippets once and generate reference pages from the single spec file.
Review: 20 inline schema definitions across 10 files; the same Plugin type block in three pages.
ultra/get-started.md:39; also ultra/fees.md:13From the report
Evidence: ...and rate limits scale dynamically with swap volume. (line 54: dynamic limits were replaced by fixed ones)
keep one source for fees and limits, and correct the summaries.
Review: "scale dynamically" at :39 against "replaced by fixed" at :54.
tokens/content.md:10From the report
Evidence: The Content API is being deprecated in favor of a more comprehensive replacement, coming as part of an upcoming Tokens API update.
give a dated end-of-life and a concrete migration target. Document or remove the /content/summaries endpoint, which has no reference page.
Review: /content/summaries is on one narrative page only.
swap/routing/rfq/v1/webhook-api.md:22From the report
Evidence: If your endpoints require an API key, provide it during registration.
the /swap webhook leads to the maker co-signing fills with a funded key.
require authentication (a secret or signed requests, plus an IP allow-list), and tell makers to re-validate each transaction before signing.
Review: Optional key plus 401 handling is a vendor design choice.
lend/borrow/borrow.md:44; also withdraw.md:42, repay.md:44From the report
Evidence: const POSITION_ID = 0; // nftId from Create Position
the deposit page documents 0 as "create a new position". Running these samples unedited mints new empty positions and pays rent, instead of acting on the intended one.
use an obviously invalid placeholder, or require the value.
Review: A borrow, withdraw or repay with no collateral would revert, so "pays rent for empty positions" is doubtful.
lend/borrow/repay.md:120From the report
Evidence: Full repay uses your total debt amount (you may need to leave a tiny dust amount depending on the protocol).
the API guide says that repaying the exact amount fails with VaultUserDebtTooLow, and that the max-repay sentinel must be used to clear the debt.
document the sentinel-based full repay and withdraw on the SDK pages.
Review: The same page gives MAX_REPAY_AMOUNT at :146.
recurring/withdraw-price-order.md:31From the report
Evidence: Choose the order account to deposit by making a post request to the /priceDeposit endpoint
point the step at /priceWithdraw.
Review: Prose typo only; the code uses /priceWithdraw (:53). The same typo is in the earlier copy.
guides/how-to-get-token-price.md:213From the report
const price = prices[mint]?.usdPrice ?? 0;
totalValue += amount * price;
tokens without a price, or a failed request, silently undercount the portfolio. The 50-id limit is also ignored.
check response.ok, split ids into chunks of 50, and report unpriced holdings.
Review: Real (?? 0, no chunking), but the Price page documents omission and how to detect it.
price/index.md:35 (copy in price.md)From the report
Evidence: price is not available or returns null versus line 94 Tokens without a reliable price are **omitted entirely**
remove the "returns null" statement and tell clients to test for key presence.
Review: :35 "or returns null" against :94 "omitted entirely". The later paragraph resolves it.
api-reference/prediction/create-order.md:328; also close-position.md:297, close-all-positions.md:360, openapi-spec/prediction/prediction.yaml:716From the report
Evidence: Resolves to https://api.jup.ag/prediction/v1/execute. example: /api/v1/execute
make the example resolve to the stated URL, or return an absolute URL.
Review: Example /api/v1/execute against "Resolves to .../prediction/v1/execute". Illustrative example field.
legal/terms-of-use.md:92From the report
Evidence: We will not create any hosted wallet for you or otherwise custody digital assets on your behalf
the Trigger API creates managed vault wallets that hold deposits.
align the terms with the products that hold funds, or document the custody boundary.
Review: Terms scope is "Interface and Protocol"; the Trigger vault is "custodial by Privy" (trigger/index.md:29). Real tension, but a legal reading.
openapi-spec/tokens/v2/tokens.yaml:434From the report
Evidence: isSus: type: boolean nullable: true ... check for the field's presence, not its value.
a consumer that checks the value treats a flagged token with a null value as safe.
always return a real boolean.
Review: The spec and tokens/index.md:36 both say to check presence. Documented quirk.
tokens/index.md:34 (copy in tokens.md)From the report
Evidence: | **Banned** | Flagged as malicious, scam, or misleading. | Do not display or warn users. |
the schema has only a nullable isVerified and a presence-only isSus (searched; no banned field). Integrators cannot follow the guidance to hide scam tokens.
expose an explicit verification-level enum.
Review: The page names isVerified and audit.isSus as the signals.
openapi-spec/studio/studio.yaml:432 (also api-reference/studio/dbc-pool-create-tx.md:201)From the report
Evidence: If not provided, the default fee will be 100 basis points (1%) with fee and feeBps required
make the field optional with the stated default, or drop the default claim.
Review: fee is required while the text says "If not provided".
openapi-spec/prediction/prediction.yaml:2367From the report
Evidence: predictionsCount: type: string versus line 2587 predictionsCount: type: number
use one type per field name, and add kalshi to the provider enum used by Market.
Review: predictionsCount is string on profile and number on leaderboards, each matching its example. The real gap is kalshi missing from the Market.provider enum.
api-reference/ultra/shield.md:77; also api-reference/ultra/order.md:365From the report
Evidence: - '{}%_TRANSFER_FEES' and - Top up ${solAmount} SOL for gas
strict clients reject the real values, so a transfer-fee warning can be lost.
use literal codes, with the numeric part in a separate field.
Review: Pattern values in an Ultra reference that is "no longer actively maintained".
transaction/submit.md:152 (also line 387, and lines 167-170)From the report
Evidence: const build: BuildResponse = await buildRes.json();
a 4xx or 5xx response turns into a TypeError, and lookup tables that fail to load are silently skipped.
check buildRes.ok, use the lookup tables returned by /build, and fail if one is missing.
Review: Real (no buildRes.ok, ALT silently skipped), but robustness only.
transaction/submit.md:45From the report
Evidence: | **Transaction size** | Must not exceed the Solana transaction size limit (1232 bytes) | (transaction-versions.md:21: v1 allows 4096 bytes)
state whether /submit accepts v1 transactions, and warn on the build pages if it does not.
Review: 1232 against v1's 4096 (transaction-versions.md:21). The page does not say whether /submit takes v1.
studio/create-token.md:202 (also line 216, submit at line 275)From the report
Evidence: const imageResponse = await fetch(createTransaction.imagePresignedUrl, { method: 'PUT', ... (no status check)
a failed upload still leads to an irreversible on-chain token that points at missing metadata.
check both upload responses, and the create response, before signing.
Review: The prose tells readers to upload first; the samples lack .ok checks.
lend/earn/api.md:84; also line 318, studio/claim-fee.md:84, recurring/execute-order.md:101From the report
Evidence: const blockhashInfo = await connection.getLatestBlockhashAndContext({ commitment: "finalized" });
a finalized blockhash is older than the transaction's own, so the sample can report "expired" while the transaction may still land. That prompts a duplicate send.
confirm against the signed message's own blockhash and lastValidBlockHeight.
Review: Valid pattern bug (a false "expired" report). All four cites hold, but the effect is a misleading error only.
portal/security.md:20From the report
Evidence: 2FA applies to email and password sign-in only. If you sign in with OAuth, 2FA is not applied
these accounts control API keys and billing. Anyone with OAuth access can bypass the second factor.
enforce 2FA on every sign-in method, or at least on key and billing changes.
Review: Stated openly on the page.
ai/cli.md:59From the report
Evidence: OpenClaw executes the CLI command on your behalf and returns the result in chat.
a chat message, or an injected message, can move funds from a hot key without limits.
document a dedicated low-balance key, per-trade and daily limits, chat allow-lists and human confirmation.
Review: Page carries an alpha warning (:12). The omission is guidance only.
Info after review (20)
guides/how-to-embed-a-swap-widget.md:319From the report
Evidence: Users connect their browser wallet (Phantom, Backpack, etc.) directly through the widget.
browser wallets refuse to connect from plain-HTTP origins other than localhost, and the failure is silent. I searched the guide and it has no note about this.
state that production pages must be served over HTTPS, and tell integrators to detect the origin and show an error.
Review: Line 319 is as quoted. The claim that wallets refuse HTTP origins is outside the pages.
lend/borrow/api.md:209 (also send/invite-code.md, recurring/execute-order.md, tokens/verification.md)From the report
Evidence: new TransactionInstruction({ programId: new PublicKey(instruction.programId), ...
samples sign whatever program ids and accounts come back from the API, without checking them.
allow-list the expected program ids. Check that transfer sources and destinations and the fee payer are the signer's own accounts before signing.
Review: Only borrow/api.md builds TransactionInstruction. The named sibling pages do not show it.
guides/how-to-embed-a-swap-widget.md:89; also ultra/plugin-integration.md:46, tool-kits/plugin.md:42, tool-kits/plugin/index.md:42From the report
Evidence: srcset="...?w=280... 280w, ... 2500w" (no sizes)
without sizes the browser assumes the image fills the viewport, so it downloads a much larger file than the narrow content frame needs.
add a sizes value that describes the drawn width inside the doc frame.
Review: Mintlify-generated media markup, not copyable code. All four cites correct (89, 46, 42, 42).
openapi-spec/prediction/prediction.yaml:134; also tokens.yaml:350, swap/v2/swap.yaml:375, studio.yaml:398, perps/position-request-account.md:64, perps/position-account.md:55From the report
Evidence: status: enum [open, closed, cancelled] ... tradable: boolean ... lifecycleStatus: enum [open, resolving, settled]
state each combined rule explicitly (for example, tradable holds exactly when status and lifecycleStatus are both open), and validate it.
Review: lifecycleStatus already says "Only open is tradable".
lend/liquidity/analytics.md:128From the report
Evidence: const allPositions = await client.liquidity.getAllUserPositions();
warn that this needs a dedicated RPC or an indexer, and add paging.
Review: The page says it is for indexers and liquidator bots.
send/invite-code.md:88 (copy at line 308)From the report
Evidence: const sha = createHash("sha256");
delete the unused variable.
Review: sha is unused, but this is hygiene only.
api-reference/prediction/get-position.md:173; also openapi-spec/prediction/prediction.yaml:862, api-reference/studio/dbc-fee-create-tx.md:111, api-reference/lend/earn/earnings.md:75, studio/claim-fee.md:169, prediction/position-data.md:136From the report
Evidence: realizedPnlUsd: type: number description: Realized PnL in micro USD (i64 as number)
use strings for every base-unit or micro-unit value, and use BigInt or a decimal library in the samples.
Review: realizedPnlUsd is number ("i64 as number"), but micro-USD does not reach 2^53 in practice.
api-reference/prediction/execute.md:78; also openapi-spec/prediction/prediction.yaml:739From the report
Evidence: Optional. The execution.context object ... Validated against the signed transaction when present.
keep the context server-side, keyed by request id, and always validate against it.
Review: Design preference.
api-reference/tokens/verify-execute.md:237; also swap/routing/rfq/v1/settlement.md:24From the report
Evidence: circulatingSupplyUrl: type: string description: URL to a live circulating supply endpoint
document and enforce allowed destinations, a size cap, an iteration cap and a time budget.
Review: Server behaviour is unverifiable. settlement.md:24-25 tells makers to validate.
api-reference/prediction/create-order.md:69; also lend/borrow/api.md:59From the report
Evidence: marketId: ... Hashed or canonical market ID for buys and The same vaultId refers to a different vault in main than in ethena
accept one identifier form per field, and return the market alongside vault and position ids.
Review: Market scoping is stated explicitly at borrow/api.md:57-59.
trigger/best-practices.md:52; also api-reference/trigger/create-dca.md:81, transaction/submit.md:480From the report
Evidence: Minimum order size is 10 USD ... Enforce this client-side to avoid unnecessary API calls.
expose limits and the tip-account list through a config endpoint or in responses.
Review: "Enforce client-side" is optimisation advice.
trigger/authentication.md:229From the report
Evidence: if (res.status === 401) { await refreshTokens();
share one in-flight refresh promise across parallel requests, so concurrent requests cannot present the same rotating refresh token twice.
Review: A retry grace window for repeated /refresh is documented at authentication.md:218.
ultra/add-fees-to-ultra.md:57 (also lines 69 and 342, swap/order-and-execute.md)From the report
Evidence: If the referralTokenAccount for the feeMint is not initialized, the order will still return and can be executed without your fees.
an integrator loses fee revenue with no signal in the response.
return an explicit "fee not applied" field with the reason, and document a check before signing.
Review: Stated three times, and order-and-execute.md:611 gives a check.
swap/routing/rfq/v1/quoting.md:57From the report
Evidence: Reading only the last 3 bytes, or assuming a 3-byte region, gives the wrong fee and always reads exact-in.
market makers built against the old layout silently read the wrong fee and swap mode.
extend binary layouts additively, with a version or length byte.
Review: The page documents the layout and warns about the 3-byte reading. No change history is visible.
openapi-spec/prediction/prediction.yaml:1 (2,688 lines; trigger.yaml has 1,551)From the report
Evidence: tags: - Events - Markets - Orders - Positions - History - Trading - Orderbook - Milestones - Vault
split into per-domain files composed with $ref, and declare every tag that is used.
Review: 2,688 lines, but all nine tags belong to one Prediction API.
portal/migration.md:97From the report
Evidence: 1. Update your base URL from lite-api.jup.ag to api.jup.ag
add a step that confirms zero remaining traffic to the old host, using request logs.
lend.md:5 (identical to lend/index.md); also swap/build.md and swap/build/index.md, and the swap, trigger, ultra, prediction, tool-kits, studio, price, lock, guides, legal, perps, recurring, send, tokens and jupusd overview pairsFrom the report
Evidence: # Jupiter Lend Overview (byte-identical copies)
keep one canonical page and redirect the other.
Review: Duplicate pages are real but are fetch-URL aliases. I count about 30 pairs.
api-reference/recurring/create-order.md:24From the report
Evidence: yaml openapi-spec/recurring/recurring.yaml post /createOrder
there are no recurring, ultra or content spec files under openapi-spec/ (searched). The embedded copies cannot be checked against a source.
add the spec files or remove the references.
Review: openapi-spec/recurring/recurring.yaml is not in src (line 24 is correct). That is a submission artifact: the same directive is in the earlier copy.
guides/how-to-build-a-prediction-market-app-on-solana.md:132 (also line 186; the use case at line 51 is building a front-end)From the report
Evidence: headers: { 'x-api-key': 'YOUR_API_KEY' }
there is no guidance to keep the key server-side, so keys end up in client bundles and quotas can be stolen.
show the key loaded on a backend proxy, and say whether keys may ship to clients.
Review: portal/firewall.md:9 says client-side keys are not secret and gives firewall controls.
openapi-spec/lend/borrow.yaml:41 (also api-reference/lend/borrow/vaults.md:72)From the report
- name: rpcUrl
in: query
description: Optional custom Solana RPC URL used to resolve on-chain vault state.
any key holder can make the server contact internal addresses, or serve it attacker-chosen vault state.
remove the parameter, or allow-list hosts, block private ranges and cap size and time.
Review: The parameter exists. The SSRF risk falls on the vendor's server and cannot be shown from the docs.
Excluded on review (1)
Findings the review showed to be wrong or a repeat of another finding. They are not counted above.
- 18. Trigger order state fields have no stated relationship (wrong): A
statetodisplayStatetable exists at lines 90-98, and the not-zeroed caveat at :83.