func (rep ReputationManager) GetCurrentRound(ctx sdk.Context) (int64, sdk.Error) {
	repv2 := rep.getHandlerV2(ctx)
	_, ts := repv2.GetCurrentRound()
	return int64(ts), nil
}
GetCurrentRound of now
package reputation
import (
	codec "github.com/cosmos/cosmos-sdk/codec"
	sdk "github.com/cosmos/cosmos-sdk/types"
	"github.com/lino-network/lino/param"
	"github.com/lino-network/lino/types"
	repv2 "github.com/lino-network/lino/x/reputation/repv2"
)
type ReputationManager struct {
	storeKey    sdk.StoreKey
	paramHolder param.ParamHolder
}
func NewReputationManager(storeKey sdk.StoreKey, holder param.ParamHolder) ReputationKeeper {
	return ReputationManager{
		storeKey:    storeKey,
		paramHolder: holder,
	}
}
func (rep ReputationManager) getHandlerV2(ctx sdk.Context) repv2.Reputation {
	store := ctx.KVStore(rep.storeKey)
	repStore := repv2.NewReputationStore(store, repv2.DefaultInitialReputation)
	param := rep.paramHolder.GetReputationParam(ctx)
	handler := repv2.NewReputation(
		repStore, param.BestContentIndexN, param.UserMaxN,
		repv2.DefaultRoundDurationSeconds,
		repv2.DefaultSampleWindowSize,
		repv2.DefaultDecayFactor)
	return handler
}
func (rep ReputationManager) checkUsername(uid repv2.Uid) sdk.Error {
	if len(uid) == 0 {
		return ErrAccountNotFound("")
	}
	return nil
}
func (rep ReputationManager) checkPost(pid repv2.Pid) sdk.Error {
	if len(pid) == 0 {
		return ErrPostNotFound("")
	}
	return nil
}
func (rep ReputationManager) basicCheck(uid repv2.Uid, pid repv2.Pid) sdk.Error {
	err := rep.checkUsername(uid)
	if err != nil {
		return err
	}
	err = rep.checkPost(pid)
	return err
}
func (rep ReputationManager) DonateAt(ctx sdk.Context,
	username types.AccountKey, post types.Permlink, amount types.MiniDollar) (types.MiniDollar, sdk.Error) {
	uid := string(username)
	pid := string(post)
	err := rep.basicCheck(repv2.Uid(uid), repv2.Pid(pid))
	if err != nil {
		return types.NewMiniDollar(0), err
	}
	handler := rep.getHandlerV2(ctx)
	dp := handler.DonateAt(repv2.Uid(uid), repv2.Pid(pid), repv2.NewIntFromBig(amount.Int.BigInt()))
	return types.NewMiniDollarFromBig(dp.Int), nil
}
func (rep ReputationManager) Update(ctx sdk.Context) sdk.Error {
	handler := rep.getHandlerV2(ctx)
	handler.Update(repv2.Time(ctx.BlockHeader().Time.Unix()))
	return nil
}
func (rep ReputationManager) GetReputation(ctx sdk.Context, username types.AccountKey) (types.MiniDollar, sdk.Error) {
	uid := string(username)
	err := rep.checkUsername(repv2.Uid(uid))
	if err != nil {
		return types.NewMiniDollar(0), err
	}
	handler := rep.getHandlerV2(ctx)
	return types.NewMiniDollarFromBig(handler.GetReputation(repv2.Uid(uid)).Int), nil
}