From 10d660f911cbe89bb7ad904622f6b594a45d53c8 Mon Sep 17 00:00:00 2001 From: Cameron Gilbert Date: Mon, 6 May 2024 10:42:47 -0400 Subject: [PATCH] fix: mispell --- src/sdk/utils/math.test.ts | 6 +++--- src/sdk/utils/math.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sdk/utils/math.test.ts b/src/sdk/utils/math.test.ts index 5f669c86..4e1f1757 100644 --- a/src/sdk/utils/math.test.ts +++ b/src/sdk/utils/math.test.ts @@ -1,4 +1,4 @@ -import { computeStakingEmmisionPerPeriod } from "./math" +import { computeStakingEmissionPerPeriod } from "./math" import { Params } from "src/protojs/nibiru/inflation/v1/genesis" import Long from "long" import { QueryEpochMintProvisionResponse } from "src/protojs/nibiru/inflation/v1/query" @@ -24,7 +24,7 @@ const params = { hasInflationStarted: true, } -describe("computeStakingEmmisionPerPeriod", () => { +describe("computeStakingEmissionPerPeriod", () => { interface TestCase { name: string in: { @@ -79,7 +79,7 @@ describe("computeStakingEmmisionPerPeriod", () => { test.each(tests)("%o", (tt) => { let failed = false try { - const res = computeStakingEmmisionPerPeriod( + const res = computeStakingEmissionPerPeriod( tt.in.params, tt.in.epochMintProvision, tt.in.totalStaked, diff --git a/src/sdk/utils/math.ts b/src/sdk/utils/math.ts index 86c2ba05..68bb6850 100644 --- a/src/sdk/utils/math.ts +++ b/src/sdk/utils/math.ts @@ -17,7 +17,7 @@ import { QueryEpochMintProvisionResponse } from "src/protojs/nibiru/inflation/v1 * @param addedStake - New stake to add to the user's current stake. This is * used to compute a new annual percentage return after a staking tx. * */ -export const computeStakingEmmisionPerPeriod = ( +export const computeStakingEmissionPerPeriod = ( params: Params, epochMintProvision: QueryEpochMintProvisionResponse, totalStaked: number,