-
Notifications
You must be signed in to change notification settings - Fork 17
Update and rename batch-auctions.md to fair-combinatorial-auction.md #504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
changed from batched auction to fair combinatorial auction
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe documentation for the CoW Protocol was updated by removing the outdated "Batch Auctions" introduction and adding a new document explaining the "Fair Combinatorial Auction" mechanism. The new documentation describes how the protocol now aggregates intents and settles them using a fair combinatorial auction process. Changes
Possibly related issues
Poem
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 2
🧹 Nitpick comments (2)
docs/cow-protocol/concepts/introduction/fair-combinatorial-auction.md (2)
7-8
: Reduce repetition in the first paragraph.The phrase “each solver can submit multiple bids” appears twice. Consider merging or rephrasing to improve readability.
13-14
: Correct verb agreement.Change “The fair combinatorial auction provide several benefits:” to “The fair combinatorial auction provides several benefits:”.
🧰 Tools
🪛 LanguageTool
[grammar] ~13-~13: The verb form ‘provide’ does not appear to fit in this context.
Context: ...h-auctions.png) The fair combinatorial auction provide several benefits: - [*MEV Protection...(SINGULAR_NOUN_VERB_AGREEMENT)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
docs/cow-protocol/concepts/introduction/batch-auctions.md
(0 hunks)docs/cow-protocol/concepts/introduction/fair-combinatorial-auction.md
(1 hunks)
💤 Files with no reviewable changes (1)
- docs/cow-protocol/concepts/introduction/batch-auctions.md
🧰 Additional context used
🪛 LanguageTool
docs/cow-protocol/concepts/introduction/fair-combinatorial-auction.md
[grammar] ~13-~13: The verb form ‘provide’ does not appear to fit in this context.
Context: ...h-auctions.png) The fair combinatorial auction provide several benefits: - [*MEV Protection...
(SINGULAR_NOUN_VERB_AGREEMENT)
🔇 Additional comments (3)
docs/cow-protocol/concepts/introduction/fair-combinatorial-auction.md (3)
1-3
: Verify frontmatter completeness and consistency.The frontmatter only includes
sidebar_position
. Please confirm that this aligns with the repository’s frontmatter conventions (e.g., whether atitle
orsidebar_label
field is required for navigation).
5-5
: Ensure header and frontmatter title match.The top-level heading (
# Fair Combinatorial Auction
) should correspond exactly to anytitle
defined in the frontmatter (if added). This consistency helps prevent navigation or indexing mismatches.
11-11
: Validate image path and alt text.The image reference still uses
batch-auctions.png
. Confirm that the asset exists under this path or whether it should be renamed to reflect the new “fair-combinatorial-auction” context. Also consider updating the alt text from “The Auctions” to something more descriptive (e.g., “Fair Combinatorial Auction Mechanism”).
The protocol filters our ``unfair'' batched bids, which are those delivering less to an order than some available "non-batched" bids. It then selects the combination of winning bids that maximizes the surplus received by the orders that are part of the auction (subject to some computational constraints due to the combinatorial nature of the problem). | ||
|
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.
Fix typo in text (“filters our” → “filters out”).
The sentence currently reads “The protocol filters our unfair
batched bids…”. It should be:
The protocol filters out `unfair` batched bids…
🤖 Prompt for AI Agents
In docs/cow-protocol/concepts/introduction/fair-combinatorial-auction.md around
lines 9 to 10, fix the typo by changing "filters our" to "filters out" so the
sentence correctly reads "The protocol filters out `unfair` batched bids…".
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.
yep, this needs correcting.
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.
@pretf00d Thanks for confirming! I'll plan the fix for this typo.
Task: Fix typo in fair-combinatorial-auction.md
- Change "filters our" to "filters out" on line 9
⏳ Preparing changes...
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.
A summary of the edits CodeRabbit can apply:
Fix typo in fair-combinatorial-auction.md by changing "filters our" to "filters out" on line 9.
A plan of each step that CodeRabbit will take in order to execute the edits for each file (with inline rough draft snippets):
✏️ docs/cow-protocol/concepts/introduction/fair-combinatorial-auction.md
Locate line 9 in the file which currently reads: "The protocol filters our ``unfair'' batched bids, which are those delivering less to an order than some available "non-batched" bids. It then selects the combination of winning bids that maximizes the surplus received by the orders that are part of the auction (subject to some computational constraints due to the combinatorial nature of the problem)."
Replace the word "our" with "out" in the phrase "filters our" so it becomes "filters out". The corrected line should read: "The protocol filters out ``unfair'' batched bids, which are those delivering less to an order than some available "non-batched" bids. It then selects the combination of winning bids that maximizes the surplus received by the orders that are part of the auction (subject to some computational constraints due to the combinatorial nature of the problem)."
Verify that only the single word "our" has been changed to "out" and that all other text, punctuation, and formatting remains exactly the same.
- ✅ Create PR with these edits
- 📌 Create commit in current branch
- 📋 Get copyable edits
- [**MEV Protection**](../benefits/mev-protection): Batch auctions allow for Uniform Clearing Prices (UCPs), where an asset that appears multiple times across orders in the same batch settles for a consistent price. | ||
This makes transaction order irrelevant within the block, undermining the ability for MEV bots to extract value. | ||
- **[Coincidence of Wants](../how-it-works/coincidence-of-wants)**: When multiple orders trade the same assets within a batch, there may be an opportunity for a peer-to-peer swap that doesn't tap on-chain liquidity, which a solver could exploit by submitting a batched bid. | ||
- **Fairness**: Ensuring that each order receives as much as it would have received had that order been auctioned off alone. |
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
Align bullet content with “Fair Combinatorial Auction”.
The benefits still reference “Batch auctions” and “within a batch,” which conflicts with the new mechanism name. Please update the text to refer to “combinatorial auctions” (or “fair combinatorial auction”) consistently. For example:
- - [**MEV Protection**](../benefits/mev-protection): Batch auctions allow for Uniform Clearing Prices …
+ - [**MEV Protection**](../benefits/mev-protection): Combinatorial auctions allow for Uniform Clearing Prices …
- - **[Coincidence of Wants](../how-it-works/coincidence-of-wants)**: When multiple orders trade the same assets within a batch, …
+ - **[Coincidence of Wants](../how-it-works/coincidence-of-wants)**: When multiple orders trade the same assets in the combinatorial auction, …
- - **Fairness**: Ensuring that each order receives as much as it would have received had that order been auctioned off alone.
+ - **Fairness**: Ensuring that each order receives at least what it would have secured if auctioned individually.
📝 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.
- [**MEV Protection**](../benefits/mev-protection): Batch auctions allow for Uniform Clearing Prices (UCPs), where an asset that appears multiple times across orders in the same batch settles for a consistent price. | |
This makes transaction order irrelevant within the block, undermining the ability for MEV bots to extract value. | |
- **[Coincidence of Wants](../how-it-works/coincidence-of-wants)**: When multiple orders trade the same assets within a batch, there may be an opportunity for a peer-to-peer swap that doesn't tap on-chain liquidity, which a solver could exploit by submitting a batched bid. | |
- **Fairness**: Ensuring that each order receives as much as it would have received had that order been auctioned off alone. | |
- [**MEV Protection**](../benefits/mev-protection): Combinatorial auctions allow for Uniform Clearing Prices (UCPs), where an asset that appears multiple times across orders in the same batch settles for a consistent price. | |
This makes transaction order irrelevant within the block, undermining the ability for MEV bots to extract value. | |
- **[Coincidence of Wants](../how-it-works/coincidence-of-wants)**: When multiple orders trade the same assets in the combinatorial auction, there may be an opportunity for a peer-to-peer swap that doesn't tap on-chain liquidity, which a solver could exploit by submitting a batched bid. | |
- **Fairness**: Ensuring that each order receives at least what it would have secured if auctioned individually. |
🤖 Prompt for AI Agents
In docs/cow-protocol/concepts/introduction/fair-combinatorial-auction.md around
lines 15 to 18, the bullet points incorrectly refer to "Batch auctions" and
"within a batch," which conflicts with the new mechanism name "Fair
Combinatorial Auction." Update all mentions of "Batch auctions" and related
phrases to "Combinatorial auctions" or "Fair Combinatorial Auction" to maintain
consistent terminology throughout the section.
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.
one typo needs correcting.
changed from batched auction to fair combinatorial auction
Summary by CodeRabbit