Skip to content

Commit

Permalink
chore: layer add bigNumberFormatter composable
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Jan 10, 2024
1 parent 5f947b6 commit 8b15301
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions layer/composables/useSharedBigNumberFormatted.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { computed, Ref } from 'vue'
import { computed, ComputedRef, Ref } from 'vue'
import {
BigNumber,
BigNumberInBase,
Expand Down Expand Up @@ -114,7 +114,9 @@ const getNumberMinimalDecimals = (
}

export function useSharedBigNumberFormatter(
value: Ref<String | Number | BigNumberInBase | undefined>,
value:
| Ref<string | Number | BigNumberInBase | undefined>
| ComputedRef<string | Number | BigNumberInBase | undefined>,
options: {
decimalPlaces?: number
minimalDecimalPlaces?: number
Expand Down
5 changes: 2 additions & 3 deletions layer/wallet/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import {
MetamaskException,
UnspecifiedErrorCode
} from '@injectivelabs/exceptions'
import { EthereumChainId } from '@injectivelabs/ts-types'
import { walletStrategy } from './wallet-strategy'
import { ETHEREUM_CHAIN_ID, IS_MAINNET } from './../utils/constant'
import { UtilsWallets, Wallet } from '@injectivelabs/wallet-ts'
import { ETHEREUM_CHAIN_ID } from './../utils/constant'
import { UtilsWallets } from '@injectivelabs/wallet-ts'

export const isMetamaskInstalled = async (): Promise<boolean> => {
const provider = await UtilsWallets.getMetamaskProvider()
Expand Down

0 comments on commit 8b15301

Please sign in to comment.