Skip to content

Commit

Permalink
Update lib/core/src/Cardano/Wallet/Primitive/CoinSelection/MA/RoundRo…
Browse files Browse the repository at this point in the history
…bin.hs

Co-authored-by: Jonathan Knowles <jonathan.knowles@iohk.io>
  • Loading branch information
KtorZ and jonathanknowles committed Jan 19, 2021
1 parent 04570c6 commit 900e50c
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -286,10 +286,10 @@ performSelection minCoinValueFor costFor criteria
fmap (fmap fst . snd . TokenBundle.toFlatList)

-- | This function starts from an initial pre-selection as a way to evaluate
-- the cost of a final selection, and then call 'makeChange' repeatedly until
-- it succeeds. Between each call, it selects an extra Ada-only input to
-- inject additional Ada to construct change address. Eventually it returns
-- Just a final selection, or nothing if it runs out of Ada-only inputs.
-- the cost of a final selection, and then calls 'makeChange' repeatedly until
-- it succeeds. Between each call, it selects an extra ada-only input to
-- inject additional ada to construct change outputs. Eventually it returns
-- just a final selection, or nothing if it runs out of ada-only inputs.
makeChangeRepeatedly
:: SelectionResult [AssetId]
-> UTxOIndex
Expand Down

0 comments on commit 900e50c

Please sign in to comment.