nansen-cli 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/privy.js CHANGED
@@ -9,9 +9,10 @@
9
9
  import fs from "fs";
10
10
  import path from "path";
11
11
  import { parsePaymentRequirements } from "./x402.js";
12
+ import { hasSufficientEvmPaymentBalance, hasSufficientSvmPaymentBalance } from "./x402-payment-balance.js";
12
13
  import { isEvmNetwork } from "./x402-evm.js";
13
14
  import { mkdirPrivateSync, readWalletJson, writeWalletJsonAtomic } from "./wallet.js";
14
- import { evaluatePaymentRequirement, resolvePaymentAmount, resolvePayTo } from "./x402-policy.js";
15
+ import { evaluatePaymentRequirement, resolvePaymentAmount, resolvePayTo, signWithSessionCharge } from "./x402-policy.js";
15
16
  import {
16
17
  isSvmNetwork,
17
18
  getSolanaRpcUrl,
@@ -280,13 +281,15 @@ async function getPrivySolanaWallet(client) {
280
281
 
281
282
  /**
282
283
  * Generate payment signatures for x402 using Privy server wallets.
283
- * Same yield contract as createPaymentSignatures() in x402.js: { signature, network }
284
+ * Same yield contract as createPaymentSignatures() in x402.js:
285
+ * { signature, network, asset, payment, releaseCharge }
284
286
  *
285
287
  * @param {Response} response - The 402 HTTP response
286
288
  * @param {string} url - The original request URL
287
- * @returns {AsyncGenerator<{ signature: string, network: string }>}
289
+ * @param {object} [options] - { onCapRefusal }, called with the reason when the session cap refuses an option
290
+ * @returns {AsyncGenerator<{ signature: string, network: string, asset: string, payment: object, releaseCharge: Function }>}
288
291
  */
289
- export async function* createPrivyPaymentSignatures(response, url) {
292
+ export async function* createPrivyPaymentSignatures(response, url, options = {}) {
290
293
  const requirements = parsePaymentRequirements(response);
291
294
  if (!requirements || requirements.length === 0) return;
292
295
 
@@ -304,34 +307,40 @@ export async function* createPrivyPaymentSignatures(response, url) {
304
307
  continue;
305
308
  }
306
309
  try {
310
+ if (!await hasSufficientEvmPaymentBalance(requirement, evmWallet.address)) continue;
307
311
  const typedData = buildEIP712TypedData({
308
312
  fromAddress: evmWallet.address,
309
313
  requirement,
310
314
  });
311
315
 
312
- const signResult = await client.ethSignTypedDataV4(
313
- evmWallet.id,
314
- typedData
315
- );
316
- const signature = signResult.data?.signature || signResult.signature;
317
-
318
- const authorization = {
319
- from: evmWallet.address,
320
- to: resolvePayTo(requirement),
321
- value: resolvePaymentAmount(requirement).toString(),
322
- validAfter: typedData.message.validAfter.toString(),
323
- validBefore: typedData.message.validBefore.toString(),
324
- nonce: typedData.message.nonce,
325
- };
326
-
327
- const header = buildPaymentSignatureHeader({
328
- signature,
329
- authorization,
330
- resource: { url, description: "", mimeType: "" },
331
- accepted: requirement,
316
+ const signed = await signWithSessionCharge(decision, async () => {
317
+ const signResult = await client.ethSignTypedDataV4(evmWallet.id, typedData);
318
+ const signature = signResult.data?.signature || signResult.signature;
319
+ if (!signature) throw new Error('Privy returned no signature');
320
+
321
+ const authorization = {
322
+ from: evmWallet.address,
323
+ to: resolvePayTo(requirement),
324
+ value: resolvePaymentAmount(requirement).toString(),
325
+ validAfter: typedData.message.validAfter.toString(),
326
+ validBefore: typedData.message.validBefore.toString(),
327
+ nonce: typedData.message.nonce,
328
+ };
329
+
330
+ return buildPaymentSignatureHeader({
331
+ signature,
332
+ authorization,
333
+ resource: { url, description: "", mimeType: "" },
334
+ accepted: requirement,
335
+ });
332
336
  });
337
+ if (!signed.ok) {
338
+ console.error(`[x402] ${signed.reason}`);
339
+ options.onCapRefusal?.(signed.reason);
340
+ continue;
341
+ }
333
342
 
334
- yield { signature: header, network: requirement.network };
343
+ yield { signature: signed.value, network: requirement.network, asset: requirement.asset, payment: decision, releaseCharge: signed.release };
335
344
  } catch (err) {
336
345
  console.error(`[x402] Privy EVM signing failed for ${requirement.network}: ${err.message}`);
337
346
  continue;
@@ -354,6 +363,7 @@ export async function* createPrivyPaymentSignatures(response, url) {
354
363
  continue;
355
364
  }
356
365
  try {
366
+ if (!await hasSufficientSvmPaymentBalance(requirement, solWallet.address)) continue;
357
367
  const rpcUrl = getSolanaRpcUrl(requirement.network);
358
368
  const recentBlockhash = await fetchRecentBlockhash(rpcUrl);
359
369
 
@@ -363,20 +373,28 @@ export async function* createPrivyPaymentSignatures(response, url) {
363
373
  recentBlockhash,
364
374
  );
365
375
 
366
- const signResult = await client.signSolanaTransaction(solWallet.id, txBase64);
367
- const signedTx = signResult.data?.signed_transaction || signResult.signed_transaction;
368
-
369
- const payload = {
370
- x402Version: 2,
371
- payload: { transaction: signedTx },
372
- accepted: requirement,
373
- };
374
- if (url) {
375
- payload.resource = { url };
376
+ const signed = await signWithSessionCharge(svmDecision, async () => {
377
+ const signResult = await client.signSolanaTransaction(solWallet.id, txBase64);
378
+ const signedTx = signResult.data?.signed_transaction || signResult.signed_transaction;
379
+ if (!signedTx) throw new Error('Privy returned no signed transaction');
380
+
381
+ const payload = {
382
+ x402Version: 2,
383
+ payload: { transaction: signedTx },
384
+ accepted: requirement,
385
+ };
386
+ if (url) {
387
+ payload.resource = { url };
388
+ }
389
+ return Buffer.from(JSON.stringify(payload)).toString("base64");
390
+ });
391
+ if (!signed.ok) {
392
+ console.error(`[x402] ${signed.reason}`);
393
+ options.onCapRefusal?.(signed.reason);
394
+ continue;
376
395
  }
377
396
 
378
- const header = Buffer.from(JSON.stringify(payload)).toString("base64");
379
- yield { signature: header, network: requirement.network };
397
+ yield { signature: signed.value, network: requirement.network, asset: requirement.asset, payment: svmDecision, releaseCharge: signed.release };
380
398
  } catch (err) {
381
399
  console.error(`[x402] Privy Solana signing failed for ${requirement.network}: ${err.message}`);
382
400
  continue;
package/src/schema.json CHANGED
@@ -1,5 +1,121 @@
1
1
  {
2
2
  "commands": {
3
+ "feedback": {
4
+ "description": "Read the account feedback preference, submit product feedback, or recover an account-scoped receipt. Free; seven new reports per account per UTC week.",
5
+ "notes": "Use the configured API key or login session. Keep the same submission ID and unchanged report after an uncertain result. No caching or payment fallback. Remove credentials and unnecessary personal context from reports. Without --submission-id, save one private submission before sending. Resume with nansen feedback resume. Use --new for a deliberate new report after confirmation or local erasure. Pending data expires after one calendar year; feedback commands enforce cleanup. Automatic IDs require POSIX private storage and native locking; otherwise supply an explicit ID. Backend validates shared report fields. Agents: send on your own only after an authenticated read shows the account preference is enabled and host controls permit it. Otherwise show the report and ask first; a direct user request permits that report. Use nansen feedback preferences --json for a fresh account preference before each new automatic report. If the read fails, show the report and ask. Host or local-deny controls still apply. Direct lasting choices to Superapp settings. Never enable the preference automatically. Submit is noninteractive and does not verify approval. New submissions may be paused before release or during an outage. A 503 with reason feedback_admissions_paused means this attempt accepted no new report and used no weekly allowance. Tell the user feedback is unavailable and stop; do not keep retrying or ask for approval again in the same session. Preserve the ID and unchanged file for a later retry. A 403 with reason feedback_not_enabled means this account is outside rollout. Stop automatic retries; approval and saved preferences do not override it. Preserve IDs and earlier uncertain outcomes. Accepted-ID replays and receipt reads remain available during a pause.",
6
+ "subcommands": {
7
+ "submit": {
8
+ "description": "Submit a JSON report. Received means saved; human review may still be pending.",
9
+ "endpoint": "/api/v1/feedback",
10
+ "options": {
11
+ "file": {
12
+ "type": "string",
13
+ "required": true,
14
+ "description": "JSON report file, with category and description; optional fields follow the shared REST contract."
15
+ },
16
+ "submission-id": {
17
+ "type": "string",
18
+ "required": false,
19
+ "description": "New opaque ID: 1 to 128 ASCII letters, digits, underscores or hyphens. Reuse with unchanged file on retries."
20
+ },
21
+ "json": {
22
+ "type": "boolean",
23
+ "description": "Return the standard JSON receipt or error envelope."
24
+ },
25
+ "new": {
26
+ "type": "boolean",
27
+ "description": "Deliberately start a new generated submission after confirmation or local erasure. Never replaces pending data."
28
+ }
29
+ },
30
+ "returns": [
31
+ "feedback_id",
32
+ "submission_id",
33
+ "status",
34
+ "disposition",
35
+ "received_at",
36
+ "updated_at",
37
+ "expires_at",
38
+ "replayed",
39
+ "quota"
40
+ ],
41
+ "examples": [
42
+ "nansen feedback submit --file feedback.json --json",
43
+ "nansen feedback submit --file feedback.json --submission-id report-123 --json"
44
+ ]
45
+ },
46
+ "get": {
47
+ "description": "Read the current receipt. Reviewed means triaged; closed means review complete. Neither promises a fix date.",
48
+ "endpoint": "/api/v1/feedback/{feedback_id}",
49
+ "args": [
50
+ "feedback-id"
51
+ ],
52
+ "options": {
53
+ "json": {
54
+ "type": "boolean",
55
+ "description": "Return the standard JSON receipt or error envelope."
56
+ }
57
+ },
58
+ "returns": [
59
+ "feedback_id",
60
+ "submission_id",
61
+ "status",
62
+ "disposition",
63
+ "received_at",
64
+ "updated_at",
65
+ "expires_at"
66
+ ],
67
+ "examples": [
68
+ "nansen feedback get fb_123 --json"
69
+ ]
70
+ },
71
+ "resume": {
72
+ "description": "Retry the saved report and ID with the original account and API environment, or read its confirmed receipt. Does not need the original file.",
73
+ "options": {
74
+ "json": {
75
+ "type": "boolean",
76
+ "description": "Return structured output."
77
+ }
78
+ },
79
+ "examples": [
80
+ "nansen feedback resume --json"
81
+ ]
82
+ },
83
+ "forget": {
84
+ "description": "Erase local recovery data offline. Does not delete a server report or the original input file. Stops replay until a deliberate --new submission.",
85
+ "options": {
86
+ "json": {
87
+ "type": "boolean",
88
+ "description": "Return structured output."
89
+ }
90
+ },
91
+ "examples": [
92
+ "nansen feedback forget --json"
93
+ ]
94
+ },
95
+ "preferences": {
96
+ "method": "GET",
97
+ "endpoint": "/api/v1/feedback/preferences",
98
+ "description": "Read the authenticated account preference fresh, with no credits or report quota. Does not change it.",
99
+ "options": {
100
+ "json": {
101
+ "type": "boolean",
102
+ "description": "Return the standard JSON preference or error envelope."
103
+ }
104
+ },
105
+ "returns": [
106
+ "automatic_reporting",
107
+ "configured",
108
+ "version",
109
+ "updated_at",
110
+ "can_manage"
111
+ ],
112
+ "examples": [
113
+ "nansen feedback preferences",
114
+ "nansen feedback preferences --json"
115
+ ]
116
+ }
117
+ }
118
+ },
3
119
  "perp": {
4
120
  "description": "Hyperliquid perpetual trading commands",
5
121
  "subcommands": {
@@ -1676,7 +1792,7 @@
1676
1792
  }
1677
1793
  },
1678
1794
  "historical-dex-trades": {
1679
- "endpoint": "/api/v1beta1/tgm/historical-dex-trades",
1795
+ "endpoint": "/api/v1/tgm/historical-dex-trades",
1680
1796
  "description": "Historical DEX trades for a token at a point in time",
1681
1797
  "options": {
1682
1798
  "token-address": {
@@ -1698,7 +1814,7 @@
1698
1814
  }
1699
1815
  },
1700
1816
  "historical-pnl-leaderboard": {
1701
- "endpoint": "/api/v1beta1/tgm/historical-pnl-leaderboard",
1817
+ "endpoint": "/api/v1/tgm/historical-pnl-leaderboard",
1702
1818
  "description": "Historical PnL leaderboard for a token",
1703
1819
  "options": {
1704
1820
  "token-address": {
@@ -1720,7 +1836,7 @@
1720
1836
  }
1721
1837
  },
1722
1838
  "historical-token-flow-summary": {
1723
- "endpoint": "/api/v1beta1/tgm/historical-token-flow-summary",
1839
+ "endpoint": "/api/v1/tgm/historical-token-flow-summary",
1724
1840
  "description": "Historical token flow summary (no pagination)",
1725
1841
  "options": {
1726
1842
  "token-address": {
@@ -1742,7 +1858,7 @@
1742
1858
  }
1743
1859
  },
1744
1860
  "historical-token-quant-scores": {
1745
- "endpoint": "/api/v1beta1/tgm/historical-token-quant-scores",
1861
+ "endpoint": "/api/v1/tgm/historical-token-quant-scores",
1746
1862
  "description": "Historical token quantitative scores at a snapshot date",
1747
1863
  "options": {
1748
1864
  "token-address": {
@@ -1760,7 +1876,7 @@
1760
1876
  }
1761
1877
  },
1762
1878
  "historical-top-holders": {
1763
- "endpoint": "/api/v1beta1/tgm/historical-top-holders",
1879
+ "endpoint": "/api/v1/tgm/historical-top-holders",
1764
1880
  "description": "Historical top holders of a token at a snapshot date",
1765
1881
  "options": {
1766
1882
  "token-address": {
@@ -1778,7 +1894,7 @@
1778
1894
  }
1779
1895
  },
1780
1896
  "historical-who-bought-sold": {
1781
- "endpoint": "/api/v1beta1/tgm/historical-who-bought-sold",
1897
+ "endpoint": "/api/v1/tgm/historical-who-bought-sold",
1782
1898
  "description": "Historical buyers/sellers of a token",
1783
1899
  "options": {
1784
1900
  "token-address": {
@@ -1804,7 +1920,7 @@
1804
1920
  }
1805
1921
  },
1806
1922
  "historical-smart-money-balances": {
1807
- "endpoint": "/api/v1beta1/smart-money/historical-token-balances",
1923
+ "endpoint": "/api/v1/smart-money/historical-token-balances",
1808
1924
  "description": "Historical smart money token balances at a snapshot date (no order_by)",
1809
1925
  "options": {
1810
1926
  "as-of-date": {
@@ -1837,7 +1953,7 @@
1837
1953
  }
1838
1954
  },
1839
1955
  "historical-wallet-balances": {
1840
- "endpoint": "/api/v1beta1/profiler/address/historical-token-balances",
1956
+ "endpoint": "/api/v1/profiler/address/historical-token-balances",
1841
1957
  "description": "Historical token balances for a wallet at a snapshot date",
1842
1958
  "options": {
1843
1959
  "address": {
@@ -1855,7 +1971,7 @@
1855
1971
  }
1856
1972
  },
1857
1973
  "historical-tx-lookup": {
1858
- "endpoint": "/api/v1beta1/profiler/historical-transaction-lookup",
1974
+ "endpoint": "/api/v1/profiler/historical-transaction-lookup",
1859
1975
  "description": "Lookup a historical transaction by hash",
1860
1976
  "options": {
1861
1977
  "transaction-hash": {
@@ -1876,7 +1992,7 @@
1876
1992
  }
1877
1993
  },
1878
1994
  "historical-wallet-transactions": {
1879
- "endpoint": "/api/v1beta1/profiler/address/historical-transactions",
1995
+ "endpoint": "/api/v1/profiler/address/historical-transactions",
1880
1996
  "description": "Historical transactions for a wallet at a snapshot date",
1881
1997
  "options": {
1882
1998
  "address": {
@@ -2119,7 +2235,7 @@
2119
2235
  ]
2120
2236
  },
2121
2237
  "execute": {
2122
- "description": "Sign and broadcast a quoted trade. Explicitly blank --wallet values are rejected. Non-gasless swaps broadcast through the execution route that tracks the on-chain outcome server-side; NANSEN_TRADING_EXECUTION_ROUTE=legacy is an escape hatch back to the deprecated broadcast route, and any value other than standard or legacy is rejected rather than silently falling back. Gasless swaps and WalletConnect wallets never use the standard route.",
2238
+ "description": "Sign and broadcast a quoted trade. Explicitly blank --wallet values are rejected. Swaps broadcast through the execution route that tracks the on-chain outcome server-side; NANSEN_TRADING_EXECUTION_ROUTE=legacy is an escape hatch back to the deprecated broadcast route, and any value other than standard or legacy is rejected rather than silently falling back. A WalletConnect wallet that broadcasts the swap itself bypasses the standard route (no server-side tracking, and the CLI says so); one that only signs still goes through it. The removed --gasless flag is rejected with GASLESS_REMOVED.",
2123
2239
  "apiEndpoints": [
2124
2240
  "/api/v1/sanctions/screen"
2125
2241
  ],
@@ -2138,10 +2254,6 @@
2138
2254
  "type": "string",
2139
2255
  "description": "Wallet name, or \"walletconnect\"/\"wc\" for WalletConnect (EVM only)"
2140
2256
  },
2141
- "gasless": {
2142
- "type": "boolean",
2143
- "description": "Relay-only: have Relay's solver pay gas + broadcast (user signs only). Requires the selected quote's aggregator to be \"relay\". Not supported via WalletConnect."
2144
- },
2145
2257
  "quote-index": {
2146
2258
  "type": "string",
2147
2259
  "description": "Pin a specific quote by 0-based index when the cached quote returned several. Must be within range; there is no fallback to the other quotes."
@@ -2347,7 +2459,7 @@
2347
2459
  }
2348
2460
  },
2349
2461
  "wallet": {
2350
- "description": "Wallet management. x402 auto-payments are guarded by a client-side policy: per-payment USD cap via NANSEN_X402_MAX_AMOUNT (default 1.00; 'unlimited' to disable) and an optional recipient allowlist via NANSEN_X402_ALLOWED_PAYTO (comma-separated addresses).",
2462
+ "description": "Wallet management. x402 auto-payments are guarded by a client-side policy: per-payment USD cap via NANSEN_X402_MAX_AMOUNT (default 1.00; 'unlimited' to disable), an optional cumulative cap on what one CLI process signs via NANSEN_X402_SESSION_MAX_AMOUNT (environment only; unset or 'unlimited' = no limit, an invalid value refuses every payment; a payment the server cleanly rejects is not counted; it resets with every process), and an optional recipient allowlist via NANSEN_X402_ALLOWED_PAYTO (comma-separated addresses). Each auto-payment and its outcome are recorded in ~/.nansen/x402/payments.jsonl.",
2351
2463
  "subcommands": {
2352
2464
  "create": {
2353
2465
  "description": "Create a new wallet. Explicitly blank --name values are rejected for local and Privy wallets.",
package/src/telemetry.js CHANGED
@@ -232,12 +232,16 @@ function perpOutcomeEventId({ wallet_address, submission_id, leg_index, outcome
232
232
 
233
233
  /**
234
234
  * Convert a command string like "smart-money netflow" to a path like "/smart-money/netflow".
235
- * Agent ("agent …") always maps to "/agent" so prompts are not exploded into path segments.
235
+ * Free text and malformed feedback arguments must never become path segments.
236
236
  */
237
237
  function commandToPath(command) {
238
238
  if (typeof command === 'string' && /^agent(?:\s+|$)/.test(command.trimStart())) {
239
239
  return '/agent';
240
240
  }
241
+ if (typeof command === 'string' && /^feedback(?:\s+|$)/.test(command.trimStart())) {
242
+ const subcommand = command.trim().split(/\s+/)[1];
243
+ return ['submit', 'get'].includes(subcommand) ? `/feedback/${subcommand}` : '/feedback';
244
+ }
241
245
  return '/' + String(command).replace(/\s+/g, '/');
242
246
  }
243
247
 
@@ -202,15 +202,27 @@ const USDC_ADDRESSES = {
202
202
  // Native token symbols for error messages.
203
203
  const NATIVE_SYMBOLS = { solana: 'SOL', base: 'ETH' };
204
204
 
205
- const MIN_GAS_AMOUNTS = { solana: 0.01, base: 0.000024 };
205
+ // The floor a wallet must clear to be allowed to quote. Kept in step with
206
+ // FEE_BUFFER below: that is what the CLI itself holds back when selling the
207
+ // maximum amount of a native token, so a wallet sitting on exactly that reserve
208
+ // must not then be refused a quote. Solana's real cost is a 5000-lamport base
209
+ // fee plus at most ~0.00204 SOL of ATA rent, so 0.005 is still a wide margin.
210
+ //
211
+ // Deliberately NOT sized against MAX_PRIORITY_FEE_LAMPORTS (0.01 SOL). That is
212
+ // an anti-abuse ceiling we refuse to exceed, not a fee we expect to pay, and the
213
+ // worst spend it permits (~0.012044 SOL with base fee and rent) was never
214
+ // covered by this floor at any value it has held — 0.01 did not cover it either.
215
+ // Sizing a minimum-balance gate off that ceiling would block real wallets to
216
+ // defend against a fee level we only tolerate. This check is a best-effort
217
+ // "can you afford a normal trade" gate that also passes on RPC failure; the
218
+ // authority on "can you afford THIS trade" is the execute-time Solana
219
+ // simulation (verifySolanaSwapOutcome), which reads live balances and skips the
220
+ // quote rather than broadcasting an unpayable transaction.
221
+ const MIN_GAS_AMOUNTS = { solana: 0.005, base: 0.000024 };
206
222
  const FEE_BUFFER = { solana: 0.005, base: 0.00004 };
207
223
  const HIGH_PERCENTAGE_THRESHOLD = 95;
208
224
  const AUTO_ADJUST_THRESHOLD_PERCENT = 2;
209
225
 
210
- // Trades at or above this USD value can use gasless/solver-paid routes (e.g. Relay),
211
- // so the native gas pre-check is skipped for them.
212
- export const GASLESS_MIN_TRADE_USD = 10;
213
-
214
226
  /**
215
227
  * Check if an address is USDC or the native token for a chain (case-insensitive for EVM).
216
228
  */
@@ -382,18 +394,16 @@ export async function resolvePercentAmount({ chain, from, walletAddress, percent
382
394
  * Returns { hasSufficientNative } or throws on validation failure.
383
395
  * Best-effort: if RPC fails, returns passing result.
384
396
  *
385
- * Gasless bypass: trades >= $10 USD can use solver-paid options (e.g. Relay),
386
- * so the gas check is skipped in that case.
397
+ * Applies to every trade regardless of value. A $10 bypass used to live here for
398
+ * solver-paid routes, but it never looked at whether such a route was in play —
399
+ * it waved through any trade at or above the threshold on value alone, so a
400
+ * wallet with no native token passed validation and then failed at broadcast.
387
401
  */
388
- export async function validateGasBalance({ chain, walletAddress, tradeValueUsd }) {
402
+ export async function validateGasBalance({ chain, walletAddress }) {
389
403
  const normalizedChain = chain.toLowerCase();
390
404
  const minGas = MIN_GAS_AMOUNTS[normalizedChain];
391
405
  if (minGas === undefined) return { hasSufficientNative: true };
392
406
 
393
- // High-value trades can use gasless/solver-paid routes — skip the check.
394
- const tradeUsd = parseFloat(tradeValueUsd) || 0;
395
- if (tradeUsd >= GASLESS_MIN_TRADE_USD) return { hasSufficientNative: true };
396
-
397
407
  const balance = await fetchNativeBalance(normalizedChain, walletAddress);
398
408
 
399
409
  // RPC failure — proceed without validation.
@@ -405,7 +415,7 @@ export async function validateGasBalance({ chain, walletAddress, tradeValueUsd }
405
415
 
406
416
  const symbol = NATIVE_SYMBOLS[normalizedChain] || 'native token';
407
417
  throw new Error(
408
- `Insufficient ${symbol} for gas fees. Wallet has ${balance} ${symbol} but needs at least ${minGas} ${symbol}. Either fund the wallet with ${symbol} or trade a value of $${GASLESS_MIN_TRADE_USD}+ to use gasless options.`
418
+ `Insufficient ${symbol} for gas fees. Wallet has ${balance} ${symbol} but needs at least ${minGas} ${symbol}. Fund the wallet with ${symbol} before trading.`
409
419
  );
410
420
  }
411
421