Skip to content

Commit

Permalink
chore: package upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ap211unitech committed Jun 7, 2024
1 parent 0833215 commit 10c1bfc
Show file tree
Hide file tree
Showing 4 changed files with 756 additions and 744 deletions.
2 changes: 1 addition & 1 deletion apps/hestia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@polkadex/numericals": "^0.3.0",
"@polkadex/polkadex-api": "^3.6.2",
"@polkadex/subscan": "^1.1.61",
"@polkadex/thea": "^5.6.0",
"@polkadex/thea": "^5.7.0",
"@polkadex/ux": "^6.26.0",
"@polkadex/react-providers": "^2.2.1",
"@polkadex/types": "^1.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@polkadex/local-wallets": "^2.2.0",
"@polkadex/polkadex-api": "^3.6.2",
"@polkadex/react-providers": "^2.2.1",
"@polkadex/thea": "^5.6.0",
"@polkadex/thea": "^5.7.0",
"@polkadex/utils": "^0.2.1",
"@polkadot-cloud/assets": "^0.3.0",
"@polkadot/api": "^10.12.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/format/src/balances.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { trimFloat } from "@orderbook/core/helpers";
import { parseScientific, trimFloat } from "@polkadex/numericals";

export class BalanceFormatter {
static toHuman(
value: number | bigint,
decimal: number,
locale?: string
): string {
let result = Number(value).toFixed(decimal);
let result = parseScientific(value.toString());
// Trim the value (don't round off)
result = trimFloat({ value: result, digitsAfterDecimal: 8 });

Expand Down
Loading

0 comments on commit 10c1bfc

Please sign in to comment.