mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-24 11:36:21 +00:00
bump breez version and update code to match
This commit is contained in:
parent
9b5aa9154c
commit
26a3ebdde0
2 changed files with 5 additions and 9 deletions
|
@ -32,10 +32,8 @@ abstract class LightningViewModelBase with Store {
|
||||||
int inboundLiquidity = nodeState.inboundLiquidityMsats ~/ 1000;
|
int inboundLiquidity = nodeState.inboundLiquidityMsats ~/ 1000;
|
||||||
final openingFees = await sdk.openChannelFee(
|
final openingFees = await sdk.openChannelFee(
|
||||||
req: BZG.OpenChannelFeeRequest(amountMsat: inboundLiquidity + 1));
|
req: BZG.OpenChannelFeeRequest(amountMsat: inboundLiquidity + 1));
|
||||||
if (openingFees.usedFeeParams != null) {
|
feePercent = (openingFees.feeParams.proportional * 100) / 1000000;
|
||||||
feePercent = (openingFees.usedFeeParams!.proportional * 100) / 1000000;
|
fee = openingFees.feeParams.minMsat ~/ 1000;
|
||||||
fee = openingFees.usedFeeParams!.minMsat ~/ 1000;
|
|
||||||
}
|
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
|
|
||||||
return ReceiveOnchainResult(
|
return ReceiveOnchainResult(
|
||||||
|
@ -72,10 +70,8 @@ abstract class LightningViewModelBase with Store {
|
||||||
final openingFees = await sdk.openChannelFee(
|
final openingFees = await sdk.openChannelFee(
|
||||||
req: BZG.OpenChannelFeeRequest(amountMsat: inboundLiquidity + 1));
|
req: BZG.OpenChannelFeeRequest(amountMsat: inboundLiquidity + 1));
|
||||||
|
|
||||||
if (openingFees.usedFeeParams != null) {
|
feePercent = (openingFees.feeParams.proportional * 100) / 1000000;
|
||||||
feePercent = (openingFees.usedFeeParams!.proportional * 100) / 1000000;
|
minFee = openingFees.feeParams.minMsat ~/ 1000;
|
||||||
minFee = openingFees.usedFeeParams!.minMsat ~/ 1000;
|
|
||||||
}
|
|
||||||
balance = nodeState.channelsBalanceMsat ~/ 1000;
|
balance = nodeState.channelsBalanceMsat ~/ 1000;
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
return InvoiceSoftLimitsResult(
|
return InvoiceSoftLimitsResult(
|
||||||
|
|
|
@ -115,7 +115,7 @@ dependencies:
|
||||||
breez_sdk:
|
breez_sdk:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/breez/breez-sdk-flutter.git
|
url: https://github.com/breez/breez-sdk-flutter.git
|
||||||
ref: v0.2.14
|
ref: v0.3.8
|
||||||
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|
Loading…
Reference in a new issue