@@ -25,7 +25,7 @@ func CalculateLoopOutCost(params *chaincfg.Params, loopOutSwap *loopdb.LoopOut,
2525 paymentFees map [lntypes.Hash ]lnwire.MilliSatoshi ) (loopdb.SwapCost ,
2626 error ) {
2727
28- // First make sure that this swap is actually finished.
28+ // First, make sure that this swap is actually finished.
2929 if loopOutSwap .State ().State .IsPending () {
3030 return loopdb.SwapCost {}, fmt .Errorf ("swap is not yet finished" )
3131 }
@@ -41,8 +41,8 @@ func CalculateLoopOutCost(params *chaincfg.Params, loopOutSwap *loopdb.LoopOut,
4141 }
4242
4343 // The swap hash is given and we don't need to get it from the
44- // swap invoice, however we'll decode it anyway to get the invoice amount
45- // that was paid in case we don't have the payment anymore.
44+ // swap invoice, however we'll decode it anyway to get the invoice
45+ // amount that was paid in case we don't have the payment anymore.
4646 _ , _ , swapHash , swapPaymentAmount , err := swap .DecodeInvoice (
4747 params , loopOutSwap .Contract .SwapInvoice ,
4848 )
@@ -195,6 +195,6 @@ func MigrateLoopOutCosts(ctx context.Context, lnd lndclient.LndServices,
195195 return err
196196 }
197197
198- // Finally mark the migration as done.
198+ // Finally, mark the migration as done.
199199 return db .SetMigration (ctx , costMigrationID )
200200}
0 commit comments