2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-11 13:11:12 +00:00

cmd/loop: bump rate maximum

Increase rate maximum multiplier to increase maximum fees when there is a large fee rate change
This commit is contained in:
Alex Bosworth 2020-03-13 14:03:20 -07:00 committed by GitHub
parent e5c5d49a30
commit 933f1b81d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ func getLimits(amt btcutil.Amount, quote *looprpc.QuoteResponse) *limits {
// Apply a multiplier to the estimated miner fee, to not get // Apply a multiplier to the estimated miner fee, to not get
// the swap canceled because fees increased in the mean time. // the swap canceled because fees increased in the mean time.
maxMinerFee: btcutil.Amount(quote.MinerFee) * 3, maxMinerFee: btcutil.Amount(quote.MinerFee) * 100,
maxSwapFee: btcutil.Amount(quote.SwapFee), maxSwapFee: btcutil.Amount(quote.SwapFee),
maxPrepayAmt: &maxPrepayAmt, maxPrepayAmt: &maxPrepayAmt,