Skip to content

Commit e2374e8

Browse files
committed
Fix add-bond-invoice reply event
1 parent 6cfd7e6 commit e2374e8

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/add_bond_invoice.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Mostro sends a single `add-bond-invoice` message to the non-slashed counterparty
3939
]
4040
```
4141

42-
- `bond_payout_request.order.amount` is the counterparty's share of the slashed bond in sats. The reply's bolt11 principal must match this value exactly.
4342
- `bond_payout_request.slashed_at` is the Unix timestamp (seconds, UTC) at which the slash was recorded — see [Forfeit deadline](#forfeit-deadline).
4443

4544
The message carries no hardcoded human-readable deadline text; the client renders that warning locally in the user's own locale from `slashed_at` and the info-event window tag.
@@ -59,7 +58,7 @@ deadline = slashed_at + bond_payout_claim_window_days * 86_400
5958

6059
## Counterparty → Mostro (reply)
6160

62-
The counterparty replies with a Gift wrap Nostr event whose rumor content carries the bolt11 inside the standard `payment_request` 3-tuple. The third element is `null` because the invoice carries its own amount:
61+
The counterparty replies with a Gift wrap Nostr event whose rumor content carries the bolt11 inside the standard `payment_request` array. The invoice carries its own amount, so the array has two elements (per [Payment Request Array Structure](./overview.md#payment-request-array-structure)):
6362

6463
```json
6564
[
@@ -71,8 +70,7 @@ The counterparty replies with a Gift wrap Nostr event whose rumor content carrie
7170
"payload": {
7271
"payment_request": [
7372
null,
74-
"lnbcrt5u1pj59wmepp5...",
75-
null
73+
"lnbcrt5u1pj59wmepp5..."
7674
]
7775
}
7876
}
@@ -81,11 +79,11 @@ The counterparty replies with a Gift wrap Nostr event whose rumor content carrie
8179
]
8280
```
8381

84-
The reply is signed with the **trade key** of the counterparty sidethe side that was *not* slashed exactly as in any other order-scoped action; see [Keys management](./key_management.md).
82+
The reply is signed with the **trade key** of the counterparty side, the side that was *not* slashed, exactly as in any other order-scoped action; see [Keys management](./key_management.md).
8583

8684
## Recipient resolution
8785

88-
The recipient of the request DM is the non-slashed counterparty of the trade, derived from the order's `buyer_pubkey` / `seller_pubkey` and the side the solver flagged in [`bond_resolution`](./admin_settle_order.md#bond-resolution-payload):
86+
The recipient of the request message is the non-slashed counterparty of the trade, derived from the order's `buyer_pubkey` / `seller_pubkey` and the side the solver flagged in [`bond_resolution`](./admin_settle_order.md#bond-resolution-payload):
8987

9088
| Order kind | Solver flag | Bond on … | Recipient |
9189
|------------|----------------------------|-----------|------------------|

0 commit comments

Comments
 (0)