Skip to content

Commit 08f59cd

Browse files
committed
Add XLS-60d: 0060 XLS-60d: DefaultAutoBridge
1 parent aadfcfb commit 08f59cd

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<pre>
2+
XLS: XLS-60d
3+
Title: 0060 XLS-60d: DefaultAutoBridge
4+
Author: tequ (tequdev)
5+
Created: 2024-02-05
6+
Status: Stagnant
7+
Category: Amendment
8+
</pre>
9+
10+
## Abstract
11+
12+
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.
13+
14+
## Changes
15+
16+
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.
17+
18+
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.
19+
20+
### Technical
21+
22+
Add an additional path with XRP as the intermediate between two currencies to in flow() method in Flow.cpp when `defaultPaths`=`true`.
23+
24+
Use XRP-mediated paths to the paths under the following conditions:
25+
26+
- Path is not specified
27+
- SendMax is set.
28+
- The issuer and currency of Amount and SendMax are different.
29+
30+
### Payment transaction
31+
32+
If the Path field is not specified and the SendMax field is set, the transaction will use the XRP-mediated path.
33+
34+
No impact if the NoRippleDirect flag is set.
35+
36+
### OfferCreate transaction
37+
38+
No impact as Path is always set.
39+
40+
### CheckCash transaction
41+
42+
(using flow())
43+
44+
No impact as it only processes when the fields corresponding to Amount and SendMax are the same.
45+
46+
_If future amendments allow cross-currency checks, composite paths will be available._
47+
48+
### XChainBridge transaction
49+
50+
(using flow())
51+
52+
No impact as SendMax is processed as null.
53+
54+
### PathFind command
55+
56+
(using flow())
57+
No impact as DefaultPaths is false.

0 commit comments

Comments
 (0)