Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

fix OwnerBalance calculation #89

@NiloCK

Description

@NiloCK

complete this todo in StateChannelWallet

  async getOwnerBalance(): Promise<number> {
    const walletBalance = await this.getBalance();
    // todo: subtract also the pending HTLCs that target the interface
    return walletBalance - (await this.getIntermediaryBalance());
  }

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