No video

What is an AMM and why do we need it? Explained.

  Рет қаралды 37,265

Kerman Kohli

Kerman Kohli

Күн бұрын

Пікірлер: 94
@ezenwakavictor4237
@ezenwakavictor4237 Жыл бұрын
Your teaching is top-notch. Spot on!
@Zedster88
@Zedster88 3 жыл бұрын
Great vid. I suggest running at 1.5x speed still very comprehendible.
@SamJones1337
@SamJones1337 3 жыл бұрын
its great and i ran it at 2x
@davem3673
@davem3673 3 жыл бұрын
Good tip
@abuturki4460
@abuturki4460 3 жыл бұрын
I just learned about this feature in KZbin from you.
@thepurpleflute9740
@thepurpleflute9740 3 жыл бұрын
Good call I appreciate it!
@qichang4485
@qichang4485 Жыл бұрын
I've learnt from tons of tutorials about AMM. This one apparently the best. Crystal clear! Thanks sir.
@santiagodevrel
@santiagodevrel Жыл бұрын
This video is gold, thanks man!
@0xkerman
@0xkerman Жыл бұрын
Glad it helped!
@markmaximus100
@markmaximus100 2 жыл бұрын
This is the best explanation of the math behind AMMs hands down!
@nikitabobyshew7927
@nikitabobyshew7927 3 жыл бұрын
Best explanation I've found. Very clear. Thank you
@adamsasso1
@adamsasso1 4 жыл бұрын
Nice explanation. I’d like to offer a slight correction in some of the phrasing you used - it might help keep things clear and understandable in the future... When talking about the ‘Buy’ order you refer to the price first, then the amount. For example: “Alice would pay $100 for 1 ETH.” Conversely, on the “Sell” side you’d say: “Bob offers 1 ETH at $100.” The key being the order (price, then amount) or (amount, then price) and the words “for” and “at”. This way there’s no confusion about what side each party is on and what they want to do. I worked on a trading desk for years and this is how we kept things straight. Also, the Buy side is generally written on the left, and the Sell side on the right.
@rusydiumar6696
@rusydiumar6696 3 жыл бұрын
cool
@thepurpleflute9740
@thepurpleflute9740 3 жыл бұрын
Consistency matters, fair enough. :)
@Joshh.K
@Joshh.K 3 жыл бұрын
i was dying for a visual understanding of what i would be doing if i staked a coin, in exactly the format you've provided. thank you mate, proper hit the spot!
@sander72991
@sander72991 4 жыл бұрын
Loving the format of this video. Great job 👏
@maxholloway4788
@maxholloway4788 3 жыл бұрын
Hey, overall great video but the traditional order book explanation is a bit off. The order book graphic is a histogram of bids (green) and asks (red); on the x-axis are the prices, and on the y-axis are quantities.
@sommi888
@sommi888 4 жыл бұрын
🧡💛💚💙 You handwriting is epic and the colours are nicely chosen 🧡💛💚💙
@tan.nicolas
@tan.nicolas 3 жыл бұрын
What a good teacher you are!
@radicalexile
@radicalexile 4 жыл бұрын
Awesome content. Such a great way of explaining the concept.
@rushiljohar4206
@rushiljohar4206 4 жыл бұрын
Most Required Video. Wazirx Exchange India just went AMM. thanks dude! 🇮🇳🙏
@ignatiuse6857
@ignatiuse6857 3 жыл бұрын
This was an awesome explanation! Thank you ... last thing I would love to know is what the relationship is between slow/expensive smart contracts and why this makes traditional order books unfeasible
@pengjoon
@pengjoon 3 жыл бұрын
Love the explanation 🔥
@laurenzhasselbach8231
@laurenzhasselbach8231 3 жыл бұрын
Best AMM Explanation Video! Only one detail I did not quite understand. Why is an Order Book unsuitable as a Smartcontract and suitable for the AMM. Is it because the Smartcontract offer would have to be written on the block chain every time? Whereas the AAM only has to read from the block chain, so the prices are live? Nevertheless, a calculation has to be made and computing power costs in the Ethereum network. As I said, I didn't quite understand it yet :D.
@maxholloway4788
@maxholloway4788 3 жыл бұрын
Hi Laurenz! Decentralized apps rely on smart contracts on the blockchain, and that blockchain is the single source of truth for everyone using the network. Market makers on centralized exchanges (e.g. the New York Stock Exchange) place limit orders to buy or sell an asset at particular prices. For example, they might offer to buy Apple shares at $122 and also offer to sell Apple shares at $123. But since price is relatively volatile, for both stocks and crypto, the market maker often times needs to cancel their orders. For example if the market maker thinks the price of Apple stock will go up to $130, she might want to cancel her offer to sell Apple at $123. In centralized exchanges this is not an issue, since they just use the exchange's internal servers to cancel the order. However on decentralized exchanges, cancelling an order might cost a couple dollars. Typical market makers on centralized exchanges can place hundreds or thousands of orders per day, and make cents on each transaction, and also cancel a lot of orders. They would lose a ton of money if they did it all on the blockchain, making it harder for order-book style exchanges to exist on the blockchain. Hope this helps!
@TheRollupCo
@TheRollupCo 2 жыл бұрын
Simply amazing! Well done, very like your explanation.
@yoeydanjuma
@yoeydanjuma 3 жыл бұрын
great content absolutely love the old school black board style
@valeriobraconcini-phipps9418
@valeriobraconcini-phipps9418 2 жыл бұрын
Hi can you explain further why the curve is exponential and not linear
@vrcmacki2701
@vrcmacki2701 3 жыл бұрын
Great explanation, thank you!
@GermanMazzaferro
@GermanMazzaferro 3 жыл бұрын
Excellent explanation!!
@joeysang77
@joeysang77 3 жыл бұрын
You nailed it! Very impressive. Thank you!
@JayTrinidad
@JayTrinidad 3 жыл бұрын
That was amazing! Mind blown 🤯
@Benmansouri
@Benmansouri 2 жыл бұрын
I hope you make a video about hybrid AMM/orderbook
@majedti4126
@majedti4126 3 жыл бұрын
can you do a vid on impermanent loss?
@jejunegamingtv1359
@jejunegamingtv1359 2 жыл бұрын
is it me or is the explanation wrong? You want to give ETH to the pool but you deduct 1 from the pool -> 10 - 1? Or am I missing something? Shouldn't it be 10 + 1 and for the DAI, it should be 1000 + x?
@SilasAram
@SilasAram 10 ай бұрын
So basically an AMM is an Automatic Currency Exchange System or AI Bank. So can you create a AI Bot using AMM Engineering to be gather Data for other things like Email Marketing?
@elijahbrown4594
@elijahbrown4594 2 жыл бұрын
Thanks!! Very helpful!!
@brookngamotu2639
@brookngamotu2639 3 жыл бұрын
Change speed of video to 1.75x
@GregJohns
@GregJohns 4 жыл бұрын
Awesome explainer
@iamritambhar
@iamritambhar 3 жыл бұрын
One of the best explanations of AMM, but I had to watch it at 1.5X speed 😁
@funnymuny7127
@funnymuny7127 3 жыл бұрын
your awesome thank you
@ethanluc8908
@ethanluc8908 3 жыл бұрын
at 13:17, should that be 111 DAI (which is $111 since DAI = $1)?
@jf7sm53
@jf7sm53 3 жыл бұрын
yes, in that example we take 1 eth and give 111DAI. This mention of 111$ is super confusing. At that point in video I had to stop and look up somewhere else to sort this out. This is an example of how you can tell any bullshit in calm and confident voice and majority of people won't notice lol. Makes me think if people who comment "awesome" and "nice one" actually watched the same video I did.
@catchacard4638
@catchacard4638 2 жыл бұрын
great, loopring does this
@erickjian7025
@erickjian7025 3 жыл бұрын
before 11:34, you mentioned somebody wants to buy ETH (from the pool). I'm confused at 11:34 How are they giving ETH to the pool ?
@brownmiester
@brownmiester 2 жыл бұрын
i think he mis spoke
@varunkao4987
@varunkao4987 3 жыл бұрын
[8:51] Perhaps I missed this, but I have to ask, how is ratio in the contract determined?
@HaiHoang-dd8co
@HaiHoang-dd8co 3 жыл бұрын
Beautiful explain, can you share the app you use to do this? Many thanks
@princedavid88
@princedavid88 4 жыл бұрын
Great video.
@funnymanallinsanw9606
@funnymanallinsanw9606 2 жыл бұрын
But what happens if eth price increases else where? Will it also increase in the AMM by the same amount because there will be more demand on the AMM as well? And what guarantees that the increase in price of eth on the AMM will be the same as the increase elsewhere?
@mohammadr.zeinali4708
@mohammadr.zeinali4708 3 жыл бұрын
That was awesome
@tahirasiddiqui6565
@tahirasiddiqui6565 4 жыл бұрын
Great content 👍👍
@cammylee591
@cammylee591 3 жыл бұрын
nice one bro
@sudeep.g
@sudeep.g 3 жыл бұрын
Thank you so much! Great explaination
@AX1A
@AX1A 3 жыл бұрын
Thanks, you’re the best
@nicolasweiss6186
@nicolasweiss6186 3 жыл бұрын
Hi, thanks for the great video! For red-green orderbook diagram (/histogram), shouldn't the price be the x-axis and volume be the y-axis instead?
@maxx7694
@maxx7694 3 жыл бұрын
Lol yeah it doesn't look right to me either. As the price increases the cumulative sell orders should be increasing as well, not decreasing.
@jonwu4529
@jonwu4529 3 жыл бұрын
Actually I m a little confused in this model, X x Y = K, is that means when one man sells 1 eth and use AMM, the price of eth will go up?
@Channel60
@Channel60 2 жыл бұрын
How does one find these AMM arbitrage opportunities consistently?
@omparikh4426
@omparikh4426 3 жыл бұрын
does k change when market makers provide equal quantity of both x and y?
@user-xy8cq5oi9f
@user-xy8cq5oi9f 3 жыл бұрын
At 18:05 you said "I just have to give two quantities of tokens to the smart contract and I become a market maker/provide liquidity" What do you mean? - this part has no context. Is this separate from the buyer and seller? Please explain.
@onekycarscanners6002
@onekycarscanners6002 3 жыл бұрын
You have to stake the two tokens if not you are just a buyer and seller or a burrower and lender.
@user-gs7uu6ig7o
@user-gs7uu6ig7o 3 жыл бұрын
But who is the arbitrageur? On something like Pancake Swap, or any AMM, I see the option for providing liquidity or as you would say being a "market Maker". In return a LP gets a good APR. And then there are pools where you can yield farm. What do the pools contribute to formula? Those are basically all the options I see. So the arbitrage is where?
@onekycarscanners6002
@onekycarscanners6002 3 жыл бұрын
Any one can arb just look at the price difference or set a bot to do it. Arbs = risk free traders.
@gsuarezduek
@gsuarezduek 3 жыл бұрын
amazing, thx!
@sebastianojeda5283
@sebastianojeda5283 3 жыл бұрын
Gold
@galvinng1997
@galvinng1997 3 жыл бұрын
You say the price of Dai is x/y = 0.01. But Dai is $1, not 1 cent...?
@cryptohype4294
@cryptohype4294 4 жыл бұрын
Please keep it up-
@mspacey
@mspacey 4 жыл бұрын
so AMM is the entity doing the arb? if so the smart contract could almost use any math and AMM will arb it back right? the math doesnt have to be x*y = k; it could be anything like x*2y=k; and it wouldnt matter. As long as arbitrageurs bring it back.
@asandrius86
@asandrius86 3 жыл бұрын
thanks but if you want to buy ETH, don’t you reduce the amount of ETH and not sum?
@jejunegamingtv1359
@jejunegamingtv1359 2 жыл бұрын
that was what i was thinking as well.
@brownmiester
@brownmiester 2 жыл бұрын
wait price of dai is .01? at 10:53?
@fortunatluethi
@fortunatluethi 4 жыл бұрын
ove this, what platform did you use explaning this?
@mrmohamed5494
@mrmohamed5494 4 жыл бұрын
notability
@sehz1789
@sehz1789 4 жыл бұрын
Does anybody know who started this whole AMM model ? i dont think it was uniswap that was the first.
@DewaldVDB
@DewaldVDB 4 жыл бұрын
Would be nice to know yeah
@maxx7694
@maxx7694 3 жыл бұрын
I'm not sure about the implementation but I believe it was first described as a possibility for Ethereum in a paper by Vitalik.
@sehz1789
@sehz1789 3 жыл бұрын
@@maxx7694 i think youre right . and bancor was the first to implement i think
@Kompot01
@Kompot01 3 жыл бұрын
I do not get from where do they got first numbers x and y.
@onekycarscanners6002
@onekycarscanners6002 3 жыл бұрын
The first Lp should provides it.
@mccorrect3470
@mccorrect3470 2 жыл бұрын
So he paid $111 for something that costs $100 because the pool has to rebalance?
@jonnymorley1344
@jonnymorley1344 3 жыл бұрын
some errors but good to get the gist
@financialgyaan9656
@financialgyaan9656 3 жыл бұрын
No new video coming? 🥺
@rusydiumar6696
@rusydiumar6696 3 жыл бұрын
DAI Price 1 1USD, but a minute later you said DAI Price = 10/1000 = 0.1 USD. Cool..... How come....
@sudeepjc
@sudeepjc 3 жыл бұрын
It's 0.1 ETH, it always works in pair. ETH vs DAI
@noirimsi
@noirimsi 3 жыл бұрын
so, defi dex pools are scam? xd
@whatthefunction9140
@whatthefunction9140 4 жыл бұрын
So be careful swapping a small pools kids.
@rushiljohar4206
@rushiljohar4206 4 жыл бұрын
Just reduce the sell price and increase the buy price in smart contact.. no need to do soo much math.
@bereketmol4227
@bereketmol4227 3 жыл бұрын
You lost me 5 times
@ddljddlj704
@ddljddlj704 3 жыл бұрын
Lol same
@philhellmuff
@philhellmuff 4 жыл бұрын
Great video but it could have been 10 min shorter if you had just used slides.
@buddahJesus
@buddahJesus 2 жыл бұрын
I CAN DODGE BULLETS, BABY!
What are Stablecoins, Explained. No BS.
12:08
Kerman Kohli
Рет қаралды 1,7 М.
What is an Automated Market Maker? (Liquidity Pool Algorithm)
10:25
Whiteboard Crypto
Рет қаралды 385 М.
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
超凡蜘蛛
Рет қаралды 14 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 11 МЛН
Constant Sum AMM Math | DeFi
14:35
Smart Contract Programmer
Рет қаралды 4,6 М.
DeFi's Bitcoin: $YFI Explained
13:24
Kerman Kohli
Рет қаралды 21 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
But how does bitcoin actually work?
25:16
3Blue1Brown
Рет қаралды 15 МЛН
What Are Automated Market Makers? [ Explained With Animations ]
4:54
ChatGPT: 30 Year History | How AI Learned to Talk
26:55
Art of the Problem
Рет қаралды 1 МЛН
This is why Deep Learning is really weird.
2:06:38
Machine Learning Street Talk
Рет қаралды 384 М.
UNISWAP V3 - New Era Of AMMs? Architecture Explained
16:49
Finematics
Рет қаралды 173 М.