diff --git a/package.json b/package.json index bbefdfcf00..fc12aff466 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kwenta", - "version": "7.9.7", + "version": "7.9.8", "description": "Kwenta", "main": "index.js", "scripts": { diff --git a/packages/app/package.json b/packages/app/package.json index 9f961a0c54..30851c9a02 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -1,6 +1,6 @@ { "name": "@kwenta/app", - "version": "7.9.7", + "version": "7.9.8", "scripts": { "dev": "next", "build": "next build", diff --git a/packages/app/public/static/charting_library/bundles/3876.fbb750fd312778403036.css b/packages/app/public/static/charting_library/bundles/3876.fbb750fd312778403036.css index e69de29bb2..4c36f5326c 100644 --- a/packages/app/public/static/charting_library/bundles/3876.fbb750fd312778403036.css +++ b/packages/app/public/static/charting_library/bundles/3876.fbb750fd312778403036.css @@ -0,0 +1,3 @@ +.empty-file { + opacity: 1 +} \ No newline at end of file diff --git a/packages/app/public/static/charting_library/bundles/3876.fbb750fd312778403036.rtl.css b/packages/app/public/static/charting_library/bundles/3876.fbb750fd312778403036.rtl.css index e69de29bb2..4c36f5326c 100644 --- a/packages/app/public/static/charting_library/bundles/3876.fbb750fd312778403036.rtl.css +++ b/packages/app/public/static/charting_library/bundles/3876.fbb750fd312778403036.rtl.css @@ -0,0 +1,3 @@ +.empty-file { + opacity: 1 +} \ No newline at end of file diff --git a/packages/app/src/components/StakeCard.tsx b/packages/app/src/components/StakeCard.tsx index aea64416b0..a1bd7bc8e7 100644 --- a/packages/app/src/components/StakeCard.tsx +++ b/packages/app/src/components/StakeCard.tsx @@ -1,4 +1,4 @@ -import { formatNumber, toWei, truncateNumbers } from '@kwenta/sdk/utils' +import { toWei, truncateNumbers } from '@kwenta/sdk/utils' import Wei from '@synthetixio/wei' import { FC, memo, useCallback, useEffect, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' @@ -8,7 +8,7 @@ import Button from 'components/Button' import NumericInput from 'components/Input/NumericInput' import { FlexDivCol, FlexDivRowCentered } from 'components/layout/flex' import SegmentedControl from 'components/SegmentedControl' -import { DEFAULT_TOKEN_DECIMALS } from 'constants/defaults' +import { DEFAULT_CRYPTO_DECIMALS, DEFAULT_TOKEN_DECIMALS } from 'constants/defaults' import { StakingCard } from 'sections/dashboard/Stake/card' import { useAppSelector } from 'state/hooks' import { selectStakingV1 } from 'state/staking/selectors' @@ -77,7 +77,7 @@ const StakeCard: FC = memo( }, [activeTab, isStakeEnabled, isUnstakeEnabled]) const balanceString = useMemo(() => { - return formatNumber(balance, { suggestDecimals: true }) + return truncateNumbers(balance, DEFAULT_CRYPTO_DECIMALS) }, [balance]) const isLoading = useMemo(() => {