loopd: quoting for static address loop-ins

This commit is contained in:
Slyghtning 2024-06-06 15:30:50 +02:00
parent 549c33e08e
commit 82b95798ab
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
7 changed files with 105 additions and 20 deletions

View file

@ -288,6 +288,12 @@ type LoopInQuoteRequest struct {
// initiated the swap (loop CLI, autolooper, LiT UI and so on) and is
// appended to the user agent string.
Initiator string
// The number of static address deposits the client wants to quote for.
// If the number of deposits exceeds one the server will apply a
// per-input service fee. This is to cover for the increased on-chain
// fee the server has to pay when the sweeping transaction is broadcast.
NumDeposits uint32
}
// LoopInQuote contains estimates for the fees making up the total swap cost