From 59ac0e89cad54b81ccd6b2d608922d0dced6c205 Mon Sep 17 00:00:00 2001 From: affan Date: Thu, 22 Aug 2024 15:38:11 -0400 Subject: [PATCH] typo --- protocol/x/affiliates/keeper/keeper.go | 4 ++-- protocol/x/affiliates/types/keys.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/protocol/x/affiliates/keeper/keeper.go b/protocol/x/affiliates/keeper/keeper.go index 2dfaef6401..fd71c946e4 100644 --- a/protocol/x/affiliates/keeper/keeper.go +++ b/protocol/x/affiliates/keeper/keeper.go @@ -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) @@ -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 } diff --git a/protocol/x/affiliates/types/keys.go b/protocol/x/affiliates/types/keys.go index 53c53f586f..386ec9b717 100644 --- a/protocol/x/affiliates/types/keys.go +++ b/protocol/x/affiliates/types/keys.go @@ -13,7 +13,7 @@ const ( const ( ReferredByKeyPrefix = "ReferredBy:" - ReferredVolmeKeyPrefix = "ReferredVolume:" + ReferredVolumeKeyPrefix = "ReferredVolume:" AffiliateTiersKey = "AffiliateTiers" )