This commit is contained in:
yangduo 2024-10-11 10:52:51 +08:00
parent 1d39d36a23
commit 6cc1f1a507

View File

@ -238,6 +238,8 @@ func (this *VIPApi) Details(c *gin.Context) {
nextlvcfg := mt.Table.StakingVip.GetById(q5.SafeToInt64(rspObj.Info.Level + 1))
if nextlvcfg != nil && convercurExec >= cfg.GetRequire() {
rspObj.Info.Cur = cfg.GetThisPoint() * (convercurExec - cfg.GetRequire()) / (nextlvcfg.GetRequire() - cfg.GetRequire())
} else if nextlvcfg == nil {
rspObj.Info.Cur = rspObj.Info.Target
}
}
} else {