mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 06:25:55 +00:00
fmt
This commit is contained in:
parent
9bb5f2c3c3
commit
4c10273fb1
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user