1
This commit is contained in:
parent
fc0f132e15
commit
a270036a59
@ -11,6 +11,8 @@ import (
|
|||||||
"math/big"
|
"math/big"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const DECIMALS = 18
|
||||||
|
|
||||||
const (
|
const (
|
||||||
EVENT_NAME_STAKE_CEC = "StakeCec"
|
EVENT_NAME_STAKE_CEC = "StakeCec"
|
||||||
EVENT_NAME_UNSTAKE_CEC = "UnstakeCec"
|
EVENT_NAME_UNSTAKE_CEC = "UnstakeCec"
|
||||||
@ -170,7 +172,7 @@ func (this *stackingCec) apply(idx int64, eventName string,
|
|||||||
if !ok {
|
if !ok {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
var growthValueInt64 = bnNewGrowthValue.Int64()
|
var growthValueInt64 = bnNewGrowthValue.Rsh(bnNewGrowthValue, DECIMALS).Int64()
|
||||||
bnNewAmount.Add(bnNewAmount, bnAmount)
|
bnNewAmount.Add(bnNewAmount, bnAmount)
|
||||||
{
|
{
|
||||||
nowTime := f5.GetApp().GetRealSeconds()
|
nowTime := f5.GetApp().GetRealSeconds()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user