Skip to content

Commit 6e7d509

Browse files
committed
Fixing images
1 parent 37aa78c commit 6e7d509

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

docs/contracts/uniswapx/02-v1-vs-v2.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,33 @@ sidebar_position: 2
55
---
66
# **UniswapX V2 Overview**
77

8-
UniswapX V2 improves price execution and minimizes quoter gaming by redesigning the flow of order quote information. The primary goal is to ensure RFQ quoters provide hard quotes to the user by requesting quotes after the user has signed their swap intent, enabling faster and more reliable executions.
8+
UniswapX V2 improves price execution and minimizes quoter gaming by redesigning the flow of order quote information. The primary goal is to make trading on UniswapX more efficient and more reliable.
99

1010
## **V1 Overview**
1111

12-
In V1, the RFQ flow operates entirely pre-signature. Users request a swap quote, which is parameterized using an RFQ quote. If they accept the quote, they sign the order. This approach is straightforward but allows quoters in the network to be uncertain about when a quote request will convert into a signed order. This uncertainty grants swappers a first-look advantage, potentially enabling predatory quoter behavior.
12+
In V1, the RFQ flow operates entirely pre-signature. Users request a swap quote, which is parameterized using an RFQ quote. If they accept the quote, they sign the order. This approach is straightforward but causes quoters in the network to be uncertain about when a quote request will convert into a signed order. This uncertainty leads to occasional unfilled orders and degraded performance.
1313

1414
<p align="center">
15-
<img width="599" alt="image" src="https://github.com/user-attachments/assets/8f35c682-bc0f-4eb8-a7a3-eb91810bf63e" />
15+
<img width="599" alt="image" src={require('./images/v1-flow.png').default} />
16+
1617
</p>
1718

1819
## **V2 Overview**
1920

20-
V2 rearchitects the flow such that the time between a quoter submitting their quote and being required to fill the order is minimized. This enforces a near 100% fill rate and eliminates most predatory behaviors.
21+
V2 rearchitects the flow such that the time between a quoter submitting their quote and being required to fill the order is minimized. This enforces a near 100% fill rate and causes most orders to fill almost instantly.
2122

22-
The quoting flow is divided into two phases:
23+
Two achieve this, the quoting flow is divided into two phases:
2324

2425
1. **Indicative Quotes**: Provided pre-signature when the swapper is exploring quotes but has not committed to trading. Quoters can participate here without being held fully accountable.
2526
2. **Hard Quotes**: Provided post-signature when the swapper has committed to trading. Quoters are held fully accountable for these quotes.
2627

27-
To prevent gaming, quoters cannot distinguish between indicative and hard quotes. As a result, they must always provide their best price, assuming all quotes are hard.
28-
29-
## Key Features of V2
28+
Since hard quotes are provided post-signature, they are instantly executable by fillers removing the risk of market movements causing the order to fail.
3029

31-
* **Improved User Experience**: Faster execution due to pre-signed hard quotes.
32-
* **Anti-Gaming Mechanisms**:
33-
* Quoters cannot distinguish between indicative and hard RFQs.
34-
* Requests include intentional noise, such as fake quotes and bidirectional requests, complicating attempts to game indicative quotes.
35-
* Quoters who fail to honor hard quotes face temporary suspensions or permanent bans for repeated violations.
36-
37-
This new structure reinforces UniswapX’s commitment to transparency, efficiency, and user-centric design, establishing a more secure and seamless trading experience.
30+
To prevent gaming, quoters cannot distinguish between indicative and hard quotes. As a result, they must always assume all quotes are hard and provide competitive prices.
3831

3932
## V2 Flow
4033
<p align="center">
41-
<img width="599" alt="image" src="https://github.com/user-attachments/assets/8f35c682-bc0f-4eb8-a7a3-eb91810bf63e" />
34+
<img width="599" alt="image" src={require('./images/v2-flow.png').default} />
4235
</p>
4336

4437
1. The user requests a quote from the interface.
@@ -55,10 +48,15 @@ This new structure reinforces UniswapX’s commitment to transparency, efficienc
5548
## Why is a cosigner needed?
5649

5750
In UniswapX V2, users commit to a range of prices when signing their order. Without safeguards, a malicious auctioneer could provide users the worst price within their range.
58-
51+
<p align="center">
52+
<img width="599" alt="image" src={require('./images/cosigner.png').default} />
53+
</p>
5954

6055
The cosigner field allows users to designate an auctioneer they trust to run the auction fairly, ensuring the best executable price within the signed parameters. Currently, the trading API sets the cosigner to Uniswap Labs, though this could be updated in the future.
6156

57+
# Current Status
58+
UniswapX V2 is currently the default version of the protocol running on Mainnet across Uniswap's interfaces.
59+
6260
# Smart Contracts
6361

6462
* [V2DutchOrderReactor](https://github.com/Uniswap/UniswapX/blob/main/src/reactors/V2DutchOrderReactor.sol)
469 KB
Loading
125 KB
Loading
161 KB
Loading

0 commit comments

Comments
 (0)