0060 XLS-60d: DefaultAutoBridge #175
Replies: 5 comments 3 replies
-
Certainly would be helpful when no direct market is available. How do you see this working if both direct and XRP-bridged markets exist? |
Beta Was this translation helpful? Give feedback.
-
I'm stunned this doesn't happen already. Autobridging should cause AAA->XRP->BBB to be considered any time the AAA->BBB order book is used. |
Beta Was this translation helpful? Give feedback.
-
My statement above is incorrect. Autobridging only affects offer crossing, not payments. XRP liquidity is used for payments through pathfinding, and the patfinding engine preferentially looks for liquidity through XRP. (It can't always check every possible asset in complex payment cases because there may be too many.) I'm curious if there's a need for this change though. My expectation would be that anyone making cross-currency payments is using pathfinding and not just hardcoding one particular order book. Are there a lot of people who just pick an order book for their payment transactions? And, if so, is the fact that they're not getting liquidity through XRP really the biggest of their problems? |
Beta Was this translation helpful? Give feedback.
-
hello using the "payment" transaction
but not so with two AMM pools with same couples all simple swaps work correctly in both systems |
Beta Was this translation helpful? Give feedback.
-
Abstract
Currently, if the Path field is not specified in an IOU-IOU Payment transaction, only direct pairs of two currencies are used internally. This proposal would change this default behavior to use IOU-XRP-IOU as well as OfferCreate transaction's.
Changes
If the Path field is unspecified in the IOU_A->IOU_B Payment transaction, the path through IOU_A/XRP and IOU_B/XRP is used in addition to the IOU_A/IOU_B path.
If existing transaction types or future transaction types to be implemented are similarly cross-currency transactions, it will be possible to use bridge paths in addition to direct paths by default.
Technical
Add an additional path with XRP as the intermediate between two currencies to in flow() method in Flow.cpp when
defaultPaths
=true
.Use XRP-mediated paths to the paths under the following conditions:
Payment transaction
If the Path field is not specified and the SendMax field is set, the transaction will use the XRP-mediated path.
No impact if the NoRippleDirect flag is set.
OfferCreate transaction
No impact as Path is always set.
CheckCash transaction
(using flow())
No impact as it only processes when the fields corresponding to Amount and SendMax are the same.
If future amendments allow cross-currency checks, composite paths will be available.
XChainBridge transaction
(using flow())
No impact as SendMax is processed as null.
PathFind command
(using flow())
No impact as DefaultPaths is false.
Beta Was this translation helpful? Give feedback.
All reactions