Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
available{Balance,UTxO}
accessor functions to UTxOSelection
.
The "available balance" is simply the sum of the selected and leftover balances. It predicts what the selected balance would be if every single UTxO were selected. Similarly, the "available UTxO set" is the union of the selected and leftover UTxO sets. It predicts what the selected UTxO set would be if every single UTxO were selected. The available balance and the available UTxO set both remain constant over applications of `select` and `selectMany`. This commit adds tests to verify that this is the case.
- Loading branch information
1 parent
ed1c8b8
commit 1e42ed0
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters