build(deps): bump github.com/BoltzExchange/boltz-client/v2 from 2.8.2 to 2.8.4 (#1648)

* build(deps): bump github.com/BoltzExchange/boltz-client/v2

Bumps [github.com/BoltzExchange/boltz-client/v2](https://github.com/BoltzExchange/boltz-client) from 2.8.2 to 2.8.4.
- [Release notes](https://github.com/BoltzExchange/boltz-client/releases)
- [Changelog](https://github.com/BoltzExchange/boltz-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/BoltzExchange/boltz-client/compare/v2.8.2...v2.8.4)

---
updated-dependencies:
- dependency-name: github.com/BoltzExchange/boltz-client/v2
  dependency-version: 2.8.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: update swaps to use specific boltz fee type

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
This commit is contained in:
dependabot[bot] 2025-08-27 23:28:32 +07:00 committed by GitHub
parent aae53d603f
commit 49c1500011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 11 deletions

4
go.mod
View file

@ -1,6 +1,6 @@
module github.com/getAlby/hub
go 1.24.2
go 1.24.6
require (
github.com/adrg/xdg v0.5.3
@ -246,7 +246,7 @@ require (
)
require (
github.com/BoltzExchange/boltz-client/v2 v2.8.2
github.com/BoltzExchange/boltz-client/v2 v2.8.4
github.com/btcsuite/btcd/btcec/v2 v2.3.5
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
github.com/decred/dcrd/crypto/blake256 v1.1.0 // indirect

4
go.sum
View file

@ -6,8 +6,8 @@ filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0=
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
github.com/BoltzExchange/boltz-client/v2 v2.8.2 h1:53KbpfYRDVhZlRak5uPOMCLcGoN0tYJFwJD5VDY4HNg=
github.com/BoltzExchange/boltz-client/v2 v2.8.2/go.mod h1:FD1M2EMumU75drdvd++oJr2/kRsfhxppPjZFwf9ahf8=
github.com/BoltzExchange/boltz-client/v2 v2.8.4 h1:ztF8SPgGWotYZKcsLCZW4VDG0q1Z1GGrOuZSFozGYNo=
github.com/BoltzExchange/boltz-client/v2 v2.8.4/go.mod h1:08n8h3ZTzPmgvXhALBT2HTDjUqhkH4bopeW7dVDkt/A=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e h1:ahyvB3q25YnZWly5Gq1ekg6jcmWaGj/vG/MhF4aisoc=
github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e/go.mod h1:kGUqhHd//musdITWjFvNTHn90WG9bMLBEPQZ17Cmlpw=

View file

@ -711,6 +711,7 @@ func (svc *swapsService) RefundSwap(swapId, address string) error {
return err
}
fastestFee := float64(feeRates.FastestFee)
refundTransaction, _, err := boltz.ConstructTransaction(
network,
boltz.CurrencyBtc,
@ -727,7 +728,9 @@ func (svc *swapsService) RefundSwap(swapId, address string) error {
Cooperative: true,
},
},
float64(feeRates.FastestFee),
boltz.Fee{
SatsPerVbyte: &fastestFee,
},
svc.boltzApi,
)
if err != nil {
@ -1201,7 +1204,7 @@ func (svc *swapsService) startSwapOutListener(swap *db.Swap) {
},
}
var satPerVbyte float64
var boltzFee boltz.Fee
if swap.ReceiveAmount != 0 {
lockupAmount, err := lockupTransaction.VoutValue(vout)
if err != nil {
@ -1211,9 +1214,7 @@ func (svc *swapsService) startSwapOutListener(swap *db.Swap) {
return
}
fee := lockupAmount - swap.ReceiveAmount
// TODO: Remove this once construct transaction is fixed
claimTransaction, _, _ := boltz.ConstructTransaction(network, boltz.CurrencyBtc, outputs, 0, svc.boltzApi)
satPerVbyte = float64(fee) / float64(claimTransaction.VSize())
boltzFee.Sats = &fee
} else {
var feeRates *FeeRates
feeRates, err = svc.getFeeRates()
@ -1223,11 +1224,12 @@ func (svc *swapsService) startSwapOutListener(swap *db.Swap) {
}).Error("Failed to fetch fee rate to create claim transaction")
return
}
satPerVbyte = float64(feeRates.FastestFee)
fastestFee := float64(feeRates.FastestFee)
boltzFee.SatsPerVbyte = &fastestFee
}
var claimTransaction boltz.Transaction
claimTransaction, _, err = boltz.ConstructTransaction(network, boltz.CurrencyBtc, outputs, satPerVbyte, svc.boltzApi)
claimTransaction, _, err = boltz.ConstructTransaction(network, boltz.CurrencyBtc, outputs, boltzFee, svc.boltzApi)
if err != nil {
logger.Logger.WithError(err).WithFields(logrus.Fields{
"swapId": swap.SwapId,