Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mohandast52 committed Aug 27, 2024
1 parent bba4959 commit fe959c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/common-contract-functions/src/lib/useRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Address, formatEther } from 'viem';
import { mainnet } from 'viem/chains';
import { useReadContract } from 'wagmi';

import { TokenomicsUniTypes } from 'libs/util-constants/src';
import { TokenomicsUnitTypes } from 'libs/util-constants/src';

const rewardsFormatter = (value: bigint, dp: number = 4) =>
parseFloat(formatEther(value)).toLocaleString('en', {
Expand All @@ -17,7 +17,7 @@ export const useClaimableIncentives = (
contractAbi: readonly unknown[],
ownerAddress: Address,
id: string,
tokenomicsUnitType?: TokenomicsUniTypes,
tokenomicsUnitType?: TokenomicsUnitTypes,
) => {
const { isFetching, data, refetch } = useReadContract({
address: contractAddress,
Expand Down
4 changes: 3 additions & 1 deletion libs/util-constants/src/lib/units.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export const TOKENOMICS_UNIT_TYPES = { COMPONENT: '0', AGENT: '1' } as const;
export type TokenomicsUniTypes = (typeof TOKENOMICS_UNIT_TYPES)[keyof typeof TOKENOMICS_UNIT_TYPES];

export type TokenomicsUnitTypes =
(typeof TOKENOMICS_UNIT_TYPES)[keyof typeof TOKENOMICS_UNIT_TYPES];

0 comments on commit fe959c6

Please sign in to comment.