diff --git a/lib/bloc/account/account_state_assembler.dart b/lib/bloc/account/account_state_assembler.dart index 1235b523..ebdf0635 100644 --- a/lib/bloc/account/account_state_assembler.dart +++ b/lib/bloc/account/account_state_assembler.dart @@ -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, diff --git a/test/mock/breez_bridge_mock.dart b/test/mock/breez_bridge_mock.dart index d4078491..4390e214 100644 --- a/test/mock/breez_bridge_mock.dart +++ b/test/mock/breez_bridge_mock.dart @@ -51,7 +51,8 @@ class BreezSDKMock extends Mock implements BreezSDK { maxSinglePaymentAmountMsat: 0, maxChanReserveMsats: 0, connectedPeers: [], - inboundLiquidityMsats: 0, + totalInboundLiquidityMsats: 0, + maxReceivableSinglePaymentAmountMsat: 0, pendingOnchainBalanceMsat: 0, );