n-way swaps #23
Replies: 2 comments 16 replies
-
|
Hey! I did at one point but I couldn't come up with a satisfactory implementation. My philosophy is to compose simple pieces to create more complex features and this seemed like something that should be handled by composing two-way swaps together. Pooling them all also increase the overall risk: if one stablecoin's peg breaks the others can all be drained. Did you come up with a simple implementation for this? I want to avoid hard-coding the price between them all to be 1:1 because they aren't actually always 1:1 convertible. |
Beta Was this translation helpful? Give feedback.
-
|
An idea I've been exploring is to use CIP-159 to create an AMM where the liquidity pool is inside an account address. I've actually already sketched it out where it would be batcherless, MEV-resistant, and have dynamic fees for LPs that scale with demand. The basic idea would be to just use the constant-product formula for the two assets being traded, but it might be easy to extend this to n assets. I'm not sure it will work well for volatile trading pairs, but stablecoins are stable relative to each other so a concentrated liquidity pool could possibly work between several stablecoins at once. What do you think about this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Have you considered support for n-way swaps? In a world where many stablecoins coexist, this seems like it could be a powerful
tool for increasing the liquidity of stablecoins in the ecosystem. If a user is willing to accept the risk of holding
3 or more different stablecoins then they could benefit from providing liquidity in a way that allows others to swap between any of them.
I've been thinking about this in the context of an AMM-like interface for deploying liquidity onto cardano-swaps. By composing
two-way swaps we can get a uniswap v3 concentrated liquidity like experience with some added benefits like user specific
tick spacing. With n-way swaps, we can allow users to deploy liquidity to stablecoin "pools" that contain as many different stablecoins as they want and profit from the short term volatility between them.
Curious to hear your thoughts on n-way swaps!
Beta Was this translation helpful? Give feedback.
All reactions