Skip to content
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

expanded the description of the benefit of batching #86

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ sidebar_position: 3

# Better Execution Prices

Batch auctions are also designed to offer a better price over traditional CFMMs. Liquidity fragmentation poses a big problem for the DeFi space, forcing users to constantly check liquidity pools against each other to find the best prices. Batch auctions help solve liquidity fragmentation by matching orders peer-to-peer through Coincidence of Wants (CoWs), thus allowing them to share liquidity. If orders are not fully filled by CoWs, the protocol acts like a more traditional aggregator and finds on-chain liquidity to complete the order. In essence, batch auctions turn the entire protocol into a giant barter economy where users can either trade directly against each other or directly against the best onchain liquidity source.
Batch auctions are also designed to offer a better price over traditional CFMMs. Liquidity fragmentation poses a big problem for the DeFi space, forcing users to constantly check liquidity pools against each other to find the best prices. Batch auctions help solve liquidity fragmentation by matching orders peer-to-peer through Coincidence of Wants (CoWs), perhaps via complex ring trades, thus allowing these orders to share liquidity. If orders are not fully filled by CoWs, the protocol finds on-chain liquidity to complete the order. Also in this case, batching improves the execution by exploiting complementarities between the trades in the batch. For example, the most efficient way to exchange a given token for another may be to exchange the first token for USDC, then USDC for ETH, then ETH for the final token. Coincidence of wants may emerge in the intermediate step of this sequence of trades. Or two trades with the same buy and sell tokens can be executed together therefore saving on gas costs.

In essence, batch auctions turn the entire protocol into a giant barter economy where users can either trade directly against each other or most efficiently access the best onchain liquidity source.
Loading