What is Uniswap - A Beginner's Guide (2022 Updated) - YouTube

Channel: 99Bitcoins

[0]
What is Uniswap?
[1]
How is it different from traditional cryptocurrency exchanges?
[5]
And what is this UNI token that’s been rocketing up the price chart?
[8]
Well stick around, here on Crypto Whiteboard Tuesday,
[11]
we’ll answer these questions and more.
[19]
Hi, I’m Nate Martin from 99Bitcoins.com
[22]
and welcome to Crypto Whiteboard Tuesday
[25]
where we take complex cryptocurrency topics,
[27]
break them down
[28]
and translate them into plain English.
[30]
Before we begin,
[31]
don't forget to subscribe to the channel
[33]
and click the bell so you’ll immediately get notified
[36]
when a new video comes out.
[38]
Today’s topic is Uniswap and the UNI token.
[41]
It’s important to note that this is an advanced topic
[44]
that relies on prior knowledge of how cryptocurrencies work.
[48]
If you’re new to crypto
[49]
you may want to check out additional videos
[51]
that we’ll mention and link to in the description
[53]
to get you up to speed.
[55]
Now let’s get started.
[57]
Uniswap is a decentralized, permissionless exchange
[60]
that allows anyone to trade Ethereum ERC-20 tokens directly
[64]
without the use of a middleman.
[66]
OK...what exactly did I just say?
[69]
Don’t worry: we’re going to work through this together.
[72]
To understand what makes Uniswap different,
[75]
let’s start out by taking a look at how a traditional cryptocurrency exchange,
[79]
like Kraken or Bitstamp works.
[81]
To begin with, traditional exchanges are centralized,
[84]
meaning they are owned by a company
[86]
that has complete control over the exchange
[88]
and the computers that run it.
[90]
Traditional exchanges are also regulated by KYC laws,
[94]
which is an abbreviation for ‘Know Your Customer’.
[97]
These laws require each new customer
[99]
to provide extensive personal information,
[102]
including your home address and tax ID numbers
[104]
before you can begin trading on the exchange.
[107]
Additionally, in order to trade on a traditional exchange,
[111]
users need to deposit money on the exchange,
[114]
basically giving the exchange control over their funds.
[117]
On a traditional exchange,
[118]
when users want to buy or sell a certain cryptocurrency
[121]
they submit a “Buy” or “Sell” order.
[124]
All of these orders are recorded in the exchange’s order book.
[128]
Once there’s a match between a buyer and a seller,
[131]
a trade is conducted.
[132]
So this is how a traditional, centralized exchange works.
[136]
If you want to learn more about exchanges and trading,
[138]
you can check out our “What is Bitcoin trading” video
[141]
which we’ll link to below.
[143]
Now let’s talk about decentralized exchanges,
[146]
also known as DEXs.
[148]
DEXs are part of the decentralized finance ecosystem.
[152]
Decentralized finance, or DeFi for short,
[155]
is a term given to traditional financial services
[158]
such as exchanges, lending services, and insurance,
[161]
that have been decentralized
[162]
through the use of Blockchain technology.
[165]
If you’re not familiar with DeFi or Blockchain technology
[168]
you can also check out these two videos.
[170]
We’ll leave the links in the description
[172]
Now, unlike a traditional exchange
[174]
that requires a controlling company and centralized servers to operate,
[178]
A DEX consists of a set of smart contracts deployed on a blockchain.
[183]
In simple terms, it’s a set of automated rules
[186]
that are executed by a network of independent computers
[189]
without any central entity controlling it.
[192]
And if you want to learn more about smart contracts
[194]
and how they work,
[195]
you can take a look at our “What is Ethereum” video.
[198]
Since DEXs aren’t controlled by anyone,
[201]
they can’t be regulated and are in fact open to everyone.
[205]
When using a DEX there’s no need to open an account,
[207]
or go through an identification process
[209]
where you’d have to supply your personal information.
[212]
Additionally DEXs allow users to trade directly
[215]
from their own wallets
[216]
allowing them to keep full control over their funds.
[219]
A key difference a DEX has from a traditional exchange
[222]
is in the way transactions are conducted
[224]
and how price is determined.
[227]
As I’ve mentioned earlier,
[228]
in a traditional exchange
[229]
buyers and sellers set their price expectations
[232]
as “Buy” and “Sell” orders inside the order book.
[235]
The more buyers and sellers an exchange has,
[237]
the larger its order book
[239]
and the more “liquid” the exchange is said to be.
[242]
In other words,
[242]
it’s easier to find a buyer and a seller that agree on a price
[246]
and make a trade.
[247]
Imagine there are only 2 buyers and 2 sellers on a certain exchange.
[252]
It would be very hard for any trade to get executed,
[255]
since it's unlikely to find two people who would agree on a price.
[259]
Without liquidity the exchange is practically dead
[262]
since no trades can be conducted.
[264]
It’s the same as having a shopping mall
[266]
with very few stores or and customers.
[268]
There’s not a lot of business that will be done there.
[271]
In fact, liquidity is such an important criteria
[274]
to determine the quality of an exchange,
[276]
that some exchanges use external services called “market makers”
[280]
that are willing to buy and sell at all times,
[282]
creating constant liquidity for the exchange.
[285]
DEXs, on the other hand, don’t store any user funds
[288]
and have no order book.
[290]
Liquidity on DEXs is created through liquidity pools.
[294]
Liquidity pools are a shared pot of funds
[297]
deposited by the general public,
[299]
and DEXs use liquidity pools in order to fulfill “buy” and “sell” orders.
[304]
People who deposit funds in liquidity pools
[306]
are known as liquidity providers or LPs.
[310]
In exchange for the locked funds,
[312]
LPs receive a part of the DEX’s trading fees
[314]
in a process known as liquidity mining.
[317]
Now that we’ve covered the differences
[319]
in how liquidity is provided between traditional and decentralized exchanges,
[323]
let’s talk about how the price of a certain coin is determined.
[327]
On a traditional exchange,
[328]
when a seller and buyer reach an agreement
[331]
through matching orders in the exchange order book,
[333]
a trade is conducted.
[335]
At that point the price of the coin is determined
[337]
until another trade is executed at a different price.
[341]
In other words,
[341]
the price of the most recent trade is considered the current price
[345]
on the exchange.
[346]
A decentralized exchange on the other hand,
[349]
doesn’t have an order book.
[350]
Users don’t trade with one another,
[352]
they trade within a liquidity pool.
[354]
And instead of using the last trade to determine the price,
[357]
a mathematical formula is used.
[360]
This formula, or algorithm, is called an Automated Market Maker
[364]
or AMM for short.
[366]
Uniswap uses an AMM called “Constant Product Market Maker Model”
[370]
to determine the price of coins on its exchange.
[373]
This AMM follows a simple formula of X times Y equals K.
[378]
This means that when trading, for example, Ether for DAI
[381]
the amount of Ether available times the amount of DAI available
[384]
on Uniswap’s Ether/DAI liquidity pool should always equal a constant number.
[389]
Let’s break this down a bit further.
[391]
Imagine there are 10 ETH and 10,000 DAI on a certain liquidity pool.
[396]
As we can see, using the AMM model
[398]
this means that the number of ETH
[400]
times the number of DAI equals 100,000, this is our constant K.
[406]
If I were to buy 1 ETH,
[407]
this will reduce the number of ETH in the pool to 9.
[411]
Now the question remains, how many DAI will this cost.
[414]
Well, the way to calculate this is to take our constant of 100,000
[418]
and divide it by the new number of ETH, 9.
[422]
This would give us the new number of DAI required in our pool - 11,111.
[428]
Meaning we need to deposit around 1,111 DAI to buy one ETH.
[435]
As you can see the price is determined
[436]
by how much of a certain token you want to buy,
[439]
and not by how much someone else wants to get for it.
[443]
By using the “Constant Product Market Maker Model” algorithm,
[446]
liquidity is kept without the need for external market makers,
[449]
no matter how large the order size or how tiny the liquidity pool.
[453]
This model makes it infinitely expensive
[456]
to consume the whole amount of a certain coin,
[458]
putting a damper on larger orders.
[461]
For example, In our previous exercise,
[463]
if I wanted to buy 9 ETH it would cost me 90,000 DAI
[467]
to maintain the 100,000 constant,
[470]
making each ETH cost 10,000 DAI instead of the 1,111 DAI it would cost
[475]
to buy only 1 ETH.
[477]
Of course there are other DEXs with different AMM algorithms
[480]
than the one used on Uniswap,
[482]
but that conversation goes beyond the scope of this video.
[486]
Now that we’ve covered DEXs
[487]
we can focus on Uniswap more in depth.
[491]
Uniswap is a DEX built on top of the Ethereum network infrastructure.
[495]
It’s a set of automated rules used for trading ERC-20 tokens,
[499]
which is a term given to a certain standard of Ethereum tokens.
[503]
Uniswap is the most popular decentralized application, or DAPP,
[507]
on the Ethereum platform
[508]
with hundreds of thousands of users trading on it each week.
[512]
Additionally Uniswap is one of the most forked projects
[515]
in the DeFi space,
[516]
meaning people use its code to build additional applications.
[520]
The first version of Uniswap started out in November of 2018.
[524]
Uniswap’s V1 allowed trading of any ERC-20 token to Ether and back.
[530]
In May of 2020 V2 was released
[532]
and the trading of ERC-20 tokens directly between one another
[536]
without first having to trade with Ether became available.
[540]
In May of 2021 V3 was released
[542]
allowing a more effective use of capital
[545]
to whoever decides to supply liquidity to Uniswap.
[548]
In other words
[549]
you can squeeze more “juice” out of the money you deposit
[552]
in the liquidity pool.
[554]
Trading also got more efficient,
[556]
lowering trading costs compared to V2.
[558]
Additional changes which we won’t go into in this video
[561]
include concentrated liquidity, active liquidity, range orders,
[565]
flexible fees and more.
[567]
So how do you actually use Uniswap?
[570]
Well, it’s fairly simple,
[572]
all you need is an Ethereum wallet like Metamask
[575]
which can interact with other Ethereum applications.
[578]
Once you have Metamask installed on your browser,
[581]
head over to Uniswap.org, click on “Connect Wallet”,
[585]
choose “Metamask”
[586]
and now you can start trading any Ethereum ERC-20 token
[590]
that is listed.
[591]
Keep in mind that since there are many people conducting trades
[594]
on Uniswap simultaneously,
[595]
the price shown when you place your order
[597]
may be different from the actual price when the order is executed.
[601]
This phenomenon is called “Slippage”
[603]
and you are able to cap how much slippage
[605]
you are willing to tolerate before cancelling your order.
[609]
The reason for slippage is that
[610]
every trade on Uniswap is actually an Ethereum transaction
[614]
and it can take some time to broadcast the transaction
[616]
and get it confirmed by the Ethereum network.
[620]
By the time the transaction is confirmed,
[622]
the price may have already changed.
[624]
Due to its decentralized and non-regulated nature,
[627]
Uniswap supports many types of ERC-20 tokens.
[631]
In fact, practically anyone can create their own token
[634]
and list it on Uniswap for free,
[636]
filling Uniswap with a wide variety of tokens
[638]
but unfortunately a fair number of scam coins as well.
[643]
Just because a coin is listed on Uniswap
[646]
doesn’t mean it’s legit or has any intrinsic value.
[649]
As opposed to a traditional exchange
[651]
that does extensive due diligence and research on every coin
[654]
it adds to its platform , Uniswap doesn’t.
[657]
So - it’s up to you to Do Your Own Research as they say
[660]
and decide if you want to invest in a certain coin.
[663]
Finally, let’s talk about the UNI token.
[666]
A coin that has gradually made its way to the list of top cryptocurrencies.
[670]
In September of 2020
[672]
Uniswap introduced the UNI token through an airdrop.
[675]
Meaning, each person who previously used Uniswap
[678]
received 400 UNI tokens for free.
[681]
Even though the UNI token has risen substantially in value
[684]
since its release,
[685]
it wasn’t designed to serve as a currency.
[688]
It’s actually a governance token,
[690]
allowing whoever holds it to influence and vote on development decisions.
[694]
The more tokens you hold, the more voting power you have.
[698]
The idea is for the Uniswap team to gradually fade out their involvement
[702]
in Uniswap
[703]
and leave the management of the project to the token holders.
[706]
So how is it that a token
[708]
that wasn’t meant to have any value rose to the top of the cryptocurrency list?
[712]
Well
it seems that the price of UNI
[714]
represents how valuable people believe that Uniswap will be in the future,
[718]
and therefore are willing to pay to be a part of its governing body.
[722]
In the cryptocurrency space
[724]
it’s not uncommon for coins
[725]
that never had any intention of being used as a financial asset
[729]
to become very valuable.
[730]
In the end it’s up to you to decide
[732]
if being a part of the Uniswap governing body
[735]
is worth the price of the UNI token.
[737]
That’s it for today’s episode of Crypto Whiteboard Tuesday.
[740]
Hopefully by now you understand what Uniswap is -
[743]
a decentralized exchange
[745]
that allows users to trade any ERC-20 token
[748]
without any intermediary.
[750]
You may still have some questions.
[752]
If so, just leave them in the comment section.
[754]
Finally, if you’re watching this video on YouTube,
[757]
and enjoy what you’ve seen,
[758]
don’t forget to hit the like button,
[760]
subscribe to the channel
[761]
and click that bell
[762]
so that you’ll be notified as soon as we post new episodes.
[765]
It really helps us out a lot.
[767]
Thanks for joining me here at the Whiteboard.
[769]
For 99bitcoins.com,
[770]
I’m Nate Martin, and I’ll see you
in a bit.