Skip to content

Error maxAllowedToSend zero even with balance and no channels #557

@jvsena42

Description

@jvsena42
Screen_recording_20251223_124930.webm

Happens sometimes on fresh wallets
The error is probably coming from here

                _spendingUiState.update {
                    // Calculate the max available to send considering the current balance and LSP policy
                    it.copy(
                        maxAllowedToSend = min(
                            _transferValues.value.maxClientBalance.toLong(),
                            balanceAfterLspFee.toLong()
                        ),
                        isLoading = false,
                        balanceAfterFee = availableAmount.toLong()
                    )
                }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions