0030 XLS 30d: Automated Market Maker on XRPL #78
Replies: 14 comments 9 replies
-
|
That was great to read! Granted, still digesting it. A few questions, which maybe outlined above and I just need to reread but.
|
Beta Was this translation helpful? Give feedback.
-
Correct. The core concept of an LP token is that it entitles you to a proportional share of both pools. So, if you own 1% of the LP tokens, you can redeem them for 1% of each of the two pools.
No. Instead of dividends two things happen:
The idea is that this will drive up the value of the LP tokens because their value goes up with the value of the pools going up and goes up as the number of outstanding tokens goes down.
Well, the incentive not to "rug" one side of the AMM is that you will take a huge loss if you do so unless the AMM is way out of balance to begin with. The more you force the AMM out of balance, the more it costs to push it further out of balance in that same direction,. The two reasons to make withdrawals from both sides essentially free is:
Allowing single-sided deposit and withdrawal is really just a convenience. You could achieve the same result by doing a half swap followed by a dual-sided deposit or a dual-sided withdraw followed by a half swap. The idea is just to make that easier.
It should not be possible to harm the pool this way. If you push the pool into balance, well, someone had to do it. If you push the pool out of balance, you will suffer a loss because to do that you have to take the asset it overvalues or give the asset it undervalues. |
Beta Was this translation helpful? Give feedback.
-
|
I've looked around a bit and can't find the "why" behind this proposal. How does this benefit the XRPL ecosystem? Although it's nice that retail holders will be able to earn some yield with their holdings, I doubt that's the "vision" behind this proposal. Is this an effort so supercharge XRP's liquidity? Or are there inherent flaws in the LOB DEX that the AMM proposal resolves/improves? I'm also interested in understanding a bit more of the implications for assets that already have an issuer fee such as BitStamp USD (.2%). When we're talking "order of operations" would the issuer fee be applied before the AMM fees are taken out? |
Beta Was this translation helpful? Give feedback.
-
|
@ZerpCraft I plan to write up a fairly lengthy explanation of why I think this proposal is a huge benefit to the XRPL ecosystem when we get closer to having a complete implementation. But I think the short answer is that there are two reasons: One is to improve liquidity on the XRPL by ensuring that it is always possible to exchange between popular assets. The other is to allow people who hold volatile digital assets to earn a return from the volatility rather than it being a cost. The way issuer fees work on XRPL is fairly consistent in all existing operations and I don't see any reason to change that. The account sending the asset pays the issuer fee as it pays out the asset. So if I want to deliver 100 USD/Bitstamp to an AMM, it will cost me slightly more than 100 USD/Bitstamp to do it. Issued assets work like this: |
Beta Was this translation helpful? Give feedback.
-
|
Would you consider adding of a feature similar to Authorized Trust Lines that would authorize liquidity providers for private pools? For example, if the authorized trust lines for the AMM pools and authorized LPs are not the same set. |
Beta Was this translation helpful? Give feedback.
-
|
Please let me know if I'm misunderstanding, but the equation in section 4.1 for price decay seems slightly off. I think it should be something like |
Beta Was this translation helpful? Give feedback.
-
|
@aanchal4 Couple of random thoughts:
|
Beta Was this translation helpful? Give feedback.
-
|
I notice that equation 10 has an error, duplicated here: I'm not familiar with the markup syntax in this area, but I think the problem is the underscore I think removing those extra |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
@JoelKatz @WietseWind @ximinez Good reads on where legislation might be headed, especially considering DeFi. US Treasury Illicit Finance Risk Assessment of Executive Order 14067 Ensuring Responsible Development of Digital Assets - https://www.federalregister.gov/documents/2022/03/14/2022-05471/ensuring-responsible-development-of-digital-assets |
Beta Was this translation helpful? Give feedback.
-
|
@JoelKatz Can't people already buy and sell things on the XRP Ledger by using order books? This means that they have to find someone who wants to sell the thing they want to buy, and someone who wants to buy the thing they want to sell. This can be hard, and it can take a long time. Is that the main reason you developed AMM? It just makes it easier to buy and sell things on the XRP Ledger while enhancing liquidity and giving the XRP owner some transactional income? It can be easier to find someone to buy or sell something from. I'm thinking there are no asset value requirements for using an AMM. Trading on an AMM does not have to include a digital asset nor does it have to be a Company/organization. Here are some of the people who might use an AMM: Here are some of the assets that can be traded on an AMM: AMMs can be used to trade any asset that can be represented on a blockchain. This makes them a very versatile tool for buying, selling, and trading assets. It can include gold, paintings, cash, or any other asset that can be represented on a blockchain. AMMs are not specifically aimed at companies who take part in the smart contracts market, but they can be used by companies in this market. |
Beta Was this translation helpful? Give feedback.
-
|
The security audit report for this AMM is now available. |
Beta Was this translation helpful? Give feedback.
-
|
Refer to PR #125 |
Beta Was this translation helpful? Give feedback.
-
Omg this looks amazing :D |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
An updated version of this spec can be found here: XLS-30: Automated Market Maker.
The earlier version can be found by looking at the edit history.
Beta Was this translation helpful? Give feedback.
All reactions