-
Notifications
You must be signed in to change notification settings - Fork 8
docs: add root page for CLOB in /defi/order-book/ #105
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Brendan Graetz <[email protected]>
WalkthroughUpdates GitBook navigation by moving Token Standards under Wallet, removing it from Trading, and adding a new DeFi Order Book entry. Introduces a new documentation page explaining Injective’s on-chain CLOB architecture, design focus areas, and mechanisms like Frequent Batch Auctions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
✨ Finishing touches🧪 Generate unit tests
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
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.gitbook/SUMMARY.md (1)
1-376: Missing local documentation targets in SUMMARY.mdThe automated link check found two entries in .gitbook/SUMMARY.md that don’t correspond to existing files:
• developers-native/injective/evm/README.md
• developers/dapps/example-bridge.mdPlease either create these files at the specified paths or update SUMMARY.md to point to the correct locations, so that navigation links aren’t broken.
🧹 Nitpick comments (9)
.gitbook/defi/order-book/README.md (9)
1-2: Title OK; consider defining acronym in first paragraph instead of only in H1.Readers scanning body copy may miss the acronym if it only appears in the title.
Apply this minimal tweak to first mention:
- The cryptocurrency industry is experiencing a renewed fascination with Central Limit Order Books (CLOBs). + The cryptocurrency industry is experiencing a renewed fascination with Central Limit Order Books (CLOBs).
3-4: Soften marketing tone for neutrality.Trim hype words to match docs style.
- ... has emerged as one of the most discussed topics of 2024 and 2025. New projects are launching with significant fanfare, promising to bring "institutional-grade" trading experiences ... + ... has received increased attention in 2024–2025. New projects are launching that aim to bring “institutional-grade” trading experiences ...
5-7: Verify historical claims and adjust phrasing.“Operating ... since its inception” and “launched with comprehensive orderbook functionality supporting ... binary options” are strong claims; confirm dates/features at mainnet launch vs later releases.
- Injective has been operating a decentralized, fully on-chain CLOB infrastructure since its inception. Founded in 2018 and incubated by Binance Labs that same year, Injective launched with comprehensive orderbook functionality supporting spot trading, perpetual futures, expiry futures, and binary options markets. For seven years, Injective has been quietly solving the technical challenges that the broader crypto community has only recently begun to grapple with. + Injective has designed and operated a decentralized, on-chain CLOB since launch. Founded in 2018 and incubated by Binance Labs that same year, Injective’s exchange module has supported multiple market types (e.g., spot and derivatives). Over the past seven years (2018–2025), the project has addressed many of the technical challenges discussed in today’s CLOB discourse.
8-9: Consistency: “orderbook” → “order book”.Use the same spelling the nav uses (“Order Book”). Also tighten language slightly.
- ... on-chain orderbook infrastructure ... + ... on-chain order book infrastructure ...Repeat the same replacement for subsequent occurrences in this file.
10-11: Neutralize and cite third-party architecture statements.When referencing Hyperliquid internals (HyperCore/HyperEVM), either add citations or qualify as “reported”. Avoid implying value judgments.
- However, it employs a dual architecture, splitting state execution between HyperCore and HyperEVM, introducing development complexity and performance implications for applications hoping to leverage the CLOB. + However, public materials describe a dual architecture (HyperCore and HyperEVM) that splits state execution. This may introduce additional development considerations for applications integrating with the CLOB.
12-13: Link to canonical module docs; clarify “native module” wording.Help readers jump to specs; and keep “order book” spelling consistent.
- Injective's approach is fundamentally different: implementing orderbook functionality as a native blockchain module rather than an application layer. This enables permissionless plug-and-play access for any application built on Injective, eliminating cross-layer complexity while executing sophisticated financial operations without gas optimization constraints or architectural compromises. + Injective's approach: implement order book functionality as a native blockchain module (Exchange module) rather than purely at the application layer. This enables permissionless, plug‑and‑play access for any app built on Injective, reducing cross‑layer complexity and avoiding gas‑optimization constraints typical of VM environments. See also: Developers → Injective → Exchange.
14-14: “This paper” → “This page”; soften “original” claim or add sources.Docs style and claim strength.
- This paper provides a comprehensive examination ... we can better appreciate both its significance as the original on-chain CLOB implementation and its strategic positioning ... + This page provides a concise examination ... we can better appreciate both its significance as one of the earliest L1‑native, production on‑chain CLOB implementations and its strategic positioning ...
3-14: Global terminology consistency and minor grammar.
- Use “order book” (two words) throughout.
- Keep “on‑chain”, “Layer‑2” hyphenation consistent.
- LanguageTool flagged “orderbook” usage; adjust as above.
No diff included here beyond earlier line-specific edits; please apply consistently across the page.
15-15: Stray trailing “15” line.Looks accidental; remove to avoid rendering artifacts.
-15 +
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
.gitbook/SUMMARY.md(1 hunks).gitbook/defi/order-book/README.md(1 hunks)
🧰 Additional context used
🪛 LanguageTool
.gitbook/defi/order-book/README.md
[grammar] ~14-~14: There might be a mistake here.
Context: ... decentralized orderbook infrastructure.
(QB_NEW_EN)
🔇 Additional comments (1)
.gitbook/SUMMARY.md (1)
12-12: Order Book entry addition looks good; verify target path exists.Path matches new file. Consider placing it near Trading if you want discoverability, but current DeFi placement is fine.
Run link checks below.
| * [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) |
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
Indentation places “Token Standards” as a sibling of “Wallet”, not under it.
If the intent is under Wallet (per PR summary), increase indentation by two spaces on 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)📝 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.
| * [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) |
🤖 Prompt for AI Agents
In .gitbook/SUMMARY.md around lines 8 to 11 the "Token Standards" section is
currently a sibling of "Wallet" due to incorrect indentation; to make it a child
of "Wallet" (per the PR summary) increase the indentation of lines 8–11 by two
spaces (prepend two spaces to each of the four lines) so the markdown outline
nests "Token Standards" and its children under the "Wallet" entry.
bc3a9ed to
57a622a
Compare
Summary by CodeRabbit