Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7.9.8 #2802

Merged
merged 4 commits into from
Oct 10, 2023
Merged

v7.9.8 #2802

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kwenta",
"version": "7.9.7",
"version": "7.9.8",
"description": "Kwenta",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kwenta/app",
"version": "7.9.7",
"version": "7.9.8",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.empty-file {
opacity: 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.empty-file {
opacity: 1
}
6 changes: 3 additions & 3 deletions packages/app/src/components/StakeCard.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -77,7 +77,7 @@ const StakeCard: FC<StakeCardProps> = memo(
}, [activeTab, isStakeEnabled, isUnstakeEnabled])

const balanceString = useMemo(() => {
return formatNumber(balance, { suggestDecimals: true })
return truncateNumbers(balance, DEFAULT_CRYPTO_DECIMALS)
}, [balance])

const isLoading = useMemo(() => {
Expand Down
Loading