Skip to content

Commit

Permalink
Fix remaining misspelled function name.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau committed Mar 22, 2024
1 parent 85542d2 commit 3452f89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions protocol/x/subaccounts/keeper/negative_tnc_subaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (k Keeper) GetNegativeTncSubaccountSeenAtBlock(
[]byte(types.NegativeTncSubaccountForCollateralPoolSeenAtBlockKeyPrefix),
)

suffix, err := k.getNegativeTncSubaccountStoreSuffx(ctx, perpetualId)
suffix, err := k.getNegativeTncSubaccountStoreSuffix(ctx, perpetualId)
if err != nil {
return 0, false, err
}
Expand Down Expand Up @@ -77,7 +77,7 @@ func (k Keeper) SetNegativeTncSubaccountSeenAtBlock(
[]byte(types.NegativeTncSubaccountForCollateralPoolSeenAtBlockKeyPrefix),
)

storeSuffix, err := k.getNegativeTncSubaccountStoreSuffx(ctx, perpetualId)
storeSuffix, err := k.getNegativeTncSubaccountStoreSuffix(ctx, perpetualId)
if err != nil {
return err
}
Expand All @@ -103,7 +103,7 @@ func (k Keeper) SetNegativeTncSubaccountSeenAtBlock(
return nil
}

func (k Keeper) getNegativeTncSubaccountStoreSuffx(
func (k Keeper) getNegativeTncSubaccountStoreSuffix(
ctx sdk.Context,
perpetualId uint32,
) (string, error) {
Expand Down Expand Up @@ -135,7 +135,7 @@ func (k Keeper) getNegativeTncSubaccountStoresuffixes(
if len(u.SettledSubaccount.PerpetualPositions) == 0 {
suffix = types.CrossCollateralSuffix
} else {
suffix, err = k.getNegativeTncSubaccountStoreSuffx(ctx, u.SettledSubaccount.PerpetualPositions[0].PerpetualId)
suffix, err = k.getNegativeTncSubaccountStoreSuffix(ctx, u.SettledSubaccount.PerpetualPositions[0].PerpetualId)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3452f89

Please sign in to comment.