Skip to content

Commit

Permalink
fix: update comments for elys staked
Browse files Browse the repository at this point in the history
  • Loading branch information
kenta-elys committed Sep 21, 2023
1 parent 6fbd682 commit 5924bb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/incentive/keeper/elys_staked.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/elys-network/elys/x/incentive/types"
)

// SetSuperAdmin set a specific superAdmin in the store from its index
// SetElysStaked set a specific elysStaked in the store from its index
func (k Keeper) SetElysStaked(ctx sdk.Context, elysStaked types.ElysStaked) {
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ElysStakedKeyPrefix))
b := k.cdc.MustMarshal(&elysStaked)
Expand All @@ -15,7 +15,7 @@ func (k Keeper) SetElysStaked(ctx sdk.Context, elysStaked types.ElysStaked) {
), b)
}

// GetSuperAdmin returns a superAdmin from its index
// GetElysStaked returns a elysStaked from its index
func (k Keeper) GetElysStaked(
ctx sdk.Context,
address string,
Expand All @@ -34,7 +34,7 @@ func (k Keeper) GetElysStaked(
return val, true
}

// RemoveSuperAdmin removes a superAdmin from the store
// RemoveElysStaked removes a elysStaked from the store
func (k Keeper) RemoveElysStaked(
ctx sdk.Context,
address string,
Expand All @@ -46,7 +46,7 @@ func (k Keeper) RemoveElysStaked(
))
}

// GetAllSuperAdmin returns all superAdmin
// GetAllElysStaked returns all elysStaked
func (k Keeper) GetAllElysStaked(ctx sdk.Context) (list []types.ElysStaked) {
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ElysStakedKeyPrefix))
iterator := sdk.KVStorePrefixIterator(store, []byte{})
Expand Down

0 comments on commit 5924bb8

Please sign in to comment.