manage_pool_tier_and_warmup.gno

SetPoolTier

func SetPoolTier(
	cur realm,
	poolPath string,
	tier uint64
)

SetPoolTier sets the reward tier for a pool.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

poolPath

string

path of the pool

tier

uint64

reward tier level

ChangePoolTier

ChangePoolTier changes the reward tier of a pool.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

poolPath

string

path of the pool

tier

uint64

new reward tier level

RemovePoolTier

RemovePoolTier removes a pool from the tier system.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

poolPath

string

path of the pool

SetWarmUp

SetWarmUp sets the warm-up period parameters for staking.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

pct

int64

warmup percentage

timeDuration

int64

warmup time duration in seconds

Last updated