Skip to content

Commit

Permalink
Update Breez SDK Swift bindings to version 0.6.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
runner authored and runner committed Sep 17, 2024
1 parent e30c617 commit 671ae2b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BreezSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "BreezSDK"
spec.version = "0.5.3-rc1"
spec.version = "0.6.0-rc1"
spec.license = { :type => "MIT" }
spec.summary = "Swift bindings to the Breez SDK"
spec.homepage = "https://breez.technology"
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let package = Package(
.library(name: "BreezSDK", targets: ["breez_sdkFFI", "BreezSDK"]),
],
targets: [
.binaryTarget(name: "breez_sdkFFI", url: "https://github.com/breez/breez-sdk-swift/releases/download/0.5.3-rc1/breez_sdkFFI.xcframework.zip", checksum: "6b3a7065d1c9e4044d5de983bd5907abb14f125121e4b1846d7bcd60e0b86460"),
.binaryTarget(name: "breez_sdkFFI", url: "https://github.com/breez/breez-sdk-swift/releases/download/0.6.0-rc1/breez_sdkFFI.xcframework.zip", checksum: "59b488ce166ea997d7568628e822944a9d0fa87b17786ccdbb4df2443b7aa6e8"),
.target(name: "BreezSDK", dependencies: ["breez_sdkFFI"]),
]
)
4 changes: 2 additions & 2 deletions Sources/BreezSDK/Task/LnurlPayInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ class LnurlPayInfoTask : LnurlPayTask {
UInt64(Double(feeLimitMsat) / proportionalPercent)
) : nodeInfo.maxReceivableMsat
// Calculate the maximum sendable amount (in millisatoshis)
let maxSendable = max(nodeInfo.inboundLiquidityMsats, maxReceivableMsatFeeLimit)
let maxSendable = max(nodeInfo.maxReceivableSinglePaymentAmountMsat, maxReceivableMsatFeeLimit)
// Get the minimum sendable amount (in millisatoshis), can not be less than 1 or more than maxSendable
let minSendable: UInt64 = nodeInfo.inboundLiquidityMsats < UInt64(1000) ? ofp.minMsat : UInt64(1000)
let minSendable: UInt64 = nodeInfo.maxReceivableSinglePaymentAmountMsat < UInt64(1000) ? ofp.minMsat : UInt64(1000)
if minSendable > maxSendable {
throw InvalidMinSendable.largerThanMaxSendable
}
Expand Down
2 changes: 1 addition & 1 deletion breez_sdkFFI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "breez_sdkFFI"
spec.version = "0.5.3-rc1"
spec.version = "0.6.0-rc1"
spec.license = { :type => "MIT" }
spec.summary = "Low-level bindings to the Breez SDK Rust API"
spec.homepage = "https://breez.technology"
Expand Down

0 comments on commit 671ae2b

Please sign in to comment.