Sample audits · Open-source projects and documentation, eight more

sendaifun/solana-agent-kit

A toolkit that lets AI agents act on Solana through plugins.

Summary card for this audit: 185 findings after review, 1 High, 68 Medium, 110 Low, 6 Info
Auditedsendaifun/solana-agent-kit at commit 1254fe550872ee48d42f168fc8ca854c87ab6eff
Date11 October 2026 (audited again; first audit 11 October 2026)
How it ranlocal run on our workstation, full audit, Standard review
Verdict after reviewFail (Fail if a High finding remains after review, otherwise Pass with notes)
1
High after review
68
Medium after review
110
Low after review
6
Info after review
0
excluded on review

Compared with the first audit

Same commit as the first audit: the project's default branch has no later commits (checked 11 October 2026), so nothing could have been fixed upstream in between. Each finding of the first audit (11 October 2026) was checked again against the code audited now. 140 findings in the first audit; 139 still open (97 found again, 42 not reported again but still present); 1 not in the code, so the first audit was wrong there. This audit has 185 findings after review, 71 of them new.

First auditFindingReviewed rating thenNowIn this audit
#1Login trusts client-supplied email/wallet (crossmint-sak-v2)MediumStill opennot reported again
#2Mobile backend auths by wallet-address headerMediumStill open#103
#3Agent signs raw tx bytes from callerMediumStill open#99
#4Vendor-built txs signed without inspectionLowStill open#12
#5Vendor-supplied account metas / signer flagsLowStill open#71
#6Vendor sets uncapped tipLowStill open#84
#7Send loop reports success on "processed"LowStill open#8
#8Confirmation results ignoredLowStill open#10, #9
#9Explorer reply overrides on-chain revertLowStill open#11
#10Transfers hard-wired to classic token programLowStill open#3, #6
#11Pool creation: no Token-2022 extension / owner checksLowStill open#7
#12Balance listings ignore Token-2022LowStill open#4, #5
#13Creator-fee claim uses referral walletLowStill open#1
#14Fee payer / user wallet from caller inputLowStill open#154
#15Vendor HTTP responses used uncheckedLowStill open#19, #13, #14, #16, #17, #27
#16Oracle prices without freshness checkLowStill open#15, #18
#17Sanctum rebuild loses lookup-table accountsLowStill open#144
#18Failure messages unreadableLowStill open#26
#19Misleading or raw error textLowStill open#26, #11
#20Missing balances reported as zeroLowStill open#21
#21||/?? defaults hide missing dataLowStill open#24, #22, #23, #25
#22Undocumented vendor endpoint used as APILowStill open#27
#23Phantom results used with wrong shapeLowStill opennot reported again
#24Phantom init without secure-context checkLowStill opennot reported again
#25MWA path on every Android deviceLowStill opennot reported again
#26System colour-scheme check invertedLowStill opennot reported again
#27Theme after first paint / white splashLowStill open#32
#28Hard-coded colours / one-theme logoLowStill open#37, #38
#29Responsive image sizes invalidLowStill opennot reported again
#30Login modal interrupts typingLowStill opennot reported again
#31EVM wallet cached at module levelMediumStill open#55
#32SolutioFi client cached once for all agentsLowStill open#74
#33Para example: one agent, wallet swapped per requestMediumStill opennot reported again
#34Next.js LangChain example: shared thread and walletMediumStill opennot reported again
#35Order-confirmation polling always times outLowStill open#42
#36Drift client polls every 10 ms, leaks on errorMediumStill open#44, #43
#37Confirmation polled, not subscribedLowStill open#45
#38Plugin registration not atomicLowStill open#47
#39Two adapters bypass executeActionLowStill open#157
#40Constants recomputed per callLowStill open#59
#41Fixed sleep stands in for confirmationLowStill open#141
#42Dead persistence codeLowStill opennot reported again
#43In-progress flag can stick, not atomicLowStill opennot reported again
#44Message overwritable by id across chatsLowStill open#104
#45User and assistant message ids collideLowStill opennot reported again
#46Identity columns lack uniquenessLowStill opennot reported again
#47MCP example starts with zero toolsLowStill opennot reported again
#48API key read from process.env, not configLowStill open#67
#49Missing credentials become empty stringsLowStill open#67
#50Oversized filesLowStill open#79
#51Duplicated logic and typesLowStill open#72, #89, #95, #56
#52Runtime logic in types layer, import cycleLowStill open#78
#53CI runs no tests, lint:fixLowStill open#85
#54Test suite: zero assertions, dead importsLowStill open#86, #87, #96
#55Jest scripts, Jest not installedLowStill open#86
#56Unresolved confirm TODOsLowStill opennot reported again
#57Token table copied five timesLowStill open#72
#58Priority-fee request written three timesLowStill opennot reported again
#59Results logged as warningsLowStill open#91
#60CI ignores lockfileLowStill open#172
#61Previous-version scripts remainLowStill open#173
#62Batch send throws after first broadcastMediumStill open#98
#63Sign-only mode bypassed by pluginsHighStill open#116, #83, #84, #17
#64Production vendor key hard-codedMediumStill open#128
#65Fallback Allora key hard-codedLowStill open#62
#66Pump.fun launch never signs with mint keyLowStill open#109
#67Pump.fun initial buy: SOL used as token amountLowStill open#49
#68Third-party wallet is default token creatorMediumStill open#61
#69Signing methods passed without their objectMediumStill open#112
#70Legacy txs built without fee payerMediumStill opennot reported again
#71Market account not signed by its keypairLowStill open#129
#72Close-empty-accounts crashes under 40LowStill open#108
#73Compressed airdrop action wrong argumentsLowStill open#110, #111
#74NFT mint sends same tx twiceLowStill open#101
#75Domain registration swaps ATA argsLowStill open#121
#76Priority-fee lookup crashes on no samplesLowStill open#115
#77Each send signs twice; signed tx to third partyLowStill open#113
#78Remote priority fee uncapped, mainnet hostLowStill open#118
#79Float maths for base unitsLowStill open#75
#80OpenAI adapter optionals required, aborts on unionsMediumStill open#158
#81MCP adapter makes optionals requiredMediumStill open#156
#82Vercel AI tools named by array indexLowStill open#159
#83Tool limit drops 128th toolLowStill open#89
#84Dependent market txs in parallelMediumStill open#152
#85CoinGecko URLs end in "undefined"LowStill open#63
#86API key logged via raw HTTP errorLowStill open#168
#87SPL branch of priority-fee transfer brokenLowStill open#117
#88Debug script opens mainnet positionLowStill open#97
#89Exact old core versions as peersLowStill open#169
#90require in ES-module packageLowStill open#160
#91Prices truncated to two decimalsMediumStill open#20
#92Ticker lookup picks highest FDVLowStill open#166
#93Per-tx failures swallowed in burn/close/mergeLowStill open#66
#94Mayan schema requires unused fieldLowStill open#164
#95Jupiter swap ignores slippageLowStill open#48
#96Voltr withdraw uses deposit endpointLowStill open#71
#97Drift stake-account check never detects missingLowStill open#137
#98Drift perp amount: tokens documented, USD usedMediumStill open#142
#99Vault withdrawal always 6-decimalLowStill open#140
#100Adrena shorts derive long position addressLowStill open#70
#101Adrena leverage unit contradicts protocolLowStill open#69
#102Flash: hard-coded 10% slippage, no preflightMediumStill open#80
#103Bridge affiliate fee/recipient from modelLowStill open#146
#104Order ids are random floatsLowStill open#130
#105Lavarage slippage unboundedLowStill opennot reported again
#106Network detected from RPC URL substringLowStill open#147
#107OpenAI secret key shipped in client bundlesHighStill open#105
#108Turnkey org private key shipped to browserHighStill opennot reported again
#109Model output rendered as unsanitised HTMLMediumStill opennot reported again
#110BackHandler cleanup uses removed APILowNot in the code: the first audit was wrong herenot reported again
#111Typing animation restarts after unmountLowStill open#30
#112Clipboard imported from RN coreLowStill open#28
#113Helius key bundled in mobile appLowStill open#177
#114Release build signed with debug keystoreLowStill open#183
#115Key shares readable/deletable by email, no authMediumStill opennot reported again
#116Chat server functions skip auth/ownershipLowStill opennot reported again
#117Session secret hard-codedLowStill opennot reported again
#118Unauthenticated file uploadLowStill open#176
#119Saved parts replaced by placeholderLowStill opennot reported again
#120TG bot puts private key in prompt, plaintext storeMediumStill opennot reported again
#121Group bot posts private key into chatMediumStill opennot reported again
#122Bots/routes let any user spend one shared walletMediumStill opennot reported again
#123Telegram webhook accepts unauthenticated updatesMediumStill opennot reported again
#124Bot timeout never covers the streamLowStill opennot reported again
#125Invite redemption/keypair creation raceLowStill opennot reported again
#126Discord history stores replies as user messagesLowStill opennot reported again
#127Wallet delete removes only linkLowStill opennot reported again
#128Autonomous loop, no spending limitLowStill opennot reported again
#129Wormhole example: removed constructor, RegExp from inputLowStill opennot reported again
#130Discord example reads two RPC variablesLowStill opennot reported again
#131Token deploy ignores authority optionsLowStill open#51
#1323Land tool calls SDK with empty credentialsLowStill open#52
#133Multisig transfer uses member wallet, vault 0LowStill open#2, #119
#134Mobile chat retries whole generationsMediumStill open#106
#135Message signature wrapped as text bytesLowStill opennot reported again
#136Overlay/audio permissions in main manifestLowStill open#40, #184
#137Signer stubs return unsigned txLowStill opennot reported again
#138Server-wallet signAllTransactions malformedLowStill opennot reported again
#139Example prints full keypairLowStill opennot reported again
#140OKX DEX starter wrong numbers, swap before confirmLowStill opennot reported again
How to read this page

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. 147 findings were first rated Medium or High; 69 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. Code locations link to the file and line at the audited commit.

