Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Aug 27, 2024
1 parent 6866472 commit f877596
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions layer/store/param.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ const ACTUAL_BLCOk_TIME = 0.625194000005722
const ACTUAL_BLOCKS_PER_YEAR = 50441942.82048672

type ParamStoreState = {
injSupply: number
baseInflation: number
bondedTokens: number
blocksPerYear: number
injSupply: string
baseInflation: string
bondedTokens: string
blocksPerYear: string
actualBlockTime: number
actualBlocksPerYear: number
pool: Pool
mintParams: MintModuleParams
}

const initialStateFactory = (): ParamStoreState => ({
injSupply: 0,
baseInflation: 0,
bondedTokens: 0,
blocksPerYear: 0,
injSupply: '0',
baseInflation: '0',
bondedTokens: '0',
blocksPerYear: '0',
actualBlockTime: 0,
actualBlocksPerYear: 0,
pool: {} as Pool,
Expand Down Expand Up @@ -71,7 +71,7 @@ export const useSharedParamStore = defineStore('sharedParam', {
const { inflation } = await mintApi.fetchInflation()

paramsStore.$patch({
baseInflation: new BigNumberInBase(inflation).toFixed()
baseInflation: inflation
})
},

Expand All @@ -82,7 +82,7 @@ export const useSharedParamStore = defineStore('sharedParam', {

paramsStore.$patch({
pool,
bondedTokens: new BigNumberInBase(pool.bondedTokens).toFixed()
bondedTokens: pool.bondedTokens
})
},

Expand All @@ -93,7 +93,7 @@ export const useSharedParamStore = defineStore('sharedParam', {

paramsStore.$patch({
mintParams,
blocksPerYear: new BigNumberInBase(mintParams.blocksPerYear).toFixed()
blocksPerYear: mintParams.blocksPerYear
})
},

Expand Down

0 comments on commit f877596

Please sign in to comment.