From e02a4a97d85c1a205a856042ba306f1bf5c2a425 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 22 Feb 2024 15:03:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/comm_plan/all.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/comm_plan/all.go b/lib/comm_plan/all.go index 6282845..616b695 100644 --- a/lib/comm_plan/all.go +++ b/lib/comm_plan/all.go @@ -884,7 +884,7 @@ func CalVirtualCommissionMinus(a, b []*VirtualCoinCommission) (c []*VirtualCoinC for _, coinA := range a { for _, coinB := range b { if coinA.Cid == coinB.Cid { - amount = coinA.Val - coinB.Val + amount = zhios_order_relate_utils.FloatFormat(coinA.Val-coinB.Val, 8) if amount < 0 { zeroList[coinA.Cid] = struct{}{} amount = 0