Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
affanv14 committed Aug 22, 2024
1 parent 82ea79d commit 59ac0e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions protocol/x/affiliates/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (k Keeper) AddReferredVolume(
affiliateAddr string,
referredVolumeFromBlock dtypes.SerializableInt,
) error {
affiliateReferredVolumePrefixStore := prefix.NewStore(ctx.KVStore(k.storeKey), []byte(types.ReferredVolmeKeyPrefix))
affiliateReferredVolumePrefixStore := prefix.NewStore(ctx.KVStore(k.storeKey), []byte(types.ReferredVolumeKeyPrefix))
var referredVolume dtypes.SerializableInt
if !affiliateReferredVolumePrefixStore.Has([]byte(affiliateAddr)) {
referredVolume = dtypes.NewInt(0)
Expand All @@ -99,7 +99,7 @@ func (k Keeper) AddReferredVolume(
}

func (k Keeper) GetReferredVolume(ctx sdk.Context, affiliateAddr string) (dtypes.SerializableInt, bool) {
affiliateReferredVolumePrefixStore := prefix.NewStore(ctx.KVStore(k.storeKey), []byte(types.ReferredVolmeKeyPrefix))
affiliateReferredVolumePrefixStore := prefix.NewStore(ctx.KVStore(k.storeKey), []byte(types.ReferredVolumeKeyPrefix))
if !affiliateReferredVolumePrefixStore.Has([]byte(affiliateAddr)) {
return dtypes.NewInt(0), false
}
Expand Down
2 changes: 1 addition & 1 deletion protocol/x/affiliates/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
const (
ReferredByKeyPrefix = "ReferredBy:"

ReferredVolmeKeyPrefix = "ReferredVolume:"
ReferredVolumeKeyPrefix = "ReferredVolume:"

AffiliateTiersKey = "AffiliateTiers"
)

0 comments on commit 59ac0e8

Please sign in to comment.