forked from Uniswap/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'smblee/bryan-12-04-upgrade_to_docusauru…
…s_v3' into bryan-01-14-redesign * smblee/bryan-12-04-upgrade_to_docusaurus_v3: (22 commits) update v4 docs to be compliant with v3 styling, update margin docs: add Soneium and Ink v4 deployments (Uniswap#876) docs: update home index links for v4 (Uniswap#874) docs: update protocol intro with v4 references (Uniswap#872) docs: clean up unused imports and update v4 whitepaper link (Uniswap#868) docs: update READ.ME with v4 references (Uniswap#871) docs: update homepage guides for v4 (Uniswap#870) docs: add v4 updates to Uniswap Protocol Overview and Hooks to Protocol Concepts (Uniswap#869) docs: first draft for the v4 sdk tech reference, overview tbd (Uniswap#858) docs: update avalanche explorer (Uniswap#866) Update gas-optimization.md (Uniswap#860) docs: add all mainnet deployments for v4 (Uniswap#864) Update 05-range-orders.md (Uniswap#861) Update Celo-Deployments.md (Uniswap#862) v4 docs: UI enhancements, broken links, lowercase letters fixes and content updates (Uniswap#854) Fix Guide on Minting Position (Uniswap#859) Update 01-overview.md (Uniswap#852) docs: v4 hooks guides optimizations (Uniswap#844) StateView & Flash Accounting guides added (Uniswap#848) Update `decrease-liquidity.md` to fix a bug in the demo code (Uniswap#856) ...
- Loading branch information
Showing
134 changed files
with
10,546 additions
and
4,053 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
docs/concepts/governance/07-changelog.md → docs/archived/07-changelog.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
id: changelog | ||
title: Changelog | ||
hidden: true | ||
--- | ||
|
||
| Date | Abstract | Transaction | Sybil Reference | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
id: concentrated-liquidity | ||
title: Concentrated Liquidity | ||
sidebar_position: 1 | ||
sidebar_position: 6 | ||
--- | ||
|
||
<div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
id: fees | ||
title: Fees | ||
sidebar_position: 2 | ||
sidebar_position: 3 | ||
--- | ||
|
||
## Swap Fees | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
id: hooks | ||
title: Hooks | ||
sidebar_position: 1 | ||
--- | ||
|
||
## Introduction | ||
|
||
Uniswap v4 inherits all of the capital efficiency gains of Uniswap v3 while introducing major architectural improvements. | ||
|
||
The key innovations are the Hook System and Singleton Architecture, which together enable unprecedented protocol customization and gas optimization. | ||
|
||
## Hooks | ||
|
||
Hooks allow developers to customize and extend the behavior of liquidity pools. They are external smart contracts that can be attached to individual pools to intercept and modify the execution flow at specific points during pool-related actions. | ||
|
||
The logic is executed before and/or after major operations such as pool creation, liquidity addition and removal, swapping, and donations. | ||
|
||
Through these hook functions, developers can build sophisticated features like custom AMMs with different pricing curves, yield farming protocols, advanced trading features including limit orders, dynamic fee strategies, and custom oracle implementations. Each pool can have one hook (though a hook can serve multiple pools), hooks are optional and specified during pool creation, and developers can implement any combination of hook functions based on their needs. | ||
|
||
## Singleton Architecture | ||
|
||
The hook system in v4 is built on top of a revolutionary architectural change known as the singleton design. Unlike previous versions where each pool was a separate smart contract, v4 manages all pools through a single contract called the [PoolManager](/contracts/v4/concepts/PoolManager). This architectural innovation brings several key improvements: | ||
|
||
- **Efficient Pool Creation**: Pools are created as state updates rather than contract deployments, significantly reducing gas costs | ||
- **Gas Optimization**: Multi-hop swaps and complex operations are streamlined through a single contract | ||
- **Flash Accounting**: Token balances are tracked internally and settled at the end of transactions, minimizing transfers | ||
- **Native ETH Support**: Direct ETH trading without the need to wrap to WETH, improving user experience | ||
|
||
These core features are just the beginning of what's possible with Uniswap v4. | ||
|
||
To explore all features including flash accounting, native ETH support, dynamic fees, and custom accounting, check out the [v4 whitepaper](https://uniswap.org/whitepaper-v4.pdf). | ||
|
||
For technical implementations and detailed guides, visit the [v4 technical documentation](/contracts/v4/concepts/overview). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
id: oracle | ||
title: Oracle | ||
sidebar_position: 3 | ||
sidebar_position: 4 | ||
--- | ||
|
||
:::note | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
id: swaps | ||
title: Swaps | ||
sidebar_position: 5 | ||
sidebar_position: 2 | ||
--- | ||
|
||
## Introduction | ||
|
Oops, something went wrong.