File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ pickTokensToDeposit leftoverUTxO depositTokens
99
99
| Map. null depositTokens = mempty
100
100
| otherwise = UTxO. fromList picked
101
101
where
102
- -- Build list of (TxIn, new TxOut) where new TxOut has original lovelace + exact required quantities of matched assets.
102
+ -- Build list of (TxIn, new TxOut) where new TxOut has exact required quantities of matched assets.
103
103
picked :: [(TxIn , TxOut CtxUTxO )]
104
104
picked =
105
105
[ (i, mkTxOutValueNotKeepingLovelace o newValue)
@@ -126,7 +126,7 @@ pickTokensToDeposit leftoverUTxO depositTokens
126
126
Just availQty | reqQty <= availQty -> Map. insert name reqQty matched
127
127
_ -> matched
128
128
129
- -- Helper to create TxOut with original lovelace + new value (unchanged from original).
129
+ -- Helper to create TxOut with new value (unchanged from original) and removing all lovelace .
130
130
mkTxOutValueNotKeepingLovelace :: TxOut ctx -> Value -> TxOut ctx
131
131
mkTxOutValueNotKeepingLovelace (TxOut addr _ datum refScript) newValue =
132
132
TxOut addr newValue datum refScript
You can’t perform that action at this time.
0 commit comments