v10

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: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UpgradeName     = "v10"
	EpochProvisions = sdk.NewDec(929_681_506)

	StakingProportion                     = "0.1603620"
	CommunityPoolGrowthProportion         = "0.2158275"
	StrategicReserveProportion            = "0.4879320"
	CommunityPoolSecurityBudgetProportion = "0.1358785"

	CommunityPoolGrowthAddress = "stride1lj0m72d70qerts9ksrsphy9nmsd4h0s88ll9gfphmhemh8ewet5qj44jc9"
	BadKidsCustodian           = "stride17z6yy8vfgklgej9m848jm7rkp270gd9pgaw8zu"
	BadKidsTransferAmount      = sdk.NewInt(15_000_000_000)
	Ustrd                      = "ustrd"

	MinInitialDepositRatio = "0.50"

	// airdrop distributor addresses
	DistributorAddresses = map[string]string{
		"stride":  "stride1cpvl8yf848karqauyhr5jzw6d9n9lnuuu974ev",
		"gaia":    "stride1fmh0ysk5nt9y2cj8hddms5ffj2dhys55xkkjwz",
		"osmosis": "stride1zlu2l3lx5tqvzspvjwsw9u0e907kelhqae3yhk",
		"juno":    "stride14k9g9zpgaycpey9840nnpa66l4nd6lu7g7t74c",
		"stars":   "stride12pum4adk5dhp32d90f8g8gfwujm0gwxqnrdlum",
		"evmos":   "stride10dy5pmc2fq7fnmufjfschkfrxaqnpykl6ezy5j",
	}
	NewDistributorAddresses = map[string]string{
		"stride":  "stride1w02dg74j8s38gqn6mvlr87hkvyv5rgp3cqe9se",
		"gaia":    "stride1w0w0gr6u796y2mjl9fuqt66jqvk3j59jq3jtpg",
		"osmosis": "stride1mfg5ck02tlyzdtdpaj70ngtgjs2vuawtkfz7xd",
		"juno":    "stride1ral4dsqk0nzyqlwtuyxgavfvx8hegml7u0rzx3",
		"stars":   "stride1rm9nxc5pw3k5r5s6lm85k73mfp734nhnxq570g",
		"evmos":   "stride1ej4e7x2hanmy6vrzrjh06g6dnfq5kxm73dmgsw",
	}

	RateLimitDurationHours = uint64(24)
	NewRateLimits          = map[string]sdkmath.Int{
		"cosmoshub-4":  sdkmath.NewInt(25),
		"osmosis-1":    sdkmath.NewInt(25),
		"injective-1":  sdkmath.NewInt(25),
		"evmos_9001-2": sdkmath.NewInt(25),
		"juno-1":       sdkmath.NewInt(75),
		"stargaze-1":   sdkmath.NewInt(75),
		"phoenix-1":    sdkmath.NewInt(75),
		"umee-1":       sdkmath.NewInt(75),
	}
)

Functions

func AddLocalhostIBCClient

func AddLocalhostIBCClient(ctx sdk.Context, k clientkeeper.Keeper)

Explicitly update the IBC 02-client params, adding the localhost client type

func CreateUpgradeHandler

func CreateUpgradeHandler(
	mm *module.Manager,
	configurator module.Configurator,
	cdc codec.Codec,
	capabilityStoreKey *storetypes.KVStoreKey,
	accountKeeper authkeeper.AccountKeeper,
	bankKeeper bankkeeper.Keeper,
	capabilityKeeper *capabilitykeeper.Keeper,
	channelKeeper channelkeeper.Keeper,
	claimKeeper claimkeeper.Keeper,
	clientKeeper clientkeeper.Keeper,
	consensusParamsKeeper consensusparamkeeper.Keeper,
	govKeeper govkeeper.Keeper,
	icacallbacksKeeper icacallbackskeeper.Keeper,
	mintKeeper mintkeeper.Keeper,
	paramsKeeper paramskeeper.Keeper,
	ratelimitKeeper ratelimitkeeper.Keeper,
	stakeibcKeeper stakeibckeeper.Keeper,
) upgradetypes.UpgradeHandler

CreateUpgradeHandler creates an SDK upgrade handler for v10 This upgrade: - Upgrades the SDK from v0.46 to v0.47 - Upgrades ibc-go from v5 to v7.1 - Reduces STRD staking rewards - Executes Prop #205 - Enables rate limits - Migrates the airdrop distributor address

func EnableRateLimits

func EnableRateLimits(
	ctx sdk.Context,
	accountKeeper authkeeper.AccountKeeper,
	channelKeeper channelkeeper.Keeper,
	ratelimitKeeper ratelimitkeeper.Keeper,
	stakeibcKeeper stakeibckeeper.Keeper,
) error

Enable the following rate limits:

ATOM:  25%
OSMO:  25%
INJ:   25%
EVMOS: 25%
JUNO:  75%
STARS: 75%
LUNA:  75%
UMEE:  75%

func ExecuteProp205

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

Execute Prop #205 - Signaling proposal to acquire Bad Kids Sends 15,000 STRD from "Community Pool - Growth" to the bad kids custodian account

func MigrateCallbackData

func MigrateCallbackData(ctx sdk.Context, k icacallbackskeeper.Keeper) error

This likely isn't necessary, but since migrating from google proto to cosmos gogoproto has the potential for serialization differences, this reserializes all the callbacks with cosmos proto

func MigrateClaimDistributorAddress

func MigrateClaimDistributorAddress(ctx sdk.Context, ck claimkeeper.Keeper) error

Migrate the claim distributor address, change nothing else about the airdrop params

func ReduceSTRDStakingRewards

func ReduceSTRDStakingRewards(ctx sdk.Context, k mintkeeper.Keeper) error

Cut STRD staking rewards in half (staking rewards make up 27.64% of total provisions) Reduce epoch provisions by 13.82% from 1,078,767,123 to 929,681,506

func SetMinInitialDepositRatio

func SetMinInitialDepositRatio(ctx sdk.Context, k govkeeper.Keeper) error

Set the initial deposit ratio to 25%

Types

This section is empty.

Jump to

Keyboard shortcuts

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