v7

package
v13.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

README

Upgrade v7 Changelog

  1. IBC Rate Limiting (94e3a91)
  2. Host Zone Reward Reallocation (3539983)
  3. Add Autopilot (1c173fe)
  4. Prevent undelegations of amount 0 (3e0f404)
  5. Change sdkerrors to errorsmod (dfc5fb0)
  6. Remove Epoch Unbonding Records with 0 amounts (470268d)
  7. Remove ICACallbacks from Middleware (59a872b)
  8. Remove unnecessary setting of EXIT_TRANSFER_QUEUE (0413e99)
  9. Airdrop Reset (b7371d7)
  10. Module Account Safety (0a325de)
  11. Minor optimizations (c3df52d, 85e76ec, [5ff42a9](https://github.com/Stride-Labs/stride/commit/5ff42a93b189a240f8cc0ac0a750ac4cd26272f7, b3196d2, ddc951a, bdd05b0 3d4ba72)
  12. Queries (9b17edf, f07ff73)
  13. Dependency Bumps (2a04046)
  14. v7 Upgrade Handler (9bc47dc)
  15. v7 Import Paths (563bc25)

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(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,
) 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 IncreaseStrideInflation

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

Increase stride inflation from 285 STRD to 1078 STRD

func ModifyJunoUnbondingFrequency

func ModifyJunoUnbondingFrequency(ctx sdk.Context, k stakeibckeeper.Keeper) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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