Browse Source

add 区块星链

tags/v2.0.5
DengBiao 2 years ago
parent
commit
5143a24730
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      rule/block_star_chain_settlement.go

+ 4
- 4
rule/block_star_chain_settlement.go View File

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


Loading…
Cancel
Save