From 3b1187380f625d06a1f2c40ddc7b2e88fae69296 Mon Sep 17 00:00:00 2001 From: leifu Date: Mon, 9 Oct 2023 23:42:29 +0300 Subject: [PATCH 1/3] Updated truncation to display actual balance --- packages/app/src/components/StakeCard.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app/src/components/StakeCard.tsx b/packages/app/src/components/StakeCard.tsx index aea64416b..a1bd7bc8e 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(() => { From 1d23daebd9223e90519ec2396ba60613a8791338 Mon Sep 17 00:00:00 2001 From: Adam Clarke Date: Tue, 10 Oct 2023 13:51:52 +0100 Subject: [PATCH 2/3] fix(app): trading view tools not appearing (#1026) * Delete empty style sheet * Add back css file --- .../charting_library/bundles/3876.fbb750fd312778403036.css | 3 +++ .../charting_library/bundles/3876.fbb750fd312778403036.rtl.css | 3 +++ 2 files changed, 6 insertions(+) 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 e69de29bb..4c36f5326 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 e69de29bb..4c36f5326 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 From f2443113ca623230e0f4d5c5958c8208e6f077df Mon Sep 17 00:00:00 2001 From: platschi Date: Tue, 10 Oct 2023 10:06:18 -0300 Subject: [PATCH 3/3] chore(*): bump version --- package.json | 2 +- packages/app/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bbefdfcf0..fc12aff46 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 9f961a0c5..30851c9a0 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",