From 08d162d36d5252d286e47b33831740d50ee3302e Mon Sep 17 00:00:00 2001 From: Amit Date: Fri, 13 Dec 2024 17:01:24 +0530 Subject: [PATCH] change amount --- x/commitment/keeper/airdrop.go | 2 +- x/commitment/migrations/v7_migration.go | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/x/commitment/keeper/airdrop.go b/x/commitment/keeper/airdrop.go index 77a4f5efe..18b83f155 100644 --- a/x/commitment/keeper/airdrop.go +++ b/x/commitment/keeper/airdrop.go @@ -9,7 +9,7 @@ import ( ) const MaxElysAmount = 3_218_460_000_000 -const MaxEdenAmount = 3_316_344_000_000 +const MaxEdenAmount = 3_441_097_000_000 func (k Keeper) GetAtomStaker(ctx sdk.Context, address sdk.AccAddress) (val types.AtomStaker) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) diff --git a/x/commitment/migrations/v7_migration.go b/x/commitment/migrations/v7_migration.go index a2bb44aa9..a1f7fe858 100644 --- a/x/commitment/migrations/v7_migration.go +++ b/x/commitment/migrations/v7_migration.go @@ -1,6 +1,7 @@ package migrations import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/elys-network/elys/x/commitment/types" ) @@ -18,14 +19,14 @@ func (m Migrator) V7Migration(ctx sdk.Context) error { m.keeper.SetParams(ctx, newParams) // List of atom stakers with addresses and amounts - // atomStakers := []types.AtomStaker{ - // {Address: "address1", Amount: math.NewInt(1000)}, - // } + atomStakers := []types.AtomStaker{ + {Address: "address1", Amount: math.NewInt(1000)}, + } // // Add missing wallet addresses to atom stakers DS - // for _, staker := range atomStakers { - // m.keeper.SetAtomStaker(ctx, staker) - // } + for _, staker := range atomStakers { + m.keeper.SetAtomStaker(ctx, staker) + } return nil }