Commit 58b1ac8a authored by shajiaiming's avatar shajiaiming

eth debu

parent 298501e2
......@@ -49,12 +49,12 @@ func GetTransactionGas(name string) (map[string]interface{}, error) {
}
} else if "ETH" == strings.ToUpper(name) {
fee, _ := gredis.HashGet(strings.ToUpper(name)+"_GAS", "gasPrice", 3)
low := util.FormatFloat(util.ToFloat64(string(fee))/1000000000*30000*0.000000001*1.1*3, 8)
//low := util.FormatFloat(util.ToFloat64(string(fee))/1000000000*30000*0.000000001*1.1*3, 8)
average := util.FormatFloat(util.ToFloat64(string(fee))/1000000000*30000*0.000000001*1.2*3, 8)
high := util.FormatFloat(util.ToFloat64(string(fee))/1000000000*30000*0.000000001*1.3*3, 8)
data["name"] = strings.ToUpper(name)
data["low"] = low
data["low"] = "0.0002"
data["average"] = average
data["high"] = high
if util.ToFloat64(high) > 0.1 {
......
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