@arkade-os/swap 0.1.0-rc.5 → 0.1.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/protocol.cjs +4 -0
- package/dist/protocol.js +4 -0
- package/package.json +2 -2
package/dist/protocol.cjs
CHANGED
|
@@ -4545,6 +4545,9 @@ function solverLightningRail(deps) {
|
|
|
4545
4545
|
amount: facts.amountSats,
|
|
4546
4546
|
fee: swap.fundAmount - facts.amountSats,
|
|
4547
4547
|
total: swap.fundAmount,
|
|
4548
|
+
// The invoice can lapse before the quote does; the earlier bound
|
|
4549
|
+
// is the one a holder must observe.
|
|
4550
|
+
validUntil: Math.min(swap.quote.valid_until, facts.expiresAt),
|
|
4548
4551
|
meta: {
|
|
4549
4552
|
rfqId: swap.rfqId,
|
|
4550
4553
|
validUntil: swap.quote.valid_until,
|
|
@@ -4642,6 +4645,7 @@ function solverOnchainRail(deps) {
|
|
|
4642
4645
|
amount,
|
|
4643
4646
|
fee: swap.fundAmount - amount,
|
|
4644
4647
|
total: swap.fundAmount,
|
|
4648
|
+
validUntil: swap.quote.valid_until,
|
|
4645
4649
|
meta: {
|
|
4646
4650
|
rfqId: swap.rfqId,
|
|
4647
4651
|
validUntil: swap.quote.valid_until,
|
package/dist/protocol.js
CHANGED
|
@@ -476,6 +476,9 @@ function solverLightningRail(deps) {
|
|
|
476
476
|
amount: facts.amountSats,
|
|
477
477
|
fee: swap.fundAmount - facts.amountSats,
|
|
478
478
|
total: swap.fundAmount,
|
|
479
|
+
// The invoice can lapse before the quote does; the earlier bound
|
|
480
|
+
// is the one a holder must observe.
|
|
481
|
+
validUntil: Math.min(swap.quote.valid_until, facts.expiresAt),
|
|
479
482
|
meta: {
|
|
480
483
|
rfqId: swap.rfqId,
|
|
481
484
|
validUntil: swap.quote.valid_until,
|
|
@@ -580,6 +583,7 @@ function solverOnchainRail(deps) {
|
|
|
580
583
|
amount,
|
|
581
584
|
fee: swap.fundAmount - amount,
|
|
582
585
|
total: swap.fundAmount,
|
|
586
|
+
validUntil: swap.quote.valid_until,
|
|
583
587
|
meta: {
|
|
584
588
|
rfqId: swap.rfqId,
|
|
585
589
|
validUntil: swap.quote.valid_until,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkade-os/swap",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Client-side Arkade Intents asset swaps: state a route, get an outcome. Pay a bolt11 invoice, receive over Lightning, exchange assets, or withdraw onchain.",
|
|
6
6
|
"repository": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@scure/base": "2.0.0",
|
|
105
105
|
"@scure/btc-signer": "2.0.1",
|
|
106
106
|
"light-bolt11-decoder": "3.2.0",
|
|
107
|
-
"@arkade-os/sdk": "0.5.0-rc.
|
|
107
|
+
"@arkade-os/sdk": "0.5.0-rc.6"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"nostr-tools": "^2.12.0"
|