diff --git a/app/src/api/loop.ts b/app/src/api/loop.ts index a10f360cb..aab458633 100644 --- a/app/src/api/loop.ts +++ b/app/src/api/loop.ts @@ -57,10 +57,12 @@ class LoopApi extends BaseApi { async getLoopInQuote( amount: Big, confTarget?: number, + lastHop?: string, ): Promise { const req = new LOOP.QuoteRequest(); req.setAmt(amount.toString()); if (confTarget) req.setConfTarget(confTarget); + if (lastHop) req.setLoopInLastHop(b64(lastHop)); const res = await this._grpc.request(SwapClient.GetLoopInQuote, req, this._meta); return res.toObject(); } diff --git a/app/src/store/views/buildSwapView.ts b/app/src/store/views/buildSwapView.ts index 1ca7d15f5..a0d0d6ee2 100644 --- a/app/src/store/views/buildSwapView.ts +++ b/app/src/store/views/buildSwapView.ts @@ -426,6 +426,7 @@ class BuildSwapView { const inQuote = await this._store.api.loop.getLoopInQuote( amount, this.confTarget, + this.loopInLastHop, ); quote = { swapFee: Big(inQuote.swapFeeSat), diff --git a/docs/release-notes/release-notes-0.14.1.md b/docs/release-notes/release-notes-0.14.1.md index da57db1e5..667714cac 100644 --- a/docs/release-notes/release-notes-0.14.1.md +++ b/docs/release-notes/release-notes-0.14.1.md @@ -16,6 +16,10 @@ ### Bug Fixes +* [Add `lastHop` parameter for Loop In + quotes](https://github.com/lightninglabs/lightning-terminal/pull/920). + Fixes fee estimation bug when using Loop In for a specific channel. + ### Functional Changes/Additions ### Technical and Architectural Updates @@ -36,7 +40,7 @@ ### Pool -### Faraday +### Faradayaa * The integrated `faraday` instance was [updated](https://github.com/lightninglabs/lightning-terminal/pull/952) to @@ -55,5 +59,6 @@ * Elle Mouton * jiangmencity * Oliver Gugger +* Rachel Fish * Tristav -* zhoufanjin \ No newline at end of file +* zhoufanjin