Skip to content

Commit

Permalink
Correct the condition for payment exceed liquidity error
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Aug 10, 2023
1 parent bffcc9d commit d4d9667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bloc/account/account_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class AccountBloc extends Cubit<AccountState> with HydratedMixin {
(amount > accState.maxInboundLiquidity && amount <= channelMinimumFee)) {
throw PaymentBelowSetupFeesError(channelMinimumFee);
}
if (amount > accState.maxInboundLiquidity) {
if (channelMinimumFee == null && amount > accState.maxInboundLiquidity) {
throw PaymentExceedLiquidityError(accState.maxInboundLiquidity);
}
if (amount > accState.maxAllowedToReceive) {
Expand Down

0 comments on commit d4d9667

Please sign in to comment.