소스 검색

add 区块星链

tags/v2.0.5
DengBiao 2 년 전
부모
커밋
5143a24730
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +4
    -4
      rule/block_star_chain_settlement.go

+ 4
- 4
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)


불러오는 중...
취소
저장