This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CBR-462] Fix fee estimation when transaction's amount matches accoun…
…t's balance When calling ``` reduceChangeOutputs :: forall dom. CoinSelDom dom => Fee dom -> [Value dom] -> ([Value dom], Fee dom) ``` If the `[Value dom]` is a singleton array with a zero coin, we're going to end up dividing by zero and silently obliterating fee as we do it. This happens when making a transaction with no change, i.e., when the transaction's amount matches exactly the source account's balance. This commit provides a fix handling this special edge-case.
- Loading branch information