-
Notifications
You must be signed in to change notification settings - Fork 8
docs: CLOB challenges #108
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Brendan Graetz <[email protected]>
Signed-off-by: Brendan Graetz <[email protected]>
WalkthroughRelocates the “Token Standards” section in the GitBook TOC from Trading to DeFi Wallet. Adds a new Order Book documentation section with two pages: an overview (CLOB concepts and Injective’s architecture) and a challenges page outlining key debates and issues for on-chain CLOBs. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (11)
.gitbook/SUMMARY.md (1)
9-9: Nit: title case consistency (“INJ coin” → “INJ Coin”)Minor copy/style tweak to match common title casing used elsewhere.
Optional diff:
- * [INJ coin](defi/tokens/inj-coin.md) + * [INJ Coin](defi/tokens/inj-coin.md).gitbook/defi/order-book/challenges.md (5)
41-41: Fix heading level consistency (use H2, not H1).Section depth jumps back to H1. Make it
## Implementation Complexity & Technical Debtto keep a single H1 per page.-# Implementation Complexity & Technical Debt +## Implementation Complexity & Technical Debt
9-9: Replace italic “Addressed in:” lines with headings or callouts (MD036).Italicized emphasis is being used as a heading; markdownlint flags this. Prefer a subheading or a callout with links.
-*Addressed in: Performance Metrics & Comparisons* +### Addressed in +- [Performance Metrics & Comparisons](./performance-metrics.md) -*Addressed in: Gas Economics & Cost Efficiency* +### Addressed in +- [Gas Economics & Cost Efficiency](./gas-economics.md) -*Addressed in: Frequent Batch Auctions: MEV Resistance Through Native Design* +### Addressed in +- [Frequent Batch Auctions: MEV Resistance Through Native Design](./frequent-batch-auctions.md) -*Addressed in: Shared Liquidity Infrastructure* +### Addressed in +- [Shared Liquidity Infrastructure](./shared-liquidity.md) -*Addressed in: Economic Alignment & Network Value Accrual* +### Addressed in +- [Economic Alignment & Network Value Accrual](./economic-alignment.md) -*Addressed in: Frequent Batch Auctions: MEV Resistance Through Native Design* +### Addressed in +- [Frequent Batch Auctions: MEV Resistance Through Native Design](./frequent-batch-auctions.md) -*Addressed in: Developer Experience & Composability* +### Addressed in +- [Developer Experience & Composability](./devex-and-composability.md)If those targets don’t exist yet, keep the structure and add TODOs or convert to intra‑page anchors.
Also applies to: 15-15, 21-21, 27-27, 33-33, 39-39, 45-45
7-8: Qualify latency claims or add citations.“sub‑10 ms” vs “100+ ms” is assertive; either cite representative sources or soften to ranges (“on the order of tens of ms vs ~100 ms+”).
Would you like me to add footnote-style references or convert to hedged language?
17-21: Add explicit cross-link to the FBA section.Since you reference Frequent Batch Auctions as a mitigation, link to the section/file that explains it.
- Proposed solutions include encrypted mempools, trusted execution environments, and various batching mechanisms, but these often require significant infrastructure modifications or introduce new trust assumptions. + Proposed solutions include encrypted mempools, trusted execution environments, and various batching mechanisms (see [Frequent Batch Auctions](./frequent-batch-auctions.md)), but these often require significant infrastructure modifications or introduce new trust assumptions.
1-46: Standardize "order book" (two words) across the repo. Mixed usage found in .gitbook (examples: .gitbook/defi/auction.md, .gitbook/defi/open-liquidity-program/introduction.md, .gitbook/defi/order-book/README.md, .gitbook/developers-native/injective/exchange/03_state.md). Replace all occurrences of "orderbook" with "order book" for consistency..gitbook/defi/order-book/README.md (5)
14-14: Use “page” instead of “paper.”Minor tone/style tweak for docs.
-This paper provides a comprehensive examination of Injective's on-chain CLOB infrastructure, +This page provides a comprehensive examination of Injective's on-chain CLOB infrastructure,
8-9: Soften blanket claims about VM-based CLOB constraints.Rephrase to avoid overgeneralization and keep a neutral tone.
-Most CLOB-based projects emerging on the scene face fundamental constraints, as they are built within virtual machine (VM) environments. These solutions, whether on Ethereum, Solana, Aptos, Sui, or other execution environments, suffer from gas economics, computational overhead, and architectural boundaries. +Many CLOB implementations built within virtual machine (VM) environments encounter constraints such as gas costs, computational overhead, and architectural boundaries, though the specifics vary by chain and design.
7-7: Time-bounded claim check (“seven years”).As of September 2025, 2018 → 2025 is seven years; keep this synced if the page is reused later (consider “since 2018”).
-For seven years, Injective has been quietly solving the technical challenges +Since 2018, Injective has been solving the technical challenges
1-15: Cross-link to the new Challenges page.Improve navigation by linking the companion page.
+## See also +- [The Current CLOB Discourse: Key Challenges & Debates](./challenges.md)
1-15: Standardize “order book” vs “orderbook” across the repo. Mixed usage detected across multiple .gitbook files; pick one style (recommend "order book") and apply a repo-wide replace.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.gitbook/SUMMARY.md(1 hunks).gitbook/defi/order-book/README.md(1 hunks).gitbook/defi/order-book/challenges.md(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
.gitbook/defi/order-book/challenges.md
9-9: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
15-15: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
21-21: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
27-27: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
33-33: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
39-39: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
45-45: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
🔇 Additional comments (3)
.gitbook/SUMMARY.md (1)
8-11: Indent "Token Standards" under Wallet in .gitbook/SUMMARY.mdReferenced token pages exist; indent the Token Standards block one level so it becomes a child of Wallet.
File: .gitbook/SUMMARY.md — fix lines 8–11:
- * [Token Standards](defi/tokens/README.md) - * [INJ coin](defi/tokens/inj-coin.md) - * [Token Factory](defi/tokens/token-factory.md) - * [CW20 Standard](defi/tokens/cw20-standard.md) + * [Token Standards](defi/tokens/README.md) + * [INJ coin](defi/tokens/inj-coin.md) + * [Token Factory](defi/tokens/token-factory.md) + * [CW20 Standard](defi/tokens/cw20-standard.md).gitbook/defi/order-book/README.md (2)
10-11: Add official Hyperliquid sources for the "HyperCore/HyperEVM dual architecture" claim.
File: .gitbook/defi/order-book/README.md Lines: 10-11 — cite Hyperliquid's official pages: "About Hyperliquid", "HyperEVM (For Developers)", and "Architecture / Overview".
3-3: Back up or trim “most discussed topics of 2024–2025”
Add 2–3 reputable 2024–2025 citations (industry reports or analyses) to support this claim, or rephrase it more cautiously.
Location: .gitbook/defi/order-book/README.md line 3
| * [INJ coin](defi/tokens/inj-coin.md) | ||
| * [Token Factory](defi/tokens/token-factory.md) | ||
| * [CW20 Standard](defi/tokens/cw20-standard.md) | ||
| * [Order Book](defi/order-book/README.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
🧩 Analysis chain
Add child page(s) for Order Book (Challenges page missing from TOC)
AI summary mentions an Order Book “challenges” page, but TOC only lists the parent README. Add the child entry if that page exists.
Suggested change:
- * [Order Book](defi/order-book/README.md)
+ * [Order Book](defi/order-book/README.md)
+ * [Challenges](defi/order-book/challenges.md)Verification script:
🏁 Script executed:
#!/bin/bash
set -euo pipefail
for p in \
".gitbook/defi/order-book/README.md" \
".gitbook/defi/order-book/challenges.md"
do
[[ -f "$p" ]] && echo "OK - $p" || echo "MISS- $p"
doneLength of output: 85
Add missing "Challenges" TOC entry for Order Book
SUMMARY links the parent README but not the existing challenges page (.gitbook/defi/order-book/challenges.md); add the child entry in .gitbook/SUMMARY.md.
- * [Order Book](defi/order-book/README.md)
+ * [Order Book](defi/order-book/README.md)
+ * [Challenges](defi/order-book/challenges.md)📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| * [Order Book](defi/order-book/README.md) | |
| * [Order Book](defi/order-book/README.md) | |
| * [Challenges](defi/order-book/challenges.md) |
🤖 Prompt for AI Agents
.gitbook/SUMMARY.md around line 12: the TOC currently links the Order Book
README but omits the existing challenges page; add a child entry for the
challenges file under the Order Book parent by inserting a new line like " *
[Challenges](defi/order-book/challenges.md)" directly beneath the Order Book
entry so the challenges.md appears in the sidebar hierarchy.
Summary by CodeRabbit