High after review (1)

105. High Mobile example ships a paid model API key inside the app bundle
First rating: High · Reviewed rating: High · Review: confirmed · also in the first audit (#107)
From the report
Evidence

Evidence: import { OPENAI_API_KEY } from "@env"; / apiKey: OPENAI_API_KEY || "dummy-key-placeholder",

Why it matters

anyone with the app can extract the key and spend the owner's quota.

Suggested fix, not tested

call the model through the backend, and rotate any key that was ever bundled.

Medium after review (68)

1. Medium Creator-fee claim is built for the referral wallet, not the agent
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#13)
From the report
Evidence

Evidence: const ix = await pumpSdk.collectCoinCreatorFeeInstructions(REFERRAL_WALLET); and payerKey: REFERRAL_WALLET,

Why it matters

the transaction pays fees from, and claims for, a hard-coded third-party wallet. The agent cannot sign as that wallet, so the claim always fails.

Suggested fix, not tested

use agent.wallet.publicKey as both the creator and the fee payer.

2. Medium Treasury transfer names the agent wallet as source instead of the vault
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#133)
From the report
Evidence

Evidence: fromPubkey: agent.wallet.publicKey, and createTransferInstruction(fromAta, toAta, agent.wallet.publicKey, adjustedAmount)

Why it matters

inside a multisig vault transaction only the vault can sign. The proposal therefore cannot execute, or it would move funds from the wrong account.

Suggested fix, not tested

use the vault address as the source and as the token authority, and create the recipient's token account when it is missing.

3. Medium Token transfer assumes the classic token program
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#10)
From the report
Evidence

Evidence: const fromAta = await getAssociatedTokenAddress(mint, agent.wallet.publicKey); and } catch { ... createAssociatedTokenAccountInstruction(

Why it matters

Token-2022 mints derive the wrong accounts and fail. Any RPC error is also read as "account missing".

Suggested fix, not tested

read the owning program of the mint, pass it to every token helper, catch only the not-found error, and use idempotent account creation.

9. Medium Checkout payment is broadcast with preflight off and never confirmed
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#8)
From the report
Evidence

Evidence: const signature = await agent.connection.sendTransaction(signedTx, { skipPreflight: true, });

Why it matters

a failed USDC payment is followed straight away by order handling, as if it had been paid.

Suggested fix, not tested

keep preflight on, confirm with the signed blockhash, check value.err, and only then report the order.

20. Medium Oracle price is reformatted lossily (0.05 becomes 0.5)
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#91)
From the report
Evidence

Evidence: const adjustedPrice = price.mul(new BN(100)); ... ${priceStr.slice(0, -2)}.${priceStr.slice(-2)}

Why it matters

prices under 0.10 are rendered wrongly, for example 0.05 becomes "0.5", and sub-cent prices become "0.0". Trading decisions can follow from that.

Suggested fix, not tested

return the raw price and exponent, or format with exact decimal arithmetic.

21. Medium Balance tool queries a mint as if it were a token account and masks missing data as 0
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#20)
From the report
Evidence

Evidence: await agent.connection.getTokenAccountBalance(token_address); and return token_account.value.uiAmount || 0;

Why it matters

the documented input, a mint address, fails. A null amount is reported as 0. get_balance_other.ts also masks with || 0.

Suggested fix, not tested

derive the owner's token account for the mint, and return null or an error instead of 0.

22. Medium An explicit royalty of 0 is replaced by 5%
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#21)
From the report
Evidence

Evidence: basisPoints: options.royaltyBasisPoints || 500,

Why it matters

"no royalties" collections are created with 5% royalties.

Suggested fix, not tested

use ?? 500.

42. Medium Order confirmation polling never returns its result after payment
First rating: High · Reviewed rating: Medium · Review: rated too high · also in the first audit (#35)
From the report
Evidence

Evidence: const pollInterval = setInterval(async () => { ... return { success: true, status: "completed", order } ... return { success: false, error: "Payment confirmation timeout" };

Why it matters

values returned from the interval callback go nowhere, so the function returns "timeout" at once while the timers keep running. Checkout has already sent the USDC payment, and then reports "Failed to fetch order status". An agent may retry and buy twice.

Suggested fix, not tested

poll with an awaited loop and a deadline, return the real status, and clear every timer.

43. Medium Perp-venue clients are leaked on every error and manager path
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#36)
From the report
Evidence

Evidence: const { driftClient, cleanUp } = await initClients(agent); ... } catch (e) { throw new Error(\Failed to create user account: ...\); }

Why it matters

cleanUp() runs only on success. Errors, and the manager branches in drift_vault.ts (line 395 and others), leave subscribed polling clients alive, which exhausts RPC limits.

Suggested fix, not tested

call cleanUp in finally everywhere, and reuse one client per operation.

44. Medium Account loader polls the RPC node every 10 ms
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#36)
From the report
Evidence

Evidence: accountLoader: new BulkAccountLoader(agent.connection, "processed", 10),

Why it matters

each client makes about 100 requests per second, multiplied by the leaked clients, at a commitment level that can be rolled back.

Suggested fix, not tested

poll at 1 s or slower with "confirmed" commitment, or fetch once for one-shot reads.

46. Medium Send loop re-broadcasts and can report a landed transaction as failed
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const signature = await agent.connection.sendTransaction(signedTransaction as VersionedTransaction, { maxRetries: 0, skipPreflight: false });

Why it matters

the same transaction is re-sent every second. Once it lands, preflight rejects the next send as already processed, and that error discards the success.

Suggested fix, not tested

send once, poll the status, re-send only while the status is null and the blockhash is valid, and treat "already processed" as success.

48. Medium Swap slippage parameter is accepted and dropped
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#95)
From the report
Evidence

Evidence: _slippageBps: number = DEFAULT_OPTIONS.SLIPPAGE_BPS, ... &dynamicSlippage=true

Why it matters

a caller who asks for a slippage cap gets none, even though the action's example promises 1%.

Suggested fix, not tested

honour the value as a maximum, or remove it from the schema and examples.

49. Medium Token launch passes a SOL amount as a token amount and drops slippage and fee
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#67)
From the report
Evidence

Evidence: input.initialLiquiditySOL, and in the tool: getBuySolAmountFromTokenAmount(global, bondingCurve, new BN(amount), true)

Why it matters

the default 0.0001 becomes BN(0) tokens, and the user's slippage and priority fee are ignored.

Suggested fix, not tested

convert SOL to a token amount explicitly, and carry slippage and fee through.

50. Medium NFT mint drops the requested royalties and creators
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: create(umi, { asset: assetSigner, collection: collection, name: metadata.name, uri: metadata.uri,

Why it matters

the sellerFeeBasisPoints and creators values that are accepted never reach the asset.

Suggested fix, not tested

pass them to the royalties setting, or remove them from the signature.

51. Medium Token deploy ignores update authority and mutability
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#131)
From the report
Evidence

Evidence: defaultAuthority.updateAuthority = new PublicKey(authority?.updateAuthority); ... defaultAuthority.isMutable = authority?.isMutable;

Why it matters

a request for an immutable token silently produces a mutable one.

Suggested fix, not tested

apply both values to the create call, or reject them.

54. Medium Bridge order drops the caller's slippage and related fields
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: slippage: input.slippage, while create_bridge_order.ts builds its query without it.

Why it matters

the user believes a slippage limit applies when none does.

Suggested fix, not tested

forward the fields, or remove them from the schema.

55. Medium Cross-chain EVM wallet is cached for the whole process and shared across agents
First rating: High · Reviewed rating: Medium · Review: rated too high · also in the first audit (#31)
From the report
Evidence

Evidence: let evmWallet: Wallet | null; ... if (!evmWallet) { if (agent.config?.ETHEREUM_PRIVATE_KEY) { evmWallet = new Wallet(...)

Why it matters

in a server that hosts several agents, a later agent's cross-chain swap is signed with the first agent's private key and spends that user's funds.

Suggested fix, not tested

create the wallet per call from the calling agent's configuration, or cache it per agent.

61. Medium Token launch defaults the creator to a hard-coded third-party wallet
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#68)
From the report
Evidence

Evidence: createInstruction(mint.publicKey, metadata.name, metadata.symbol, metadataUri, REFERRAL_WALLET, agent.wallet.publicKey)

Why it matters

when the referral setting is unset, the creator of every launched token, and therefore its creator fees, is a vendor address. There is no warning.

Suggested fix, not tested

default the creator to the agent wallet, and require the referral to be configured explicitly.

63. Medium Missing demo key puts the text "undefined" into request URLs
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#85)
From the report
Evidence

Evidence: .../search/trending${agent.config?.COINGECKO_DEMO_API_KEY && ?x_cg_demo_api_key=...}

Why it matters

without a key, the URL ends in trendingundefined and the 404 body is returned as data. get_token_price_data.ts has the same problem.

Suggested fix, not tested

build query strings with URLSearchParams, adding the key only when it is set.

66. Medium Batch token operations swallow failures and report full success
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#93)
From the report
Evidence

Evidence: } catch (_error) { continue; }

Why it matters

failed closes, burns, merges and spreads disappear, and the action prints "Successfully closed N accounts" anyway.

Suggested fix, not tested

collect per-transaction errors and report partial failure.

70. Medium Short positions are derived with the long-side address
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#100)
From the report
Evidence

Evidence: const position = AdrenaClient.findPositionAddress(owner, custody.pubkey, "long",

Why it matters

closing or opening a short targets the long position's account, at line 63 and again at line 442.

Suggested fix, not tested

pass "short", and move the shared account resolution into one side-aware helper.

75. Medium Token amounts are converted to integer units with floating-point maths
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#79)
From the report
Evidence

Evidence: lamports: amount * LAMPORTS_PER_SOL, and const adjustedAmount = amount * Math.pow(10, mintInfo.decimals);

Why it matters

values like 1.1 SOL give non-integer lamports, and the transfer throws. The same pattern is in the Helius, Squads, compressed-airdrop, Fluxbeam, Adrena, Flash and Orca tools.

Suggested fix, not tested

convert decimal strings to integers with exact arithmetic, and reject excess precision.

80. Medium Every perp open tolerates a fixed 10% slippage
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#102)
From the report
Evidence

Evidence: const slippageBps = new BN(1000);

Why it matters

the caller cannot tighten slippage on a leveraged open, and closes use a different fixed 1%.

Suggested fix, not tested

expose a validated, bounded slippage parameter with a conservative default.

82. Medium Pre-built transactions bypass the confirm-and-retry send path
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: return ( await agent.wallet.signAndSendTransaction(instructionsOrTransaction) ).signature;

Why it matters

most tools pass Transaction objects. These go to a basic send with no confirmation, so tools report success for transactions that may never land.

Suggested fix, not tested

route signed transactions through the same confirm-and-retry function.

83. Medium Token-2022 deploy bypasses the shared send path and sign-only mode
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#63)
From the report
Evidence

Evidence: await builder.sendAndConfirm(umi, { confirm: { commitment: "processed" } });

Why it matters

the tool always broadcasts, even for sign-only agents, and confirms at the weakest commitment.

Suggested fix, not tested

build the transaction and send it through the shared helper.

84. Medium Leveraged-trading tools use their own send path with preflight off and an uncapped vendor tip
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#6)
From the report
Evidence

Evidence: if (agent.wallet.signAndSendTransaction) { const { signature } = await agent.wallet.signAndSendTransaction(tx); ... { skipPreflight: true, maxRetries: 3 }

Why it matters

there is no confirmation and no sign-only handling, and the tip amount comes straight from the vendor.

Suggested fix, not tested

fix the duplicated dependency that forced the workaround, send through the shared helper, and cap the tip.

98. Medium Batch send throws after the first transaction is broadcast
First rating: High · Reviewed rating: Medium · Review: rated too high · also in the first audit (#62)
From the report
Evidence

Evidence: txSigs.push(signature); } / throw new Error("Wallet does not support signAndSendTransaction ...");

Why it matters

for any array of transactions, for example when cancelling limit orders, the first one lands, an error is thrown, its signature is lost and the rest are never sent. Retries then duplicate the effects.

Suggested fix, not tested

check wallet support before the loop, and put the throw in an else branch.

99. Medium Bridge execution signs any raw transaction the model supplies
First rating: High · Reviewed rating: Medium · Review: rated too high · also in the first audit (#3)
From the report
Evidence

Evidence: const txBuffer = Buffer.from(transactionData.substring(2), "hex"); / const transaction = VersionedTransaction.deserialize(txBuffer); / return await signOrSendTX(agent, transaction);

Why it matters

prompt-injected text can make the agent sign a transaction that drains the wallet.

Suggested fix, not tested

never accept raw transaction bytes from the model. Keep the order server-side behind an id, or decode the bytes and allow-list programs and destinations.

100. Medium Model-controlled network name can send the RPC API key to any host
First rating: High · Reviewed rating: Medium · Review: rated too high · new in this audit
From the report
Evidence

Evidence: return https://${network}.g.alchemy.com/v2/${apiKey}; where network comes from the action's z.string().optional() field.

Why it matters

a value such as evil.example/x? sends the key to that host.

Suggested fix, not tested

allow-list the network values, and treat the network as configuration, not as model input.

Review: ` in rpcRequest.ts:41, used at urls.ts:22; needs prompt injection, leaks a vendor key not funds)

101. Medium NFT mint sends the same transaction twice and reports a successful mint as failed
First rating: High · Reviewed rating: Medium · Review: rated too high · also in the first audit (#74)
From the report
Evidence

Evidence: const sigOrTx = await signOrSendTX(agent, tx); ... await signOrSendTX(agent, tx);

Why it matters

the second send fails as already processed, so the call reports failure. A retry mints a duplicate asset and pays again.

Suggested fix, not tested

delete the second call.

102. Medium Swap can execute twice when both amount fields are given
First rating: High · Reviewed rating: Medium · Review: rated too high · new in this audit
From the report
Evidence

Evidence: if (params.fromAmount) { ... txSig = signature; } and if (params.toAmount) { ... txSig = signature; }

Why it matters

the model can supply both optional fields, and then two swaps run, the second in reverse direction. The success message also prints an undefined amount.

Suggested fix, not tested

require exactly one field in the schema and use if/else. Check the quote response, and compute slippage as an integer.

103. Medium Example server authenticates users by a self-asserted wallet address
First rating: High · Reviewed rating: Medium · Review: rated too high · also in the first audit (#2)
From the report
Evidence

Evidence: const walletAddress = req.headers['x-wallet-address'] as string || req.query.walletAddress as string; / const user = await User.findOne({ walletAddress });

Why it matters

anyone can read and delete another user's chats. A query object can also inject filter operators.

Suggested fix, not tested

verify a session token or signature on the server, coerce the address to a string, and sanitize filters.

106. Medium Mobile example retries a whole tool-using model call after transactions may have been sent
First rating: High · Reviewed rating: Medium · Review: rated too high · also in the first audit (#134)
From the report
Evidence

Evidence: const shouldRetry = isTransactionRelated(messageContent) && retryCount < MAX_RETRIES; / return executeWithRetry(operation);

Why it matters

a network error after a transfer or swap was broadcast re-runs the prompt, and the transaction can be sent again.

Suggested fix, not tested

never retry after a tool with side effects has run, or make tools idempotent.

107. Medium Mobile example lets the model sign and send transactions without user approval
First rating: High · Reviewed rating: Medium · Review: rated too high · new in this audit
From the report
Evidence

Evidence: signAndSendTransaction: async tx => { setCurrentOperation("Signing and sending transaction..."); ... with tools: solanaTools, maxSteps: 5,

Why it matters

injected text in chat content or token metadata can move the user's funds.

Suggested fix, not tested

require a confirmation dialog showing recipient, asset, amount and fee, and add spend limits.

108. Medium Closing empty token accounts crashes for almost every wallet
First rating: Medium · Reviewed rating: Medium · Review: location checked, kept as rated · also in the first audit (#72)
From the report
Evidence

Evidence: for (let i = 0; i < Math.max(0, MAX_INSTRUCTIONS - spl_token.length); i++) { transaction.add(token_2022[i]);

Why it matters

the loop reads past the end of the array and throws before the "nothing to close" check. The sign-only path also signs without a blockhash.

Suggested fix, not tested

bound the loop by the array length, check for emptiness first, and set the blockhash before signing.

Review: ` throws before the size check at 40; sign-only path signs before the blockhash is set at 57)

109. Medium Token launch never gets the new mint's signature
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#66)
From the report
Evidence

Evidence: const tx = new VersionedTransaction(messageV0); ... const txHash = await signOrSendTX(agent, tx);

Why it matters

every launch fails signature verification after the metadata upload.

Suggested fix, not tested

add tx.sign([mint]) before wallet signing.

Review: `; fails after the Pinata upload)

110. Medium Airdrop action calls its tool with the wrong arguments
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#73)
From the report
Evidence

Evidence: const txs = await sendCompressedAirdrop(mintAddress, amount, decimals, recipients, ...

Why it matters

the agent argument is missing and strings are passed where public keys are expected, so the action always fails.

Suggested fix, not tested

pass the agent and PublicKey values.

111. Medium Airdrop tool serializes an incomplete transaction and packs all recipients into one
First rating: Medium · Reviewed rating: Medium · Review: location checked, kept as rated · also in the first audit (#73)
From the report
Evidence

Evidence: const transaction = Transaction.from(setupTransaction.serialize());

Why it matters

serialization throws without a fee payer and blockhash. Flattening every batch into one transaction exceeds size limits.

Suggested fix, not tested

add instructions directly, and send one transaction per batch.

Review: has no blockhash/payer; flattened compressInstructionSet` at 185)

112. Medium Wallet methods passed as detached callbacks lose their object
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#69)
From the report
Evidence

Evidence: signAllTransactions: agent.wallet.signAllTransactions, / agent.wallet.signTransaction,

Why it matters

with the built-in keypair wallet, signing throws because this is undefined. The same happens in the Tensor trade and NFT utilities.

Suggested fix, not tested

pass arrow wrappers.

113. Medium Send helper signs twice and sends a fully signed transaction to a fee-estimation service
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#77)
From the report
Evidence

Evidence: const signedTransaction = await agent.wallet.signTransaction(transaction); ... return sendTx(agent, ...), and in send_tx.ts:66 a signed transaction is posted to the fee service.

Why it matters

wallets prompt twice, and valid signed transactions leave the process.

Suggested fix, not tested

sign once, and estimate fees from unsigned messages.

114. Medium Extra signers are ignored for pre-built transactions
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: instructionsOrTransaction instanceof Transaction || instructionsOrTransaction instanceof VersionedTransaction, then signAndSendTransaction(instructionsOrTransaction)

Why it matters

required extra signatures, for example in Tensor trades, are silently dropped.

Suggested fix, not tested

apply the extra signers on every branch.

116. Medium Several payment and swap tools ignore sign-only mode
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#63)
From the report
Evidence

Evidence: const signature = await agent.connection.sendTransaction(signedTx, {

Why it matters

a sign-only agent still broadcasts the checkout payment, the task payment (create_gibwork_task.ts:62) and cross-chain swaps.

Suggested fix, not tested

send through the shared helper that enforces sign-only mode.

Review: earlier row 63 graded the whole class HIGH

117. Medium Priority-fee token transfer always fails
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#87)
From the report
Evidence

Evidence: transaction: bs58.encode(transaction.serialize()),

Why it matters

an empty, unsigned transaction fails serialization. Creating the recipient account unconditionally also fails when it already exists.

Suggested fix, not tested

serialize without signature verification after adding instructions, and use idempotent account creation.

Review: ` of an empty unsigned tx at 126; non-idempotent ATA create at 147)

120. Medium Proposal approval throws after the approval was sent
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: transactionIndex: input.transactionIndex.toString(), with the schema field z.number().optional()

Why it matters

with the documented default, a completed approval is reported as an error and may be retried.

Suggested fix, not tested

use optional chaining, and return the resolved index.

Review: on an optional field, after multisig_approve_proposal` ran)

121. Medium Domain registration derives the payment account with swapped arguments
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#75)
From the report
Evidence

Evidence: getAssociatedTokenAddressSync(agent.wallet.publicKey, TOKENS.USDC,)

Why it matters

the USDC payment account is wrong, so registration cannot pay.

Suggested fix, not tested

call it with (TOKENS.USDC, agent.wallet.publicKey).

Review: `)

122. Medium All-domains listing repeats one query per suffix and mislabels results
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: for (const tld of tlds) { const domains = await getAllDomains(agent.connection, new PublicKey("namesLP..."));

Why it matters

the same full scan runs once per suffix, and every name is labelled with every suffix.

Suggested fix, not tested

query per suffix correctly, or run the scan once.

123. Medium Feed simulation reads a field the schema does not define
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const { feedAddress, crossbarUrl } = input; while the schema defines feed.

Why it matters

the feed is always undefined and the action always fails.

Suggested fix, not tested

read feed.

124. Medium Price action returns an unawaited promise
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: result: getTokenPriceData(agent, input.tokenAddresses),

Why it matters

the result serializes as {}, and a rejection escapes the error handling.

Suggested fix, not tested

add await.

Review: without await` inside try)

125. Medium Top-gainers action omits the agent argument
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: result: await getTopGainers(input.duration),

Why it matters

the duration lands in the agent parameter, and the call always fails.

Suggested fix, not tested

call getTopGainers(agent, input.duration).

Review: ; with the string in the agent slot agent.config?.COINGECKO_PRO_API_KEY` is undefined, so it always throws)

126. Medium Parse actions use the wrong handler signature
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: handler: async (input: Record<string, any>) => {

Why it matters

the input is read from the agent object, so the account and instruction parsing actions always fail.

Suggested fix, not tested

use async (_agent, input).

Review: ` in parseAccount.ts:39 and parseInstruction.ts:39)

128. Medium Production vendor API key committed in source
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#64)
From the report
Evidence

Evidence: const API_KEY = "lv2_..."; (a production API key; only the first 4 characters are shown)

Why it matters

every user shares one published key, and it cannot be rotated without a release.

Suggested fix, not tested

remove and rotate it, and read the key from configuration.

129. Medium Market creation never signs with the new market keypair
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#71)
From the report
Evidence

Evidence: const marketKeypair: Keypair = Keypair.generate(); ... return [await signOrSendTX(agent, tx), marketKeypair.publicKey.toBase58()];

Why it matters

account creation fails signature verification.

Suggested fix, not tested

pass [marketKeypair] as an extra signer.

131. Medium Pool action reads amount keys the schema does not define
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: input.token_a_amount, while the schema defines tokenAamount.

Why it matters

the amounts become NaN, and the pool request is sent with null amounts.

Suggested fix, not tested

align the key names.

132. Medium AMM pool action reads fields that are not in its schema
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const marketId = new PublicKey(input.marketId); / const startTime = new BN(input.startTime);

Why it matters

the action always throws.

Suggested fix, not tested

add marketId, read openTime, and scale the amounts by the token decimals.

Review: ` throws)

133. Medium Constant-product pool action reads a config id the schema does not define
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const configId = new PublicKey(input.configId);

Why it matters

the action always throws.

Suggested fix, not tested

add the field to the schema and validate it.

134. Medium Dynamic pool action reads wrong field names and scales amounts twice
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const tokenAMint = new PublicKey(input.tokenAMint); while the schema defines tokenAAddress, and amounts described "in lamport units" are multiplied by 10 ** decimals again.

Why it matters

the action always throws, and once that is fixed the deposits would be far too large.

Suggested fix, not tested

align the names and use one unit per field.

135. Medium Liquidity pool action passes enum strings where numbers are expected
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const activationType = input.activationType ?? 1;

Why it matters

the pool is misconfigured, and an activation point of 0 is dropped.

Suggested fix, not tested

map the string to the library's enum, and check !== undefined.

137. Medium First-time insurance-fund stake can never create its account
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#97)
From the report
Evidence

Evidence: try { await driftClient.connection.getAccountInfo(...); } catch (e) { if (e.message.includes("Account not found")) { shouldCreateAccount = true;

Why it matters

the call returns null rather than throwing, so the account is never initialized and the stake fails.

Suggested fix, not tested

check for null.

138. Medium Vault update schema misspells the hurdle-rate field
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: handleRate: z.number().optional(), while the handler reads input.hurdleRate.

Why it matters

the hurdle rate can never be updated.

Suggested fix, not tested

rename the field.

139. Medium Vault percentages are truncated to integers and the redeem period unit is wrong
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: redeemPeriod: new BN(params.redeemPeriod * 86400), / managementFee: new BN(params.managementFee)

Why it matters

2.5% becomes 2% and 0.1 becomes 0, written on chain. The period is documented in seconds but computed as days.

Suggested fix, not tested

convert with explicit rounding, and make the documentation match the units.

Review: truncates, redeemPeriod * 86400` against docstring "in seconds" at line 114)

142. Medium Perp amount documented in tokens is treated as USD
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#98)
From the report
Evidence

Evidence: params.amount / convertToNumber(baseAssetPrice.price, PRICE_PRECISION)

Why it matters

a request for "50 SOL" opens a position of about $50.

Suggested fix, not tested

align the unit, and add a worst-price limit to market orders.

148. Medium Single-sided pool scales an amount already in base units
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: depositTokenAmount * Math.pow(10, mintAAccount.decimals)

Why it matters

the deposit is far too large, or the call throws.

Suggested fix, not tested

use one unit and decimal-safe conversion.

149. Medium Fee tier example fails its own validation
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: feeTier: z.number().refine((val) => val in FEE_TIERS, ...).describe("... (e.g., 0.3 for 0.3%)")

Why it matters

the documented value is rejected.

Suggested fix, not tested

use basis points in both the description and the example.

150. Medium Position close sends only the first of several transactions
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const txPayload = await txBuilder[0].build();

Why it matters

positions can be left partly closed or unclaimed.

Suggested fix, not tested

send every builder in order.

152. Medium Dependent market-creation transactions are sent in parallel
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#84)
From the report
Evidence

Evidence: const txs = await Promise.all(transactions.map(async (tx) => {

Why it matters

later steps can land first and fail, leaving funded, half-created accounts.

Suggested fix, not tested

send sequentially with confirmation.

156. Medium MCP adapter makes every optional parameter required
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#81)
From the report
Evidence

Evidence: result[key] = isZodOptional(value) ? value.unwrap() : value;

Why it matters

MCP clients must invent values for optional fields.

Suggested fix, not tested

keep the optional wrapper.

Review: `)

158. Medium OpenAI schema mapper forces optional fields and breaks nullable ones
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#80)
From the report
Evidence

Evidence: case "ZodNullable": ... if (!jsonSchema.enum) { jsonSchema.enum = [""]; }

Why it matters

optional fields become required, and nullable fields accept only the empty string.

Suggested fix, not tested

emit nullable types and map null back to undefined.

Review: at 123/172; nullable part holds only for optional-and-nullable via the enum: [""]` case at 77-85)

178. Medium Profile screen refetches in a loop
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence

Evidence: }, [walletAddress, fetchTransactions]);

Why it matters

each response re-triggers a reset fetch that bypasses the rate limit, and "load more" pages are replaced.

Suggested fix, not tested

key the effect on the wallet address only, and keep transient state in refs.

Low after review (110)

4. Low Balance listing ignores Token-2022 holdings
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#12)
From the report
Evidence

Evidence: programId: TOKEN_PROGRAM_ID,

Why it matters

Token-2022 balances are missing from the result.

Suggested fix, not tested

query both token programs and merge the results.

5. Low Priority-fee token transfer is hard-wired to the classic token program
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#12)
From the report
Evidence

Evidence: const fromAta = await getAssociatedTokenAddress(splmintAddress, agent.wallet.publicKey); and const mintInfo = await getMint(agent.connection, splmintAddress);

Why it matters

Token-2022 mints fail.

Suggested fix, not tested

detect the mint's program, pass it everywhere, and use a checked transfer that carries the decimals.

6. Low Treasury deposit never checks which token program owns the mint
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#10)
From the report
Evidence

Evidence: const fromAta = await getAssociatedTokenAddress(mint, agent.wallet.publicKey); and const mintInfo = await getMint(agent.connection, mint);

Why it matters

deposits of Token-2022 tokens fail. The transfer-out tool has the same gap.

Suggested fix, not tested

resolve the program from the mint account owner and pass it to every helper.

7. Low Pool tools read mints without checking the owning program
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#11)
From the report
Evidence

Evidence: const baseMintInfo = await getMint(agent.connection, baseMint);

Why it matters

Token-2022 mints fail, or are decoded under the wrong assumptions. The same applies to the Raydium CPMM/CLMM and Meteora DLMM tools.

Suggested fix, not tested

verify that the owner is one of the two token programs and pass it on.

8. Low Send helper treats an unconfirmed status as success and drops the signature on timeout
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#7)
From the report
Evidence

Evidence: if (statuses.value[0]) { if (!statuses.value[0].err) { return signature; } and throw new Error("Transaction timeout");

Why it matters

a "processed" transaction can still be dropped, yet it is reported as success. After a timeout the caller has no signature to check and may retry a transfer that lands anyway.

Suggested fix, not tested

require "confirmed" or "finalized", track lastValidBlockHeight, and include the signature in the timeout error.

10. Low Task payment confirmation result is ignored
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#8)
From the report
Evidence

Evidence: const latestBlockhash = await agent.connection.getLatestBlockhash(); await agent.connection.confirmTransaction({ signature, blockhash: latestBlockhash.blockhash,

Why it matters

a failed or expired payment is reported as "success". The confirmation also uses a fresh blockhash instead of the one that was signed.

Suggested fix, not tested

use the signed blockhash and its height, check value.err, and check apiResponse.ok.

11. Low A reverted cross-chain swap can be reported as success
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#9)
From the report
Evidence

Evidence: if (result?.value.err) { throw new Error(... reverted!) } ... } catch (error) { ... if (res.status !== 200) { throw error; } return swapRes.signature;

Why it matters

the revert is caught by the same catch block as a timeout. An HTTP 200 from the explorer then turns the revert into success.

Suggested fix, not tested

treat an on-chain error as final, and use the explorer only for confirmation timeouts. Do not put the serialized transaction into error text.

12. Low Transactions built by third-party services are signed without inspection
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#4)
From the report
Evidence

Evidence: const transaction = VersionedTransaction.deserialize(swapTransactionBuf); and return await signOrSendTX(agent, transaction);

Why it matters

the same pattern appears in the checkout, task, staking, game, lending, Solayer, Fluxbeam and Lavarage tools. A faulty or compromised vendor could have arbitrary transfers signed.

Suggested fix, not tested

before signing, decode the transaction and check the fee payer, the program ids and the net debit against the request.

13. Low Webhook creation reports success without checking the response
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#15)
From the report
Evidence

Evidence: const data = await response.json(); return { webhookURL: data.webhookURL, webhookID: data.webhookID, };

Why it matters

a failed call, including a missing API key sent as api-key=undefined, still returns "success" with undefined ids.

Suggested fix, not tested

check response.ok and the presence of a webhook id, and validate the key up front.

14. Low Program verification failure is reported as "successfully verified"
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#15)
From the report
Evidence

Evidence: if (response.ok) { return await response.json(); } return null;

Why it matters

the action prints "successfully verified" when submission failed, and also when a job was merely queued.

Suggested fix, not tested

throw with the status on failure, and report "job submitted" together with its id.

15. Low Oracle price fetched without status, freshness or confidence checks
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#16)
From the report
Evidence

Evidence: const data = await response.json(); const parsedData = data.parsed; if (parsedData.length === 0) {

Why it matters

an error response surfaces as a TypeError, and stale prices are returned as current.

Suggested fix, not tested

check response.ok, reject prices older than a stated bound, and expose the confidence value.

16. Low Token lookup returns vendor error bodies as token data
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#15)
From the report
Evidence

Evidence: const token = (await response.json()) as JupiterTokenData; and return token;

Why it matters

the action reports success with an error payload.

Suggested fix, not tested

check response.ok and confirm that the returned address matches the requested mint.

17. Low Game flow reports failure as success and does not confirm the bet
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#15)
From the report
Evidence

Evidence: } else { return "failed"; }

Why it matters

the action wraps "failed" as status: "success". The bet is not confirmed before the outcome call, and the prize claim is sent fire-and-forget.

Suggested fix, not tested

throw on failure, confirm each transaction, and build follow-up URLs with new URL(href, base) after checking the origin.

18. Low Perp trade sizing uses an oracle price that is never checked for staleness
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#16)
From the report
Evidence

Evidence: price: hermesPriceOracle, emaPrice: hermesEmaOracle, isStale: false,

Why it matters

a stale or wide-confidence price sizes a real leveraged position.

Suggested fix, not tested

compute staleness from publish_time, reject wide confidence intervals, and remove the unused extra fetch.

19. Low Many vendor calls parse the body without checking the HTTP status
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#15)
From the report
Evidence

Evidence: const res = await fetch(url); const data = await res.json(); return data;

Why it matters

rate-limit and auth errors reach the model as data, or as opaque TypeErrors. The same pattern is in the other CoinGecko tools, the OtterSec status tools, Messari, the Jupiter quote and swap calls, Lulo, deBridge status, and the domain lookup that returns null on any error.

Suggested fix, not tested

check the status and throw a descriptive error, preferably through one shared helper.

23. Low A missing listing price silently becomes 0
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#21)
From the report
Evidence

Evidence: price: input.price || 0, and sellerFee: input.sellerFeeBasisPoints || 0,

Why it matters

if the model omits the price, the asset can be listed for free.

Suggested fix, not tested

require the price for single items and reject the call when it is missing.

24. Low Token decimals of 0 are replaced by 6
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#21)
From the report
Evidence

Evidence: tokenParams.decimals = tokenParams.decimals || 6;

Why it matters

an explicit 0 decimals, which the schema allows, launches a token with the wrong decimals. Supply has the same problem, and the code also mutates the caller's object.

Suggested fix, not tested

use ?? and work on a copy.

25. Low Bridge quote drops explicit zero values
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#21)
From the report
Evidence

Evidence: ...(params.affiliateFeePercent && { affiliateFeePercent: ...

Why it matters

a value of 0 for slippage, a fee or a reward is silently omitted.

Suggested fix, not tested

use !== undefined checks.

26. Low Error messages name the wrong operation or lose the cause
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#19)
From the report
Evidence

Evidence: throw new Error(\Transfer failed: ${error}\);

Why it matters

approve, reject and execute all say "Transfer failed". Elsewhere:

  • an insurance-fund stake says "Failed to get APYs";
  • a Lulo withdrawal says "Lending failed";
  • Magic Eden passes e.message as a second Error argument, so it is lost;
  • Orca prints JSON.stringify(error), which shows {}.
Suggested fix, not tested

use operation-specific messages that include error.message.

27. Low Staking relies on an undocumented web-app endpoint
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#22)
From the report
Evidence

Evidence: https://worker.jup.ag/blinks/swap/So1111.../jupSoLaHX.../${amount}

Why it matters

the endpoint can change without notice, and the response status is not checked.

Suggested fix, not tested

use a supported API, check the response, and gate the feature behind configuration.

28. Low Copy-address uses a clipboard API removed from React Native core
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#112)
From the report
Evidence

Evidence: import { ... Clipboard, ... } from 'react-native'; and Clipboard.setString(walletAddress);

Why it matters

tapping to copy throws at runtime.

Suggested fix, not tested

use the expo-clipboard package, which is already a dependency, with error feedback.

29. Low Chat timers and model calls are not cancelled when the screen goes away
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const operationTimer = setTimeout(() => { ... const secondTimer = setTimeout(() => { and return () => clearTimeout(secondTimer);

Why it matters

the cleanups returned from the timer callbacks do nothing. Timers and the in-flight model or tool run outlive the screen.

Suggested fix, not tested

keep the timer ids in a ref, clear them in finally and on unmount, and pass an abort signal to the model call.

30. Low Typing-indicator animation restarts itself after being stopped
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#111)
From the report
Evidence

Evidence: ]).start(() => { animateDots();

Why it matters

stopping the animation triggers the callback, which starts it again, so it keeps running after the indicator unmounts.

Suggested fix, not tested

restart only when finished is true, or use Animated.loop.

31. Low Chat history reload discards search and selection and reloads twice
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: setChats(fetchedChats); setFilteredChats(fetchedChats); and }, [loadChats, loading, refreshing])

Why it matters

the user loses the active search and selection, and every load triggers a second load.

Suggested fix, not tested

derive the filtered list from the chats plus the search text, keep the selection, and key the focus effect on loadChats only.

32. Low White launch screen before a dark-only UI
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#27)
From the report
Evidence

Evidence: <color name="splashscreen_background">#FFFFFF</color> and in styles.xml: <item name="android:statusBarColor">#ffffff</item>

Why it matters

every cold start flashes white before the dark interface appears.

Suggested fix, not tested

match the launch and window colours to the dark theme, or follow night mode.

33. Low Chat list kept as two parallel arrays
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: setChats(prev => prev.filter(...)); setFilteredChats(prev => prev.filter(...));

Why it matters

every mutation must touch both arrays, and the reload path already lets them diverge.

Suggested fix, not tested

keep one source list and compute the filtered view from it.

34. Low Resumed chat animates through the whole history
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: flatListRef.current?.scrollToEnd({ animated: true });

Why it matters

opening an existing chat scrolls slowly through all of it.

Suggested fix, not tested

jump without animation on the first load, and animate only for newly appended messages.

35. Low Error toast covers the message input
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: position: 'absolute', bottom: 20, left: 20, right: 20, zIndex: 1000,

Why it matters

typing is blocked for 5 seconds.

Suggested fix, not tested

anchor the toast above the input row or at the top of the screen.

36. Low Small tap targets and one-tap logout
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: <TouchableOpacity onPress={() => handleSearch('')}> <Ionicons name="close-circle" size={20}

Why it matters

several controls are well under 48 dp. A single tap on an unlabelled icon logs the user out without confirmation.

Suggested fix, not tested

add padding or hitSlop, a logout confirmation, and accessibility labels.

37. Low Android theme uses literal colours and has no night variant
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#28)
From the report
Evidence

Evidence: <item name="android:statusBarColor">#ffffff</item> and <item name="android:textColor">@android:color/black</item>

Why it matters

nothing adapts to dark mode, and values-night is empty.

Suggested fix, not tested

reference theme attributes and supply night overrides.

38. Low Theme tokens exist but screens use literal colours
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#28)
From the report
Evidence

Evidence: colors={isUser ? ['#32D4DE', '#2AABB3'] : ['#2A2A2A', '#303030']}

Why it matters

the theme provider is never consumed, so colours drift between screens.

Suggested fix, not tested

use the theme tokens everywhere and delete the unused parallel palettes.

39. Low Layout uses a frozen window size and a fixed tab-bar height
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const { width } = Dimensions.get('window'); and const tabBarHeight = Platform.OS === 'ios' ? 90 : 70;

Why it matters

split screen, foldables and the system navigation inset are not handled.

Suggested fix, not tested

use useWindowDimensions and the safe-area insets.

41. Low React Native tooling versions are misaligned
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: "react-native": "0.76.9", with "@react-native/babel-preset": "0.77.0",

Why it matters

mismatched toolchain packages cause hard-to-trace build problems.

Suggested fix, not tested

pin the @react-native/* packages to the React Native version.

45. Low Confirmation uses a 1 Hz poll instead of a subscription
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#37)
From the report
Evidence

Evidence: while (Date.now() - startTime < timeoutMs) { ... setTimeout(resolve, remainingTime)

Why it matters

the loop adds load and latency where a native confirmation mechanism exists.

Suggested fix, not tested

use confirmTransaction with the blockhash and height, and keep re-broadcast as a bounded fallback.

47. Low Plugin registration is not atomic
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#38)
From the report
Evidence

Evidence: plugin.initialize(this as SolanaAgentKit); ... throw new Error(\Method ${methodName} already exists in methods\);

Why it matters

a name collision part-way through leaves a half-registered plugin that can never be added again.

Suggested fix, not tested

validate all names first, then register methods, actions and the plugin together.

52. Low Collectible action drops the agent wallet and network choice
First rating: Medium · Reviewed rating: Low · Review: could not be settled · also in the first audit (#132)
From the report
Evidence

Evidence: handler: async (_agent, input) => { ... const result = await createCollection({}, collectionOpts);

Why it matters

the SDK runs with empty store options, under whatever identity it falls back to, and the network flag is not passed for collections.

Suggested fix, not tested

build the options from the agent and isMainnet, or reject the action.

53. Low Vault update cannot set any value to 0
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: managementFee: params.managementFee ? new BN(params.managementFee)... : null,

Why it matters

setting a fee, profit share, hurdle rate, redeem period or minimum deposit to 0 is silently skipped, and the call reports success.

Suggested fix, not tested

test !== undefined for each field.

56. Low Plugin initialize hooks do nothing
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#51)
From the report
Evidence

Evidence: if (typeof method === "function") { this.methods[methodName] = method; }

Why it matters

every plugin's initializer assigns each method to itself, and its comment wrongly claims agent binding happens there.

Suggested fix, not tested

remove the loop, or implement the intended binding.

57. Low Dead code that implies behaviour that does not exist
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: export async function signAndSendTransactions(connection: Connection, transactions: VersionedTransaction[], signer: Keypair,

Why it matters

this unused sender skips preflight and confirmation. Other examples:

  • an unreachable account-creation branch in the compressed airdrop;
  • an unused blockhash fetch in the transfer tool;
  • a random keypair exported at import time in the Orca utilities.
Suggested fix, not tested

delete them.

58. Low Full token list downloaded for every ticker lookup
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const response = await fetch("https://lite-api.jup.ag/tokens/v2/tag?query=verified");

Why it matters

wasted bandwidth and latency on every lookup.

Suggested fix, not tested

use the server's search, or cache the list with a time limit.

62. Low Missing inference config falls back to a bundled API key and testnet
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#65)
From the report
Evidence

Evidence: agent.config?.ALLORA_API_KEY || "UP-d..." (an API key literal, also in get_all_topics.ts and get_inference_by_topic_id.ts)

Why it matters

every user shares one embedded key. An unconfigured deployment silently returns testnet predictions that look like real signals.

Suggested fix, not tested

remove and rotate the key, and require the key and network to be configured.

64. Low Missing order API key is sent empty and reported as "pending"
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: "X-API-KEY": apiKey || "", ... return { status: "pending", success: false, error: error.message };

Why it matters

a configuration or auth error looks like an order that is still pending.

Suggested fix, not tested

fail clearly when the key is missing, and do not map errors to "pending".

65. Low Perp router endpoints default to staging hosts
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: "https://staging-sor-api-...run.app",

Why it matters

without configuration, trade requests go to a staging service. A second staging default sits in getPositions.ts.

Suggested fix, not tested

default to production, or fail when the setting is missing.

67. Low Missing credentials are sent as "undefined" or empty strings
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#48)
From the report
Evidence

Evidence: "x-api-key": process.env.FLEXLEND_API_KEY!,

Why it matters

misconfiguration surfaces as an opaque remote auth error. The OKX tools default all four credentials to empty strings.

Suggested fix, not tested

validate the configuration once, with a clear error.

68. Low Missing IPFS gateway falls back to a placeholder host
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: pinataGateway: agent.config.PINATA_GATEWAY || "example-gateway.mypinata.cloud",

Why it matters

the placeholder masks a missing setting.

Suggested fix, not tested

require the setting, or omit the option.

69. Low Leverage default and unit disagree (2x requested, 0.2x sent)
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#101)
From the report
Evidence

Evidence: leverage: z.number().positive().default(2000).describe("Leverage in basis points (2000 = 2x)"), while the constants say 10000 = x1

Why it matters

the model asks for 2x and gets 0.2x. The success message uses a third scale.

Suggested fix, not tested

use one scale constant for the default, the description, the message and the examples, and add bounds.

71. Low Strategy withdrawal fetches accounts from the deposit endpoint
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#96)
From the report
Evidence

Evidence: https://voltr.xyz/api/remaining-accounts/deposit-strategy?vault=...

Why it matters

the withdrawal can be built with the wrong accounts, and the remote data is used without a status check.

Suggested fix, not tested

call the withdraw route, check the status, validate the accounts, and share one helper.

72. Low Core types, constants and adapter logic are duplicated
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#51)
From the report
Evidence

Evidence: export interface ActionExample {...} export type Handler = ... export interface Action {...}, also declared in types/index.ts

Why it matters

duplicated definitions drift. Token constants with a misspelled field, the adapter capping logic, two Zod object helpers and the referral-wallet logic are also copied.

Suggested fix, not tested

keep one definition of each and import it.

73. Low Vendor client setup is copy-pasted across tools
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: const chainSlug = agent.config?.ALLORA_NETWORK === "mainnet" ? ChainSlug.MAINNET : ChainSlug.TESTNET;

Why it matters

client construction is repeated per tool for Allora, Squads, Helius, CoinGecko, OKX, Ranger and Drift, and the copies already differ.

Suggested fix, not tested

write one factory per vendor.

74. Low Shared token-service client is published before authentication and keyed to the first API key
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#32)
From the report
Evidence

Evidence: if (!solutiofiClient) { solutiofiClient = new SolutioFi({ apiKey: agent.config?.SOLUTIOFI_API_KEY }); await solutiofiClient.authenticate(); }

Why it matters

concurrent callers can use an unauthenticated client. A failed authentication is cached forever, and other agents' keys are ignored.

Suggested fix, not tested

cache an authentication promise per API key, and clear it on failure.

76. Low Balance listing fans out one call per token with no cap
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const tokenBalances = await Promise.all(removedZeroBalance.map(async (v: any) => { ... await getTokenMetadata(

Why it matters

anyone can airdrop dust tokens to the wallet, which grows the call count and can hit rate limits. One token without metadata fails the whole listing.

Suggested fix, not tested

batch the metadata reads, cap and paginate, and tolerate per-token failures.

78. Low One plugin bundles about 17 unrelated vendor integrations
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#52)
From the report
Evidence

Evidence: const MiscPlugin = { name: "misc", methods: { getAllDomainsTLDs, ... verify_program }, actions: [ ... ] }

Why it matters

every consumer loads every SDK and every action, and one action is not registered at all. Separately, transaction-sending code lives in the core types module.

Suggested fix, not tested

export one sub-plugin per vendor, and move runtime code out of types/.

79. Low Oversized modules mix several concerns
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#50)
From the report
Evidence

Evidence: a 1,057-line module holding client bootstrap, accounts, trading, the insurance fund, swaps and market maths.

Why it matters

maintenance is hard and copy-paste drift is likely. The Elfa actions file has the same problem.

Suggested fix, not tested

split the file by concern.

81. Low A vendor referral code is applied to every bridge order by default
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: referralCode: params.referralCode?.toString() ?? "21064",

Why it matters

a hidden default attributes all volume to one referrer.

Suggested fix, not tested

make it explicit configuration, or omit it.

85. Low CI auto-fixes lint instead of failing and runs no tests
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#53)
From the report
Evidence

Evidence: - name: Run lint and fix / run: pnpm run lint:fix

Why it matters

lint violations are rewritten in place and the job stays green. No tests run.

Suggested fix, not tested

run lint (check only) and add a test job.

86. Low No working test suite: test scripts point at an uninstalled runner and the integration run asserts nothing
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#54)
From the report
Evidence

Evidence: .then(() => console.log("All tests completed successfully!"))

Why it matters

every package declares "test": "jest", but jest is not installed and there is no config or test file. The integration runner prints success without assertions. Many of the broken actions above would have been caught.

Suggested fix, not tested

add a runner with per-action smoke tests, including validating each example input against its schema.

87. Low Dead tests written against the removed v1 API
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#54)
From the report
Evidence

Evidence: const agent = new SolanaAgentKit(process.env.SOLANA_PRIVATE_KEY!, ...); console.log(..., agent.wallet_address.toString());

Why it matters

these tests cannot compile and give a false sense of coverage.

Suggested fix, not tested

port them or delete them.

89. Low Action cap is off by one in every adapter
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#83)
From the report
Evidence

Evidence: if (actions.length > 128) { console.warn(...) } and for (const action of actions.slice(0, 127)) {

Why it matters

one more action is dropped than the warning says, and in every copy of the adapter.

Suggested fix, not tested

put the limit in one shared constant and fix all the copies together.

90. Low Error-typing problems are silenced instead of fixed
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: // @ts-expect-error - Redaxios error type mismatch / error.message

Why it matters

suppressions hide real typing defects across the plugins.

Suggested fix, not tested

add one shared errorMessage(e: unknown) helper.

92. Low Plugins import core through a build-output path alias
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: import { SolanaAgentKit } from "@packages/core/dist";

Why it matters

the published type declarations reference a path consumers cannot resolve. plugin-nft/src/utils.ts does the same.

Suggested fix, not tested

import from solana-agent-kit.

93. Low Unwired perp-router module imports its constants back from its own index
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: import { RANGER_SOR_API_BASE } from "../index";

Why it matters

the import is circular, and these actions also send directly without the shared helper.

Suggested fix, not tested

move the constants into a constants file and route sends through the shared helper.

94. Low No shared HTTP helper across vendor modules
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence

Evidence: export async function fetchAlchemyJson<T>(url: string, init: RequestInit): Promise<T> { exists, but the other vendors use bare fetch(.

Why it matters

status checks, timeouts and key handling drift between modules.

Suggested fix, not tested

promote one helper and use it everywhere.

95. Low Framework adapters repeat the same description and capping logic
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#51)
From the report
Evidence

Evidence: const description = \ ${action.description} Similes: ${action.similes.map(`

Why it matters

the copies already differ in separators, truncation and error handling.

Suggested fix, not tested

use one shared builder.

96. Low The full plugin set is never composed and tested together
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: .use(TokenPlugin) / // .use(NFTPlugin) / .use(DefiPlugin)

Why it matters

no run checks unique names across all plugins. All the actions together exceed the adapter cap, so some are silently dropped.

Suggested fix, not tested

add a test that registers every plugin and asserts unique names and the action count.

97. Low Live mainnet trade script discards its results
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#88)
From the report
Evidence

Evidence: } catch (_e) { failed++; return null; }

Why it matters

the script opens a real position, prints no errors or signatures, and can leave the position open if the close step fails.

Suggested fix, not tested

print and persist every result and signature, and always attempt the close in finally.

104. Low Example server lets any caller overwrite any user's messages
First rating: High · Reviewed rating: Low · Review: rated too high · also in the first audit (#44)
From the report
Evidence

Evidence: const existingMessage = await Message.findOne({ id }); / existingMessage.parts = processedParts;

Why it matters

messages are found by id alone and overwritten without an ownership check, and the id can be an operator object.

Suggested fix, not tested

query by id and the verified chat, and require the id to be a string.

Review: is not chat-scoped, id` is unique; needs a known id; the chat-ownership check is at line 98)

115. Low Priority-fee estimate crashes when no fee samples exist
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#76)
From the report
Evidence

Evidence: fees.sort(...)[Math.floor(fees.length * feeTiers[feeTier])].prioritizationFee

Why it matters

on localnet or a quiet cluster every instruction-path send throws.

Suggested fix, not tested

handle the empty case and clamp the index.

118. Low Vendor priority-fee estimate is applied without a ceiling
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#78)
From the report
Evidence

Evidence: const feeEstimate: number = data.result.priorityFeeEstimate; ... setComputeUnitPrice({ microLamports: feeEstimate })

Why it matters

an extreme estimate, or the model choosing the "UnsafeMax" level, spends unbounded fees.

Suggested fix, not tested

clamp the fee to a configured maximum.

119. Low Treasury transfer ignores the requested vault index
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#133)
From the report
Evidence

Evidence: vaultIndex: 0,

Why it matters

the derived vault and the vault used in the transaction disagree.

Suggested fix, not tested

pass the parameter through.

127. Low Checkout prefixes every product as an Amazon item
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: productLocator: amazon:${productLocator} while the action describes Amazon or Shopify products, by ID or URL.

Why it matters

Shopify URLs are submitted as Amazon locators with real funds attached.

Suggested fix, not tested

support a typed locator, or narrow the description.

130. Low Order generator produces fractional ids and invalid orders
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#104)
From the report
Evidence

Evidence: clientOrderId: Number(Math.random() * 1000),

Why it matters

ids are fractional and collide quickly. A single-order pattern divides by zero and produces NaN prices.

Suggested fix, not tested

use integer ids from a counter or a wide random range, and validate prices and quantities.

Review: /(numOrders-1), which is NaN-prone when numOrders` is 1; collisions of random floats are unlikely)

136. Low Perp trades use a price supplied by the model as the slippage reference
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: price: z.number().positive().describe("Current price of the asset"),

Why it matters

the slippage bounds offer no protection, and closes pass the raw price with no band at all.

Suggested fix, not tested

read the price from the oracle and apply slippage in the correct direction.

140. Low Vault withdrawal uses fixed 6-decimal precision for every asset
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#99)
From the report
Evidence

Evidence: numberToSafeBN(amount, QUOTE_PRECISION), WithdrawUnit.TOKEN,

Why it matters

assets with 9 decimals are off by a factor of 1000.

Suggested fix, not tested

use the vault asset's decimals.

141. Low Vault depositor setup swallows errors, sleeps, and races the ownership check
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#41)
From the report
Evidence

Evidence: } catch (e) { if (e.message.includes("Account does not exist")) { ... } await new Promise((resolve) => setTimeout(resolve, 2000));

Why it matters

RPC errors are masked, an unverified address is returned, and managers get a depositor account they do not need (line 376).

Suggested fix, not tested

rethrow unexpected errors, await confirmation, and check ownership first.

143. Low Liquid-staking swap takes an unbounded fee and a model-supplied quote
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: quotedAmount: z.string(), / priorityFee: z.number(),

Why it matters

neither cost nor slippage is controlled.

Suggested fix, not tested

bound the fee, and fetch the quote inside the tool.

144. Low Rebuilt swap transaction drops lookup-table accounts
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#17)
From the report
Evidence

Evidence: pubkey: messages.staticAccountKeys[i],

Why it matters

transactions that use lookup tables break.

Suggested fix, not tested

decompile with the resolved lookup tables.

145. Low DEX swap uses a model-supplied wallet address
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: userWalletAddress, passed from model input.

Why it matters

the swap can be built for a wallet other than the signer.

Suggested fix, not tested

use the agent wallet's address.

146. Low Bridge affiliate fee and recipient are model-controlled
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#103)
From the report
Evidence

Evidence: ...(params.affiliateFeeRecipient && { affiliateFeeRecipient: params.affiliateFeeRecipient, }),

Why it matters

injected text can redirect fees.

Suggested fix, not tested

take integrator parameters from configuration only.

147. Low Network chosen by substring of the RPC URL
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#106)
From the report
Evidence

Evidence: if (agent.connection.rpcEndpoint.includes("mainnet")) {

Why it matters

most custom RPC URLs are rejected or misclassified.

Suggested fix, not tested

take the cluster from configuration or from the genesis hash.

151. Low Liquidity removal assumes 6 decimals for LP tokens
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const lpAmountBN = new BN(lpAmount * 1e6);

Why it matters

the wrong amount is removed.

Suggested fix, not tested

read the decimals from the LP mint.

153. Low Perp trades require NFT referral accounts even with the default privilege
First rating: Medium · Reviewed rating: Low · Review: could not be settled · new in this audit
From the report
Evidence

Evidence: if (!tradingAccounts.nftTradingAccountPk || !tradingAccounts.nftReferralAccountPK) { throw new Error(...)

Why it matters

the default configuration cannot trade.

Suggested fix, not tested

make these accounts optional for the default privilege.

154. Low Perp-router and most pool actions are never registered, and the router handlers cannot run
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#14)
From the report
Evidence

Evidence: only one Orca action is imported, and no Ranger action. The Ranger handlers take ({ apiKey }: IncreasePositionContext) as a third argument.

Why it matters

features that are documented and shipped are unreachable, and would throw if wired up. The module also imports an undeclared dependency and takes the fee payer from model input.

Suggested fix, not tested

register them or remove them, read the key from configuration, and use the agent wallet as fee payer.

155. Low Position status check only looks at the first 250 positions
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const positions = await lavaApi(/positions?owner=${wallet}&limit=250);

Why it matters

older positions are reported as not found.

Suggested fix, not tested

query by address, or paginate.

157. Low MCP and LangChain adapters report failed actions as successes
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#39)
From the report
Evidence

Evidence: const result = await action.handler(solanaAgentKit, params); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }

Why it matters

an error status is never flagged as an error, and validation is skipped. The LangChain adapter also bypasses the shared executor.

Suggested fix, not tested

route both adapters through the executor and set the error flag.

159. Low Vercel AI tools are keyed by array index
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#82)
From the report
Evidence

Evidence: tools[index.toString()] = tool({

Why it matters

tool names become "0", "1" and so on, which hurts tool selection, and descriptions are truncated.

Suggested fix, not tested

key the tools by action name.

160. Low Wallet helper uses require() in an ESM build
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#90)
From the report
Evidence

Evidence: const { exportWallet } = require("@open-wallet-standard/core") as {

Why it matters

the helper fails for ESM consumers, and the catch block hides the real cause.

Suggested fix, not tested

use an import or createRequire.

161. Low Hand-written metadata parser mis-decodes length prefixes
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: let nameLength = data[offset]; while (nameLength === 0) { offset++; ...

Why it matters

names and symbols are truncated or misaligned.

Suggested fix, not tested

use the maintained metadata decoder.

162. Low Bundle tip settings come from unauthenticated remote JSON
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: Math.min(jitoTipLamports || jitoConfig?.defaultTipLamports, jitoConfig?.maxTipLamports) ... jitoAccount: jitoConfig.jitoAccount,

Why it matters

there is no local cap, the recipient is unchecked, and a missing config crashes the swap.

Suggested fix, not tested

add a local cap and check the recipient against known tip accounts.

Review: uses the remote cap; jitoConfig.jitoAccount` at 99 throws if config is missing; vendor-trust property)

163. Low Token symbol resolved to the first match in a vendor list
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const token = tokens.find((t) => t.symbol.toLowerCase() === symbol.toLowerCase());

Why it matters

a look-alike token can be swapped.

Suggested fix, not tested

fail on multiple matches, or require the contract address.

164. Low Action schemas contradict their own examples
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#94)
From the report
Evidence

Evidence: recipient: z.string().min(32, "Invalid recipient address"), while the example omits the recipient.

Why it matters

documented calls fail validation. Other cases:

  • the cross-chain swap requires an unused inputAmount;
  • the collectible action requires traits;
  • the limit-order and Magic Eden examples use other field names.
Suggested fix, not tested

correct the schemas, and test every example against its schema.

165. Low Merge and spread schemas do not match the types they are cast to
First rating: Medium · Reviewed rating: Low · Review: could not be settled · new in this audit
From the report
Evidence

Evidence: inputAsset: z.object({ mint: z.string(), amount: z.string() }) ... inputAsset as InputAssetStruct,

Why it matters

the SDK receives undefined fields.

Suggested fix, not tested

align the schema with the target type, and validate percentages.

166. Low Ticker resolution picks the pair with the highest self-reported valuation
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#92)
From the report
Evidence

Evidence: .sort((a: any, b: any) => (b.fdv || 0) - (a.fdv || 0)); return solanaPairs[0].baseToken.address;

Why it matters

a spoofed pair can redirect later trades.

Suggested fix, not tested

require liquidity thresholds or a verified list, and confirm with the user.

167. Low No outbound HTTP call has a timeout
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const response = await fetch(https://mainnet.helius-rpc.com/?api-key=..., {

Why it matters

a stalled upstream service hangs the agent, across core, misc and DeFi.

Suggested fix, not tested

use one fetch helper with an abort timeout.

168. Low Checkout logs the whole HTTP client error, which can include the API key header
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#86)
From the report
Evidence

Evidence: console.error("Error creating Crossmint Amazon order:", error);

Why it matters

request headers can end up in logs, and the rethrown message is generic.

Suggested fix, not tested

log a redacted status and message, and pass the vendor's reason through.

169. Low Package manifests pin peers to wrong exact versions and use prerelease SDKs
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#89)
From the report
Evidence

Evidence: "solana-agent-kit": "2.0.7" in peerDependencies, while core is 2.0.10. Pre-release SDKs: "@drift-labs/sdk": "2.108.0-beta.6".

Why it matters

installs hit peer conflicts and a second copy of the core may be installed. Fund-moving code depends on beta and alpha SDKs.

Suggested fix, not tested

declare peer ranges and use stable dependencies.

170. Low MCP package "module" field points to a file the build does not produce
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: "module": "dist/index.mjs",

Why it matters

bundlers that read this field cannot resolve the package.

Suggested fix, not tested

point it at dist/index.js.

171. Low Release scripts depend on a missing changeset configuration
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: package.json:23
From the report
Evidence

Evidence: "version-packages": "changeset version",

Why it matters

the release scripts fail; there is no .changeset folder.

Suggested fix, not tested

initialize changesets, or document the manual release.

172. Low CI ignores the lockfile and uses mismatched tool versions
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#60)
From the report
Evidence

Evidence: run: pnpm install --no-frozen-lockfile, with version: 9.4.0 and node-version: "23"

Why it matters

builds are not reproducible and do not match the declared tool versions.

Suggested fix, not tested

use a frozen lockfile, the pnpm version from the manifest, and an LTS Node.

173. Low Pre-commit configuration runs a linter the project does not use
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: .lintstagedrc:3
From the report
Evidence

Evidence: "eslint . --ext .ts --fix"

Why it matters

the hook fails or lints the whole repository, and it is not shared because the hook folder is git-ignored.

Suggested fix, not tested

run the project's linter on staged files only.

174. Low Domain resolution depends on a runtime-specific error message
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: error.message.includes("Cannot read properties of undefined (reading 'owner')")

Why it matters

a different runtime or a dependency change turns "not found" into a hard failure.

Suggested fix, not tested

check the SDK's documented not-found result.

175. Low Example server exposes unauthenticated profile write and read
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#2)
From the report
Evidence

Evidence: router.post('/user', createOrUpdateUser);

Why it matters

anyone can change any user's name and picture.

Suggested fix, not tested

authenticate the routes and scope writes to the caller.

Review: ` has no middleware; demo profile data)

176. Low Example server accepts unauthenticated uploads with client-chosen type
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#118)
From the report
Evidence

Evidence: ${Date.now()}-${uuidv4()}${path.extname(file.originalname)} and if (allowedMimes.includes(file.mimetype)) {

Why it matters

an HTML file labelled as an image is served from the API origin, which allows stored script injection, and anyone can fill the disk.

Suggested fix, not tested

authenticate uploads, sniff file types on the server, serve uploads as attachments from another origin, and apply quotas.

177. Low Mobile example ships an RPC provider key in the client
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#113)
From the report
Evidence

Evidence: let url = ${HELIUS_API_ENDPOINT}/addresses/${walletAddress}/transactions?api-key=${HELIUS_API_KEY};

Why it matters

the key can be extracted and abused.

Suggested fix, not tested

proxy these calls through the backend, or use a restricted key.

179. Low Login errors are swallowed and loading is never shown
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: } catch (error) { console.error('Google login error:', error); }

Why it matters

the UI's error alert never fires, and users can start several logins at once.

Suggested fix, not tested

rethrow or return the result, and track a loading state.

180. Low Network failures are shown as empty lists
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: console.error('Error fetching chats:', error); return [];

Why it matters

an outage looks like "No chats yet".

Suggested fix, not tested

return an error result, and render an error state with a retry action.

181. Low Chat screen navigates to a route that does not exist
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: navigation.dispatch(CommonActions.navigate({ name: 'ChatHistory', params: { chatDeleted: true,

Why it matters

after deleting a chat, the user stays on the deleted chat.

Suggested fix, not tested

navigate to the registered tab route, or go back.

182. Low Assistant replies that mention a coin and a price are replaced by a price card
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const cryptoPattern = /(Bitcoin|Ethereum|Solana|ETH|BTC|SOL).*?(\$[\d,]+\.?\d*)/gi;

Why it matters

transaction results and error explanations are hidden behind the card.

Suggested fix, not tested

render the full text, and show cards in addition to it.

183. Low Release build is signed with the debug keystore
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#114)
From the report
Evidence

Evidence: signingConfig signingConfigs.debug

Why it matters

the release build cannot be distributed and anyone can re-sign it.

Suggested fix, not tested

use a release signing configuration fed from secrets.

184. Low Example app requests unused sensitive permissions and allows backup
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#136)
From the report
Evidence

Evidence: <uses-permission android:name="android.permission.RECORD_AUDIO"/> / android:allowBackup="true"

Why it matters

a wallet app with unused audio, overlay and storage permissions has a larger attack surface, and its data can be backed up.

Suggested fix, not tested

remove the unused permissions, and exclude secrets from backup.

185. Low Backend URL fallbacks disagree and point at localhost
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const SERVER_BASE_URL = SERVER_URL || 'http://localhost:3000';, while another file uses port 3001 and one has no fallback.

Why it matters

when the setting is missing, server features break silently on devices.

Suggested fix, not tested

use one config module that fails fast when the value is missing.

Info after review (6)

40. Info Overlay permission declared, obscured touches not filtered
First rating: Low · Reviewed rating: Info · Review: rated too high · also in the first audit (#136)
From the report
Evidence

Evidence: <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

Why it matters

taps that arrive while another app's overlay covers the screen are accepted on sensitive controls.

Suggested fix, not tested

remove the permission, and filter obscured touches on login, logout and signing controls.

59. Info Pool configuration rebuilt on every trade
First rating: Low · Reviewed rating: Info · Review: rated too high · also in the first audit (#40)
From the report
Evidence

Evidence: const poolConfig = PoolConfig.fromIdsByName(marketData.pool, "mainnet-beta",

Why it matters

repeated work for a value that is stable per session.

Suggested fix, not tested

look it up in the existing module-level map.

60. Info A new EVM provider is created per swap and never destroyed
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const signer = evmWallet.connect(getDefaultProvider(quote.fromToken.chainId));

Why it matters

provider pollers accumulate over time.

Suggested fix, not tested

reuse one provider per chain, or destroy it after use.

77. Info Parsers and generators take loop counts from input without a cap
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
From the report
Evidence

Evidence: const argsLength = buffer.readUInt32LE(offset); for (let i = 0; i < argsLength; i++) {

Why it matters

the work is driven by input-supplied counts. The order generator in manifest_trade.ts has the same pattern.

Suggested fix, not tested

validate and cap the input size and the counts.

88. Info Publishing has no pack or import smoke check
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: package.json:24
From the report
Evidence

Evidence: "publish-packages": "turbo run build && changeset publish"

Why it matters

broken entry points and type paths ship unnoticed.

Suggested fix, not tested

pack each package and import both the ESM and CJS entries before publishing.

91. Info Failures are logged at several layers
First rating: Low · Reviewed rating: Info · Review: rated too high · also in the first audit (#59)
From the report
Evidence

Evidence: console.error(error); throw new Error(\Error canceling limit orders: ${error}\);

Why it matters

one failure produces several unstructured log lines, so log counts are useless as a signal.

Suggested fix, not tested

log once at the boundary, and throw with { cause }.

Want this for your code?

Upload a ZIP or link a public GitHub repo, pick the areas and the depth, and get findings by severity with fixes.