Skip to content

Commit

Permalink
Apply "Fix inbound_liquidity_msats" changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Sep 19, 2024
1 parent bd1d7f5 commit 97f4107
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bloc/account/account_state_assembler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ AccountState? assembleAccountState(
maxPaymentAmountSat: maxPaymentAmountSat,
maxChanReserveSat: (nodeState.channelsBalanceMsat.toInt() - nodeState.maxPayableMsat.toInt()) ~/ 1000,
connectedPeers: nodeState.connectedPeers,
maxInboundLiquiditySat: nodeState.inboundLiquidityMsats ~/ 1000,
maxInboundLiquiditySat: nodeState.totalInboundLiquidityMsats ~/ 1000,
payments: payments.map((e) => PaymentMinutiae.fromPayment(e, texts)).toList(),
paymentFilters: paymentFilters,
connectionStatus: ConnectionStatus.CONNECTED,
Expand Down
3 changes: 2 additions & 1 deletion test/mock/breez_bridge_mock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ class BreezSDKMock extends Mock implements BreezSDK {
maxSinglePaymentAmountMsat: 0,
maxChanReserveMsats: 0,
connectedPeers: [],
inboundLiquidityMsats: 0,
totalInboundLiquidityMsats: 0,
maxReceivableSinglePaymentAmountMsat: 0,
pendingOnchainBalanceMsat: 0,
);

Expand Down

0 comments on commit 97f4107

Please sign in to comment.