Difference between revisions of "Uniswap"

From DefiLlama
Jump to navigation Jump to search
m (formatting and simplifying)
Line 1: Line 1:
The Uniswap protocol is a permissionless peer-to-peer system designed for exchanging cryptocurrencies like ERC-20 Tokens. The protocol was founded by [[Hayden Adams]] in 2018.  
The Uniswap protocol is a permissionless peer-to-peer system designed for exchanging cryptocurrencies. The protocol was founded by [[Hayden Adams]] in 2018.  


== AMM ==
== Design and Usage ==
Uniswap uses an Automated Market Maker(AMM) model. An AMM replaces the buy and sell orders in an order book market with a liquidity pool of two assets, both valued relative to each other. As one asset is traded for the other, the relative price of the two assets shifts, and a new market rate(price) for both is determined <ref>https://docs.uniswap.org/protocol/introduction#order-book-vs-amm</ref>
Uniswap uses an Automated Market Maker (AMM) model. An AMM replaces the buy and sell orders in an order book market with a liquidity pool of two assets, both valued relative to each other. As one asset is traded for the other, the relative price of the two assets shifts, and a new market rate (price) for both is determined. <ref>https://docs.uniswap.org/protocol/introduction#order-book-vs-amm</ref>


== Liquidity Provider ==
=== Liquidity Providers ===
A liquidity provider is someone who deposits ERC20 tokens into a given liquidity pool. Liquidity providers take on price risk and are compensated with trading fees. <ref>https://docs.uniswap.org/protocol/concepts/V3-overview/glossary#liquidity-provider--lp</ref>
A liquidity provider (LP) is someone who deposits a pair of tokens to a smart contract. In return, they're compensated with a percentage of the trading fees for the given pair. <ref>https://docs.uniswap.org/protocol/concepts/V3-overview/glossary#liquidity-provider--lp</ref>


== Swaps ==
=== Swaps ===
Swaps are the most common way of interacting with the Uniswap protocol. For end-users, swapping is straightforward: a user selects an ERC-20 token that they own and a token they would like to trade it for. Executing a swap sells the currently owned tokens for the proportional amount of the tokens desired, minus the swap fee, which is awarded to liquidity providers <ref>https://docs.uniswap.org/protocol/concepts/V3-overview/swaps#introduction</ref>
Swaps are the most common use. For users, swapping is straightforward: a user selects an ERC-20 token that they own and a token they would like to trade it for. Executing a swap sells the currently owned tokens for the proportional amount of the tokens desired, minus the swap fee, which is awarded to liquidity providers. <ref>https://docs.uniswap.org/protocol/concepts/V3-overview/swaps#introduction</ref>


== Slippage ==
=== Slippage ===
When transactions are submitted to Ethereum, their order of execution is established by the amount of "gas" offered as a fee for executing each transaction. The higher the fee offered, the faster the transaction is executed. The transactions with a lower gas fee will remain pending for an indeterminate amount of time. During this time, the price environment in which the transaction will eventually be executed will change, as other swaps will be taking place. <ref>https://docs.uniswap.org/protocol/concepts/V3-overview/swaps#slippage</ref>
When transactions are submitted to Ethereum, their order of execution is established by the amount of "gas" offered as a fee for executing each transaction. The higher the fee offered, the faster the transaction is executed. The transactions with a lower gas fee will remain pending for an indeterminate amount of time. During this time, the price environment in which the transaction will eventually be executed will change, as other swaps will be taking place. <ref>https://docs.uniswap.org/protocol/concepts/V3-overview/swaps#slippage</ref>


== Sources ==
== Sources ==

Revision as of 04:14, 24 April 2022

The Uniswap protocol is a permissionless peer-to-peer system designed for exchanging cryptocurrencies. The protocol was founded by Hayden Adams in 2018.

Design and Usage

Uniswap uses an Automated Market Maker (AMM) model. An AMM replaces the buy and sell orders in an order book market with a liquidity pool of two assets, both valued relative to each other. As one asset is traded for the other, the relative price of the two assets shifts, and a new market rate (price) for both is determined. [1]

Liquidity Providers

A liquidity provider (LP) is someone who deposits a pair of tokens to a smart contract. In return, they're compensated with a percentage of the trading fees for the given pair. [2]

Swaps

Swaps are the most common use. For users, swapping is straightforward: a user selects an ERC-20 token that they own and a token they would like to trade it for. Executing a swap sells the currently owned tokens for the proportional amount of the tokens desired, minus the swap fee, which is awarded to liquidity providers. [3]

Slippage

When transactions are submitted to Ethereum, their order of execution is established by the amount of "gas" offered as a fee for executing each transaction. The higher the fee offered, the faster the transaction is executed. The transactions with a lower gas fee will remain pending for an indeterminate amount of time. During this time, the price environment in which the transaction will eventually be executed will change, as other swaps will be taking place. [4]

Sources