This commit is contained in:
aozhiwei 2024-09-03 15:55:06 +08:00
parent 8c1efd1baa
commit c6c3abb1c8

View File

@ -139,6 +139,22 @@ func (this *stackingCec) apply(idx int64, eventName string,
bnAmount = big.NewInt(0).Sub(big.NewInt(0), bnAmount)
} else {
return false
}
dbErr, ds := f5.GetGoStyleDb().NewOrmSelect(
constant.BCNFT_DB,
"t_staking_cec",
[][]string{
{"account_address", strings.ToLower(p.Account)},
{"token_address", strings.ToLower(p.Token)},
},
)
if dbErr != nil {
return false
}
if ds.Next() {
} else {
}
return true
}