|
|
@@ -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 |
|
|
|