Skip to content

Commit fae93ac

Browse files
mvadariTapanito
andauthored
Add XLS-60d: 0060 XLS-60d: DefaultAutoBridge (#348)
* Add XLS-60d: 0060 XLS-60d: DefaultAutoBridge * Update XLS-0060-default-autobridge/README.md * Update XLS-0060-default-autobridge/README.md --------- Co-authored-by: Vito Tumas <5780819+Tapanito@users.noreply.github.com>
1 parent 1ea4774 commit fae93ac

File tree

1 file changed

+58
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)