Repository navigation
Feat/screener liquidity definition - #354
Miracle656 merged 1 commit into
Conversation
|
@decrypted-dev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
tsc --noEmit clean vitest 97 files, 1127 passing (up from 93 / 1068) dropped-tests none #325 GET /movers for market gainers and losers #327 GET /correlation for basket construction #485 net arbitrage spread against fees #494 declare the resources capability and expose pages over MCP Two fixes on merge. #325 shipped the route file and the OpenAPI entry but never registered it. The repo's own guard caught it: AssertionError: Documented but unregistered: ["GET /movers"] So the endpoint was documented, generated into clients, and did not exist. registerMoversRoutes already followed the house signature, so wiring it was an import and a call next to registerScreenerRoutes. That guard is worth its weight -- a documented route that 404s is worse than an undocumented one, because a client is generated against it. #327 added a console.error to src/routes/correlation.ts, which the logging hygiene test forbids. Now createLogger, the same change #388 and #318 needed in the previous batch. Three PRs in two batches have tripped that test, which suggests the rule is not discoverable enough from the outside -- worth a line in CONTRIBUTING rather than catching it per-PR. NOT merged, each failing on its own branch rather than from merge order: #460 Phoenix AMM adapter -- 5 failures alone, including its own networkVenueConfig and venues/registry tests #353 1 tsc error #354 1 tsc error #482 4 tsc errors #393 #431 #434 #472 conflict Claude-Session: https://claude.ai/code/session_01USgemLt4Rnz4SGB1Srf3GB
Miracle656
left a comment
There was a problem hiding this comment.
Screened against current main and this does not pass on its own branch, so a rebase alone will not fix it.
Merged alone it gives type errors against main. Run npx tsc --noEmit on a fresh rebase and you will see them.
Please rebase, get npx tsc --noEmit and npx vitest run both clean locally, and re-request. I would rather take this than not — it is held on correctness, not on wanting it.
ab6c9da to
41e6181
Compare
done boss |
review and merge boss |
|
Merged to This is a better change than its title suggests. Putting The formula comment is correct, which I checked because this is exactly the kind of note that gets written down wrong. One thing I did on merge: regenerated Lens: 115 files, 1,423 tests passing, typecheck clean. |
Closes #283
Summary
Defines
liquidityin the OpenAPI spec and route documentation, validates that the underlying query calculation matches the definition, and names the unit in the response.Details & Specification
liquidityrepresents total AMM reserves denominated in the quote/counter asset (asset_b), computed across all active liquidity pools (source = 'AMM') as:evaluated at each pool's latest snapshot spot price.
asset_b), exposed explicitly asliquidity_uniton each row (e.g.,USDCforXLM/USDC).networkin the top-level/screenerresponse and documents?network=inopenapi.yamlandopenapi.json.(ps.reserve_a * ps.spot_price + ps.reserve_b)already faithfully evaluates total liquidity in units ofasset_b.Verification
npm test src/__tests__/screener.test.ts: Passes all 18 tests, including tests verifying the SQL formula structure andliquidity_unitnaming.npm test tests/openapi.test.ts: Passes and verifies OpenAPI parity.npm test: Full test suite passes (631 passed).