Skip to content

loop-in: quote does not use last hop pubkey #904

@djkazic

Description

@djkazic

Expected behavior / Actual behavior
A loop cli quote for my WOS loop in of 350k sat @ 6 conf_target is giving 177 sats for service fee, while terminal is giving 5 sats. Looks like the discrepancy is that last hop pubkey isn't being set for the quote, which in turn means the subsequent loopIn will likely fail if that node is more expensive than a quote that doesn't specify a node to loop in to.

Here we would want to use loopInLastHop:

const inQuote = await this._store.api.loop.getLoopInQuote(
amount,
this.confTarget,

Also would want a new param here for passing in that hop if it's specified:

async getLoopInQuote(

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions