rippled icon indicating copy to clipboard operation
rippled copied to clipboard

Add AMM liquidity pool support

Open yxxyun opened this issue 4 years ago • 4 comments

Summary

Add AMM liquidity pool to enchance XRPL DEX

Motivation

It's hard to provide liquidity on current XRPL DEX, and some liquidity bots generate a lot noise offercreate and offercancel txs, this can be solved by AMM LP.

Solution

Add AMM liquidity pool object can be deposit and withdraw, and update offercreate and path payment to try both liquidity pools and the order books.

Paths Not Taken

Implement account based AMM LP via Hooks( Smart contract), but this can't trade against with offercreate and path payment.

yxxyun avatar Aug 20 '21 03:08 yxxyun

This has been suggested many times over the years by different developers, but it seems like Ripple doesn't want to implement such thing, I don't know why.

wojake avatar Aug 21 '21 09:08 wojake

Good point I hope Ripple will do something to address a glaring shortfall? Peace Out Unity through Prosperity! LFBF TYHP

StevieSimple avatar Aug 22 '21 20:08 StevieSimple

For a record : stellar AMM proposal https://github.com/stellar/stellar-protocol/blob/master/core/cap-0038.md

yxxyun avatar Aug 29 '21 07:08 yxxyun

@yxxyun: The C++ team at Ripple is working on an AMM proposal, which is something we've stated before.


With that said, let me take the opportunity to address something else. @firefly3582 wrote

This has been suggested many times over the years by different developers, but it seems like Ripple doesn't want to implement such thing, I don't know why.

I don't quite understand why it matters what Ripple does and doesn't want to implement. Anyone can propose changes and contribute code to effectuate those changes.

So, perhaps instead of waiting for Ripple to build X, whatever that X might be, how about writing up a spec and then implementing it instead?

nbougalis avatar Aug 31 '21 07:08 nbougalis

AMM implementation is proposed here.

https://github.com/XRPLF/rippled/pull/4294

tequdev avatar Sep 24 '22 02:09 tequdev