2:I[75001,[],""] 3:I[9596,[],""] 4:I[83453,["575","static/chunks/575-5a246ccadcf411fa.js","418","static/chunks/418-f3b6d2f154485d8f.js","998","static/chunks/app/docs/layout-c4230139aed5d08b.js"],"default",1] 5:I[5520,["575","static/chunks/575-5a246ccadcf411fa.js","913","static/chunks/913-95a4bf8751887fd7.js","319","static/chunks/319-a605e396582267ab.js","114","static/chunks/114-54f34015d309a9f8.js","654","static/chunks/654-8e46d05deaba89c2.js","395","static/chunks/395-2e55d845c3f0b2f3.js","185","static/chunks/app/layout-0fe9fc7be6bfdac9.js"],"Providers"] 0:["oSNFCr-VaZMgs1L9AoMiI",[[["",{"children":["docs",{"children":["troubleshooting",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["troubleshooting",{"children":["__PAGE__",{},[["$L1",[["$","h1",null,{"className":"mb-3 font-display text-3xl font-bold tracking-tight text-cream","children":"Error Codes & Troubleshooting"}],["$","p",null,{"className":"mb-8 text-base leading-relaxed text-muted","children":"A guide to understanding smart contract reverts, API failure states, and common developer issues when building on Longbow."}],["$","h2",null,{"className":"mb-3 mt-10 font-display text-xl font-semibold text-cream","children":"Solidity Revert Errors"}],["$","p",null,{"className":"mb-4 text-sm leading-relaxed text-muted","children":["The ",["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"LongbowExecutor"}]," contract enforces security assertions before conducting any on-chain swap. Here are the error strings and custom error reverts you might encounter:"]}],["$","div",null,{"className":"mb-5 overflow-x-auto rounded-xl border border-white/10","children":["$","table",null,{"className":"w-full min-w-[560px] text-sm","children":[["$","thead",null,{"children":["$","tr",null,{"className":"border-b border-white/10 bg-white/[0.03] text-left text-xs uppercase tracking-wider text-muted","children":[["$","th","Revert Error",{"className":"px-4 py-2.5 font-medium","children":"Revert Error"}],["$","th","Meaning",{"className":"px-4 py-2.5 font-medium","children":"Meaning"}],["$","th","Solution",{"className":"px-4 py-2.5 font-medium","children":"Solution"}]]}]}],["$","tbody",null,{"children":[["$","tr","0",{"className":"border-b border-white/5 last:border-0","children":[["$","td","0",{"className":"tnum px-4 py-2.5 align-top text-muted","children":["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"StalePrice()"}]}],["$","td","1",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"The Chainlink price feed has not been updated within maxPriceAge (default 1h)."}],["$","td","2",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"Wait for the stock exchange to open or for the oracle provider to update the feed."}]]}],["$","tr","1",{"className":"border-b border-white/5 last:border-0","children":[["$","td","0",{"className":"tnum px-4 py-2.5 align-top text-muted","children":["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"OraclePaused()"}]}],["$","td","1",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"The stock token's issuer has paused pricing (e.g. during a split, halt, or corporate merger)."}],["$","td","2",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"Execution is suspended until corporate actions complete and oracle resumes."}]]}],["$","tr","2",{"className":"border-b border-white/5 last:border-0","children":[["$","td","0",{"className":"tnum px-4 py-2.5 align-top text-muted","children":["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"SequencerDown()"}]}],["$","td","1",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"The Robinhood Chain L2 sequencer oracle reports that the L2 sequencer is currently offline."}],["$","td","2",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"Wait for the chain sequencer to recover."}]]}],["$","tr","3",{"className":"border-b border-white/5 last:border-0","children":[["$","td","0",{"className":"tnum px-4 py-2.5 align-top text-muted","children":["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"SequencerGraceActive()"}]}],["$","td","1",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"The L2 sequencer just restarted. A 1-hour safety grace period is active to prevent frontrunning."}],["$","td","2",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"Wait for the 1-hour grace period to elapse."}]]}],["$","tr","4",{"className":"border-b border-white/5 last:border-0","children":[["$","td","0",{"className":"tnum px-4 py-2.5 align-top text-muted","children":["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"SlippageExceeded()"}]}],["$","td","1",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"The swap output was lower than the user's minAmountOut slippage threshold."}],["$","td","2",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"Recalculate minAmountOut with a wider slippage tolerance or check pool reserves."}]]}],["$","tr","5",{"className":"border-b border-white/5 last:border-0","children":[["$","td","0",{"className":"tnum px-4 py-2.5 align-top text-muted","children":["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"Expired()"}]}],["$","td","1",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"The order's expiry timestamp has already passed."}],["$","td","2",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"The order is dead. Create a new order with a longer expiry time."}]]}],["$","tr","6",{"className":"border-b border-white/5 last:border-0","children":[["$","td","0",{"className":"tnum px-4 py-2.5 align-top text-muted","children":["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"OutOfRuns()"}]}],["$","td","1",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"DCA order remainingRuns is already 0."}],["$","td","2",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"The order is completed. Cancel it or create a new DCA schedule."}]]}],["$","tr","7",{"className":"border-b border-white/5 last:border-0","children":[["$","td","0",{"className":"tnum px-4 py-2.5 align-top text-muted","children":["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"InvalidPath()"}]}],["$","td","1",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"The swap path does not start with tokenIn and end with tokenOut."}],["$","td","2",{"className":"tnum px-4 py-2.5 align-top text-muted","children":"Ensure path is [tokenIn, USDG] or [USDG, tokenOut] depending on the trade direction."}]]}]]}]]}]}],["$","h2",null,{"className":"mb-3 mt-10 font-display text-xl font-semibold text-cream","children":"Client-Side & Wallet Issues"}],["$","ul",null,{"className":"mb-4 list-disc space-y-1.5 pl-5 text-sm leading-relaxed text-muted marker:text-neon","children":[["$","li",null,{"children":[["$","strong",null,{"className":"text-cream","children":"\"Insufficient Allowance\" Revert"}]," — The user approved the token, but the approved amount is lower than the order's ",["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"amountIn"}],". Note that for DCA orders, the user must approve the total value: ",["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"amountIn × runs"}],", or approve dynamic allowance."]}],["$","li",null,{"children":[["$","strong",null,{"className":"text-cream","children":"USDG 18-Decimal Bug"}]," — The USDG stablecoin uses **6 decimals**, unlike stock tokens which use **18 decimals**. Make sure you call ",["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"parseUnits(\"100\", 6)"}]," for USDG, not ",["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"parseEther(\"100\")"}],"."]}],["$","li",null,{"children":[["$","strong",null,{"className":"text-cream","children":"Mock Mode Stuck"}]," — If your app shows simulated data but you want real testnet/mainnet data, check if ",["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"NEXT_PUBLIC_USE_MOCKS=true"}]," is set in your env. Set it to ",["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"false"}]," and restart the Next.js server to fetch from the RPC."]}]]}],["$","h2",null,{"className":"mb-3 mt-10 font-display text-xl font-semibold text-cream","children":"HTTP API Error States"}],["$","p",null,{"className":"mb-4 text-sm leading-relaxed text-muted","children":"API routes under `/api/*` use standard HTTP status codes:"}],["$","ul",null,{"className":"mb-4 list-disc space-y-1.5 pl-5 text-sm leading-relaxed text-muted marker:text-neon","children":[["$","li",null,{"children":[["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"400 Bad Request"}]," — Missing query parameters (e.g. `GET /api/quote` without `?symbol=TSLA`)."]}],["$","li",null,{"children":[["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"429 Too Many Requests"}]," — You have hit Finnhub's free API rate limit (60 requests/minute). Configure a paid or standard key in your `.env` under ",["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"FINNHUB_API_KEY"}]," to increase caps."]}],["$","li",null,{"children":[["$","code",null,{"className":"rounded bg-white/10 px-1.5 py-0.5 text-[13px] text-cream","children":"500 Internal Server Error"}]," — Database connection loss or RPC timeout. Check logs."]}]]}]],null],null],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","troubleshooting","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[null,["$","$L4",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}],"params":{}}]],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f55723d0ee21179d.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__variable_f367f3 __variable_dd5b2f","children":["$","body",null,{"className":"font-sans","children":["$","$L5",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]}]],null],null],["$L6",null]]]] 6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Longbow Docs — Troubleshooting & Error Codes"}],["$","meta","3",{"name":"description","content":"Wall Street closes, the chain doesn't. Longbow tracks the gap between on-chain stock prices and real quotes on Robinhood Chain — non-custodial limit orders & DCA, keeper-executed through Uniswap V2. Nock. Draw. Loose."}],["$","meta","4",{"property":"og:title","content":"Longbow — Wall Street closes. The chain doesn't."}],["$","meta","5",{"property":"og:description","content":"The gap terminal for tokenized stocks: on-chain price vs real quote, live — with non-custodial limit & DCA orders keepers execute through Uniswap V2."}],["$","meta","6",{"property":"og:image","content":"https://longbowtrade.xyz/brand/og.png"}],["$","meta","7",{"property":"og:image:width","content":"1200"}],["$","meta","8",{"property":"og:image:height","content":"630"}],["$","meta","9",{"property":"og:image:alt","content":"Longbow"}],["$","meta","10",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","11",{"name":"twitter:site","content":"@longbowtrade"}],["$","meta","12",{"name":"twitter:title","content":"Longbow — Wall Street closes. The chain doesn't."}],["$","meta","13",{"name":"twitter:description","content":"The gap terminal for tokenized stocks: on-chain price vs real quote, live — with non-custodial limit & DCA orders keepers execute through Uniswap V2."}],["$","meta","14",{"name":"twitter:image","content":"https://longbowtrade.xyz/brand/og.png"}],["$","link","15",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","16",{"rel":"icon","href":"/brand/favicon.svg","type":"image/svg+xml"}],["$","link","17",{"rel":"icon","href":"/brand/favicon-32.png","sizes":"32x32","type":"image/png"}],["$","link","18",{"rel":"icon","href":"/brand/icon-192.png","sizes":"192x192","type":"image/png"}],["$","link","19",{"rel":"apple-touch-icon","href":"/brand/apple-touch-icon.png"}]] 1:null