This commit is contained in:
D-Stacks 2022-06-30 15:54:55 +02:00
parent 9bb5f2c3c3
commit 4c10273fb1
2 changed files with 3 additions and 3 deletions

View File

@ -49,6 +49,6 @@ func CalculateFeeFromInputAndOutputTotalAmounts(totalInputAmount uint64, totalOu
if totalInputAmount > totalOutputAmount {
return 0, errors.Errorf("The input amount may not exceed the output amount, Cannot Calculate negative fees")
}
return totalInputAmount - totalOutputAmount, nil
}
}

View File

@ -73,7 +73,7 @@ func parse(conf *parseConfig) error {
fmt.Printf("Output %d: \tRecipient: %s \tAmount: %.2f Kaspa\n",
index, addressString, float64(output.Value)/float64(constants.SompiPerKaspa))
allOutputSompi += output.Value
allOutputSompi += output.Value
}
fmt.Println()