1) What are Pools?
Conversation
3) For instance, AMMs are Pools.
You store ETH + DAI in a Pool, and you tokenize ownership with an LP token. You can send back the LP token to get your ETH + DAI back.
Uniswap Pools have a twist: anyone can send DAI to the Pool, and get back an equal % of its ETH.
9) Or if you want to have an AMM trade on an orderbook?
Sure! Have the address that controls the assets use them to send orders on the relevant DEX market serum-academy.com/en/dex-list/.
Want to charge a remove liquidity fee? Sure, have the redemption function send 99% as much back.
7
1
23
11) You can see work-in-progress Pool code, along with tons of other Serum source code, here: projectserum.com/developer-reso
Coming Soon.
18
5
72
That's not how that works. The price moves as a square function. If you put in Dai equal to the amount already in the pool, the price goes up 4x and you get far less than 100% of the ETH that was there. Another interesting fact, you can't actually 0 a price through orders alone.
1
4
Replying to
Yeah I was approximating -- for *small* trades it's equal %; for large ones it preserves product
2
1
Show replies

