blurbeast
blurbeast
## Overview & Background `POST /graphql` runs any posted query with `createContext(prisma)` and **no auth, depth, or complexity guard**. `streams(first: ...)` accepts an unbounded `first`; the `batchEventsByStreamIds` dataloader has no...
## Overview & Background One settings component has **three separate, non-identical test suites** (verified different via checksums): `settings-content.test.tsx`, `__tests__/settings-content.test.tsx`, and `src/__tests__/settings-content.test.tsx`. They drift independently (different mocks, e.g. `shortenPublicKey` stubs differ)...
## Overview & Background `StreamCard.tsx` ships a full interactive component (withdraw/top-up/pause/cancel against `useOptimisticStream`) but is reachable only from tests — no page or production component renders it. Its "Top up"...
## Overview & Background Every contract call in the frontend is built through `any`-typed SDK handles: `soroban.ts:233-240` (`args: any[]`, `const sdk: any = await import("@stellar/stellar-sdk")`, `const rpc: any = ...`),...
## Overview & Background `settings-content.tsx:30` falls back to a hardcoded display fragment: `process.env.NEXT_PUBLIC_STREAMING_CONTRACT || "CDV4K...7ZQY"` — rendered at line 498 as the user's "contract address". That string is not a...
## Overview & Background The position metadata API pretends to support per-role storage, but only one slot exists per stream. `try_load_position_metadata(env, stream_id, _role)` **ignores the `role` parameter** and keys only...
## Overview & Background `mint_stream_position` never calls `require_auth` — anyone can mint position metadata for any `stream_id` without the sender/recipient consenting, contradicting its own doc ("Position metadata is generated upon...
## Overview & Background `withdraw_and_swap` first pays the recipient the full claimable principal via `apply_withdrawal`, then invokes `router_client.swap_exact_tokens_for_tokens(&claimable, ...)` sourcing `amount_in` from **this contract** — with no `approve` ever issued...
## Overview & Background In `create_hybrid_cliff_stream`, the linear tail rate is computed as `let linear_amount = net_amount - total_fee;` — but `net_amount` is **already** the post-fee deposit (`collect_fee` defines `net_amount...
[Backend] Standardize X-Request-ID header propagation across Express middlewares and error responses
## Overview Distributed debugging requires tracing a request from client to server logs. Currently, incoming `X-Request-ID` headers are partially attached in some routes but omitted in error handlers. ## Problem...