Hey there, I got a few questions on DEXes (like Uniswap) and the way pools work. So as far as I understand it and done it is that you provide iE 100$ in ETH and 100$ in USDc and get a LP token in return representing the share in that pool. So this case is (if I am right) me "buying" a share in a pool. Now, I want to create my own pool for ETHUSDC - is this possible? How is it technically working if there is ETHUSDC on Uniswap - does uniswap allow multiple pools for one pair and if so, how does it determine against which pool an incoming order is matched?

Sep 17, 2021, 10:03 PM
Also, if there are other groups on TG that are more appropriate for that kind of questions let me know
Sep 17, 2021, 10:04 PM
As far as I know, there can only be one pool for every pair.
Sep 17, 2021, 10:10 PM
Interesting, so from a technical perspective what are the ways to interact with a pool? iE you are an algo trader - what ways can you interact with a pool except for providing or removing liquidity?
Sep 17, 2021, 10:12 PM
Well, it’s a market, so the things you can do are around buying, selling, and providing liquidity.
Sep 17, 2021, 10:15 PM
For sure, but what params are there to interact? Is it really only adding or removing a 50/50 split of the pair? Or can you adjust the ratio, determine at which levels to provide that liquidity, etc?
Sep 17, 2021, 10:16 PM
for that, you can refer to uniswap docs. for v3:
https://docs.uniswap.org/protocol/guides/swaps/single-swaps
https://docs.uniswap.org/protocol/reference/periphery/NonfungiblePositionManager
Sep 17, 2021, 10:32 PM
Adjusting the ratio you need to interact with the erc20 contract in the first place
What's your specific case regarding algo trading? It's not clear
Why would you create your own pool?
Sep 18, 2021, 3:10 AM

© 2024 Draquery.com All rights reserved.