Uniswap: Difference between revisions

From DAO Governance Wiki
Jump to navigation Jump to search
(Regurgitated some of the concepts on the Uniswap page, and Finematics.)
(Added citations)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:


=== Overview ===
=== Overview ===
<blockquote>Uniswap is an ''automated liquidity protocol'' powered by a constant product formula and implemented in a system of non-upgradeable smart contracts on the Ethereum blockchain.<ref>''Protocol Overview: How Uniswap works''. (n.d.). Uniswap. Retrieved November 8, 2023, from <nowiki>https://docs.uniswap.org/contracts/v2/concepts/protocol-overview/how-uniswap-works</nowiki></ref></blockquote>
<blockquote>Uniswap is an ''automated liquidity protocol'' powered by a constant product formula and implemented in a system of non-upgradeable smart contracts on the Ethereum blockchain.<ref name=":0">''Protocol Overview: How Uniswap works''. (n.d.). Uniswap. Retrieved November 8, 2023, from <nowiki>https://docs.uniswap.org/contracts/v2/concepts/protocol-overview/how-uniswap-works</nowiki></ref></blockquote>


== Timeline ==
== Timeline ==


=== Version Evolution ===
=== Version Evolution ===
{|
{| class="wikitable"
|+
!
!
!V1
!V1
Line 37: Line 38:
=== Swaps ===
=== Swaps ===


=== Constant Product Formula ===
=== Constant Product Formula<ref name=":0" /><ref>Uniswap. (2020). ''UniswapV2Factory.sol''. GitHub. <nowiki>https://github.com/Uniswap/v2-core/tree/master/contracts</nowiki></ref> ===
<code>x * y = k</code>
<code>x * y = k</code>


Line 52: Line 53:
# How does the relate to DGF?
# How does the relate to DGF?
## Can it help with validation pool REP management and redistribution? [Context: Odra Collaboration]
## Can it help with validation pool REP management and redistribution? [Context: Odra Collaboration]
### REP and cryptocurrencies are fundamentally different. REP is meant to be a low velocity asset that has non-fungible qualities.
### REP and cryptocurrencies are fundamentally different. REP is meant to be a low velocity asset that has non-fungible qualities and generally non-tradeable vs. normal digital currencies. Additionally, a validation pool is not a liquidity pool<ref>''Pools | Uniswap''. (n.d.). <nowiki>https://docs.uniswap.org/contracts/v2/concepts/core-concepts/pools</nowiki></ref> and should not be treated as such.


== References ==
== References ==
<references />
<references />

Latest revision as of 10:20, 26 February 2024

How it works?[edit | edit source]

Overview[edit | edit source]

Uniswap is an automated liquidity protocol powered by a constant product formula and implemented in a system of non-upgradeable smart contracts on the Ethereum blockchain.[1]

Timeline[edit | edit source]

Version Evolution[edit | edit source]

V1 V2 V3
V1 Vyper: ETH20-ETH NA NA
V2 Solidity: ETH20-ETH20 NA
V3 Ethereum and Optimism Concentrated Liquidty, Active Liquidity, Range Limit Orders.
  • Focuses on capital efficiency

Concepts[edit | edit source]

Liquidity Pools[edit | edit source]

Swaps[edit | edit source]

Constant Product Formula[1][2][edit | edit source]

x * y = k

Concentrated Liquidity (CL)[edit | edit source]

As long as the pairing of ETH and DAI stay within a range ($1500-2500), User Red who invested much less than User Blue ($1200 vs. $10,000) can still earn the same trading fees (see Figure CL).

Figure CL: An example of how Uniswap V3's concentrated liquidity concept works.[3]

Active Liquidity[edit | edit source]

Range Limit Orders[edit | edit source]

Questions[edit | edit source]

  1. How does the relate to DGF?
    1. Can it help with validation pool REP management and redistribution? [Context: Odra Collaboration]
      1. REP and cryptocurrencies are fundamentally different. REP is meant to be a low velocity asset that has non-fungible qualities and generally non-tradeable vs. normal digital currencies. Additionally, a validation pool is not a liquidity pool[4] and should not be treated as such.

References[edit | edit source]

  1. 1.0 1.1 Protocol Overview: How Uniswap works. (n.d.). Uniswap. Retrieved November 8, 2023, from https://docs.uniswap.org/contracts/v2/concepts/protocol-overview/how-uniswap-works
  2. Uniswap. (2020). UniswapV2Factory.sol. GitHub. https://github.com/Uniswap/v2-core/tree/master/contracts
  3. UNISWAP V3 - New Era Of AMMs? Architecture Explained. (2021, March 23). Finematics. Retrieved November 8, 2023, from https://finematics.com/uniswap-v3-explained/
  4. Pools | Uniswap. (n.d.). https://docs.uniswap.org/contracts/v2/concepts/core-concepts/pools