v7

package
v15.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STRDProp153SendAmount      = 3_000_000_000_000
	UpgradeName                = "v7"
	Ustrd                      = "ustrd"
	IncentiveProgramAddress    = "stride1tlxk4as9sgpqkh42cfaxqja0mdj6qculqshy0gg3glazmrnx3y8s8gsvqk"
	StrideFoundationAddress_F4 = "stride1yz3mp7c2m739nftfrv5r3h6j64aqp95f3degpf"
)

Amount to be sent from the incentive program to the Stride Foundation for the incentive diversification proposal. The 3M STRD will be swapped to USDC.

Variables

This section is empty.

Functions

func AddHourEpoch

func AddHourEpoch(ctx sdk.Context, k epochskeeper.Keeper)

Add a new hourly epoch that will be used by the rate limit module

func AddICAHostAllowMessages

func AddICAHostAllowMessages(ctx sdk.Context, k icahostkeeper.Keeper)

Add stride messages (LiquidStake, RedeemStake, Claim) to the ICAHost allow messages to allow other protocols to liquid stake via ICA

func AddRedemptionRateSafetyChecks

func AddRedemptionRateSafetyChecks(cdc codec.Codec, storeKey storetypes.StoreKey, ctx sdk.Context, k stakeibckeeper.Keeper)

Add the min/max redemption rate to each host zone as safety bounds, using the default for each Also set the Halted boolean to false

func CreateRewardCollectorModuleAccount

func CreateRewardCollectorModuleAccount(ctx sdk.Context, k authkeeper.AccountKeeper) error

Create reward collector module account for Prop #8

func CreateUpgradeHandler

func CreateUpgradeHandler(
	mm *module.Manager,
	configurator module.Configurator,
	cdc codec.Codec,
	accountKeeper authkeeper.AccountKeeper,
	bankKeeper bankkeeper.Keeper,
	epochsKeeper epochskeeper.Keeper,
	icahostKeeper icahostkeeper.Keeper,
	mintKeeper mintkeeper.Keeper,
	stakeibcKeeper stakeibckeeper.Keeper,
	stakeibcStoreKey storetypes.StoreKey,
) upgradetypes.UpgradeHandler

CreateUpgradeHandler creates an SDK upgrade handler for v7

func ExecuteProp153

func ExecuteProp153(ctx sdk.Context, k bankkeeper.Keeper) error

Incentive diversification (Prop #153) - Send 3M STRD from Incentive Program to Stride Foundation so that it can be swapped for USDC and deployed as incentives The 3M STRD will be swapped to USDC.

func GetAllHostZone

func GetAllHostZone(cdc codec.Codec, stakeibcStoreKey storetypes.StoreKey, ctx sdk.Context) (list []newstakeibctypes.HostZone)

GetAllHostZone but with fixed historical stakeibc types

func GetHostZone

func GetHostZone(
	cdc codec.Codec,
	stakeibcStoreKey storetypes.StoreKey,
	ctx sdk.Context,
	chainId string,
) (val newstakeibctypes.HostZone, found bool)

GetHostZone but with fixed historical stakeibc types

func IncreaseStrideInflation

func IncreaseStrideInflation(ctx sdk.Context, k mintkeeper.Keeper)

Increase stride inflation from 285 STRD to 1078 STRD

func ModifyJunoUnbondingFrequency

func ModifyJunoUnbondingFrequency(cdc codec.Codec, storeKey storetypes.StoreKey, ctx sdk.Context, k stakeibckeeper.Keeper) error

Update the unbonding frequency of juno to 5 to align with the 28 day unbonding period

func SetHostZone

func SetHostZone(cdc codec.Codec, stakeibcStoreKey storetypes.StoreKey, ctx sdk.Context, hostZone newstakeibctypes.HostZone)

SetHostZone but with fixed historical stakeibc types

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL