Commit 5be5ce58 authored by harrylee's avatar harrylee Committed by vipwzw

make linter

parent 39267eec
...@@ -591,7 +591,7 @@ func QueryOrderList(localdb dbm.Lister, statedb dbm.KV, addr string, status, cou ...@@ -591,7 +591,7 @@ func QueryOrderList(localdb dbm.Lister, statedb dbm.KV, addr string, status, cou
return &orderList, nil return &orderList, nil
} }
//截取小数点后7 //截取小数点后8
func Truncate(price float64) float64 { func Truncate(price float64) float64 {
return math.Trunc(float64(1e8)*float64(price)) / float64(1e8) return math.Trunc(float64(1e8)*price) / float64(1e8)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment