mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Added common IsEnabled function to output a string.
This commit is contained in:
@@ -103,6 +103,14 @@ func RoundFloat(x float64, prec int) float64 {
|
||||
return rounder / pow
|
||||
}
|
||||
|
||||
func IsEnabled(isEnabled bool) (string) {
|
||||
if isEnabled {
|
||||
return "Enabled"
|
||||
} else {
|
||||
return "Disabled"
|
||||
}
|
||||
}
|
||||
|
||||
func CalculateAmountWithFee(amount, fee float64) (float64) {
|
||||
return amount + CalculateFee(amount, fee)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user