HomePhabricator

[Cashtab] Calculate max send amount in appropriate way using updated ecash…

Description

[Cashtab] Calculate max send amount in appropriate way using updated ecash-coinselect

Summary:
We are using a legacy function to calculate the fee here that is underestimating the actual max send amount.

Using an updated helper function from ecash-coinselect, calculate the max send amount appropriately (including consideration for a cashtab msg, if present).

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

Differential Revision: https://reviews.bitcoinabc.org/D15553

Details

Provenance
bytesofmanAuthored on Feb 26 2024, 18:13
bytesofmanPushed on Feb 27 2024, 20:47
Reviewer
Restricted Project
Differential Revision
D15553: [Cashtab] Calculate max send amount in appropriate way using updated ecash-coinselect
Parents
rABCf783b19ddc26: [Cashtab] Standardize and improve SendXec.test.js
Branches
Unknown
Tags
Unknown