From 5143a2473096b7d8d05faafe6f20b114c4f5aee1 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 31 Aug 2022 11:55:29 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=8C=BA=E5=9D=97=E6=98=9F=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/block_star_chain_settlement.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 5d2e60a..fb76f92 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -94,8 +94,8 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error) } //6、进行运营中心-区块币统计 TODO::未完成分配 - var operationCenterCoinNums float64 //动态区分配区块币总数 - publishCoinOperationCenterRate, _ := decimal.NewFromString(blockStarChain.PublishCoinOperationCenterRate) //区块币发行动态占比 + var operationCenterCoinNums float64 //运营中心-分配区块币总数 + publishCoinOperationCenterRate, _ := decimal.NewFromString(blockStarChain.PublishCoinOperationCenterRate) //区块币发行运营中心占比 publishCoinOperationCenterRate = publishCoinOperationCenterRate.Div(decimal.NewFromFloat(100)) operationCenterCoinNums = zhios_order_relate_utils.StrToFloat64(decimal.NewFromFloat(publishCoin).Mul(publishCoinOperationCenterRate).String()) err, destroyCoinForOperationCenter := statisticsAndDistributeCoinForOperationCenter(session, mid, operationCenterCoinNums, *blockStarChain) @@ -105,8 +105,8 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error) } //7、进行其他-区块币统计 TODO::未完成分配 - var otherCoinNums float64 //动态区分配区块币总数 - publishCoinOperationOtherRate, _ := decimal.NewFromString(blockStarChain.PublishCoinOperationOtherRate) //区块币发行动态占比 + var otherCoinNums float64 //其他 分配区块币总数 + publishCoinOperationOtherRate, _ := decimal.NewFromString(blockStarChain.PublishCoinOtherRate) //区块币发行 其他 占比 publishCoinOperationOtherRate = publishCoinOperationOtherRate.Div(decimal.NewFromFloat(100)) otherCoinNums = zhios_order_relate_utils.StrToFloat64(decimal.NewFromFloat(publishCoin).Mul(publishCoinOperationOtherRate).String()) err, destroyCoinForOther := statisticsAndDistributeCoinForOther(session, mid, otherCoinNums, *blockStarChain)