Skip to content

Commit

Permalink
change amount
Browse files Browse the repository at this point in the history
  • Loading branch information
amityadav0 committed Dec 13, 2024
1 parent 20fc0c4 commit 08d162d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion x/commitment/keeper/airdrop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
13 changes: 7 additions & 6 deletions x/commitment/migrations/v7_migration.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand All @@ -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)
}

Check warning on line 29 in x/commitment/migrations/v7_migration.go

View check run for this annotation

Codecov / codecov/patch

x/commitment/migrations/v7_migration.go#L9-L29

Added lines #L9 - L29 were not covered by tests

return nil

Check warning on line 31 in x/commitment/migrations/v7_migration.go

View check run for this annotation

Codecov / codecov/patch

x/commitment/migrations/v7_migration.go#L31

Added line #L31 was not covered by tests
}

0 comments on commit 08d162d

Please sign in to comment.