Skip to content

Commit 462ffcf

Browse files
committed
feat: swap lifi sends txId like thorswap for history status
1 parent 9253ff0 commit 462ffcf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/chilled-walls-vanish.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ledgerhq/live-common": minor
3+
---
4+
5+
feat: swap lifi sends txId like thorswap for history status

libs/ledger-live-common/src/exchange/swap/updateAccountSwapStatus.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ const maybeGetUpdatedSwapHistory = async (
3939
} else {
4040
// Collect all others swaps that need status update via getMultipleStatus
4141
const transactionId =
42-
provider === "thorswap"
42+
provider === "thorswap" || provider === "lifi"
4343
? operations?.find(o => o.id.includes(operationId))?.hash
4444
: undefined;
4545
pendingSwapIds.push({
4646
provider,
4747
swapId,
4848
transactionId,
49-
...(provider === "thorswap" && { operationId }),
49+
...((provider === "thorswap" || provider === "lifi") && { operationId }),
5050
});
5151
}
5252
}

0 commit comments

Comments
 (0)