This commit is contained in:
aozhiwei 2024-09-04 13:45:36 +08:00
parent fc0f132e15
commit a270036a59

View File

@ -11,6 +11,8 @@ import (
"math/big"
)
const DECIMALS = 18
const (
EVENT_NAME_STAKE_CEC = "StakeCec"
EVENT_NAME_UNSTAKE_CEC = "UnstakeCec"
@ -170,7 +172,7 @@ func (this *stackingCec) apply(idx int64, eventName string,
if !ok {
return false
}
var growthValueInt64 = bnNewGrowthValue.Int64()
var growthValueInt64 = bnNewGrowthValue.Rsh(bnNewGrowthValue, DECIMALS).Int64()
bnNewAmount.Add(bnNewAmount, bnAmount)
{
nowTime := f5.GetApp().GetRealSeconds()