diff --git a/BreezSDK.podspec b/BreezSDK.podspec index 04e8c6f..cb33b95 100644 --- a/BreezSDK.podspec +++ b/BreezSDK.podspec @@ -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" diff --git a/Package.swift b/Package.swift index 17e5d22..891823b 100644 --- a/Package.swift +++ b/Package.swift @@ -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"]), ] ) diff --git a/Sources/BreezSDK/Task/LnurlPayInfo.swift b/Sources/BreezSDK/Task/LnurlPayInfo.swift index c7818c7..ae44224 100644 --- a/Sources/BreezSDK/Task/LnurlPayInfo.swift +++ b/Sources/BreezSDK/Task/LnurlPayInfo.swift @@ -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 } diff --git a/breez_sdkFFI.podspec b/breez_sdkFFI.podspec index 4981dd8..910e215 100644 --- a/breez_sdkFFI.podspec +++ b/breez_sdkFFI.podspec @@ -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"