Skip to content

Commit 88a4e7d

Browse files
docs: fixes #3382 (#3416)
* docs: fixes #3382 * docs: more updates
1 parent 0a124a6 commit 88a4e7d

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

packages/documentation/astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ export default defineConfig({
9393
label: 'Accounting',
9494
link: '/overview/concepts/accounting'
9595
},
96+
{
97+
label: 'Clearing and settlement',
98+
link: '/overview/concepts/clearing-settlement'
99+
},
96100
{
97101
label: 'Interledger',
98102
link: '/overview/concepts/interledger'

packages/documentation/src/components/PageSidebar.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Default from '@astrojs/starlight/components/PageSidebar.astro';
44
const removeOverview = [
55
'resources/glossary',
66
'overview/concepts/payment-pointers',
7+
'overview/concepts/clearing-settlement',
78
]
89
const { id, toc } = Astro.locals.starlightRoute;
910
const noOverview = removeOverview.includes(id);
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: Clearing and settlement
3+
---
4+
5+
## Clearing
6+
7+
When a payment is made over traditional banking rails, the money doesn’t move instantly. First, there are checks to confirm that the money exists and can be transferred. Clearing networks are responsible for exchanging messages between ASEs to facilitate these checks. This process is called clearing. When a payment successfully clears, it means the payer’s ASE has an obligation to the payee’s ASE.
8+
9+
The [Interledger Protocol (ILP)](/overview/concepts/interledger) is not a traditional clearing network, but does function in a similar way.
10+
11+
- ASEs that implement the protocol must become [peers](/integration/requirements/peers) to transact with one another. This is comparable to traditional banking, where ASEs must use the same clearing network. An ASE can't use Interledger to transact with another ASE unless they have both implemented the protocol and have peered with one another.
12+
- Peered ASEs exchange ILP packets, which are packets of value that contain transaction information. ILP packets are akin to the messages exchanged during the traditional clearing process.
13+
- The successful exchange of ILP packets between peers creates obligations between them that must be settled. The receipt of a fulfilled ILP packet is basically a conditional IOU—a promise to pay—that affects the financial accounting balances between the peers.
14+
15+
You can read more about clearing as it relates to ILP in the [Interledger developer docs](https://interledger.org/developers/rfcs/peering-clearing-settling/).
16+
17+
Conceptually, Rafiki sits at the clearing level, but isn't a clearing network. It's software that makes implementing the Interledger protocol faster and easier. Rafiki uses ILP to [track liquidity](/overview/concepts/accounting) between assets, payments, and peers. An ASE must still connect Rafiki to their existing backend system and internal ledger for authentication, fetching exchange rates, and managing liquidity itself. For example, if an incoming payment completes in Rafiki, the ASE’s backend must credit the recipient’s account on their own system, however that might look.
18+
19+
In any case, no movement of actual money has occurred yet.
20+
21+
## Settlement
22+
23+
In traditional banking, settlement is the fulfillment of an obligation between ASEs. It turns the promise of payment into a real payment by moving actual money. This occurs over a shared settlement network, such as Fedwire in the United States.
24+
25+
When a payer’s ASE settles with the payee’s ASE, there’s a high chance that the ASE isn’t physically handing over cash. There’s more likely to be an intermediary, like a reserve bank or central bank, that maintains accounts for both ASEs. The intermediary moves funds from one account to the other, crediting and debiting the accounts as necessary.
26+
27+
With Interledger, the concept of settlement is not that different. Each [peer](/integration/requirements/peers) must agree on a settlement system to use to fulfill their obligations with one another. However, ILP itself is not a settlement system. This means peers must have some other way to fulfill their obligations and exchange value. Examples can include using a real-time gross settlement system like Fedwire, an automated clearing house (ACH) network, a money transfer service, or some other payment channel. You can read more about settling as it relates to ILP in the [Interledger developer docs](https://interledger.org/developers/rfcs/settlement-engines/).
28+
29+
Rafiki is also not a settlement system. It [keeps track of liquidity](/overview/concepts/accounting) through the use of liquidity and settlement accounts. Liquidity accounts track deposit, withdrawal, and transfer amounts. Settlement accounts track the availability of funds, denominated in a single asset. A negative balance means funds are available. The closer a settlement account’s balance is to zero, the more likely it is that one peer needs to settle with the other over their agreed-upon settlement system.

0 commit comments

Comments
 (0)