Skip to content

Commit

Permalink
upd: sGEM1 info
Browse files Browse the repository at this point in the history
  • Loading branch information
DevTeaLeaf committed Feb 13, 2025
1 parent c150809 commit 96bbf2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stability-ui",
"type": "module",
"version": "0.7.7-alpha",
"version": "0.7.8-alpha",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand Down
6 changes: 3 additions & 3 deletions src/modules/Users/components/Rewards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Rewards = (): JSX.Element => {
const [gemsEarned, setGemsEarned] = useState("0");
const [rewardsTotalSupply, setRewardsTotalSupply] = useState({
points: "0",
gems: "900k",
gems: "1.80M",
});

const [gemPrice, setGemPrice] = useState("-");
Expand All @@ -49,7 +49,7 @@ const Rewards = (): JSX.Element => {
const _sGEM1Price =
Number(
sonicPrices[sGEM1?.toLowerCase() as keyof typeof sonicPrices]?.price
).toFixed(3) ?? "0.010";
).toFixed(5) ?? "0.01000";

setGemPrice(_sGEM1Price);
}
Expand All @@ -62,7 +62,7 @@ const Rewards = (): JSX.Element => {
0
);

const _gems = String(formatNumber(900000, "abbreviate")).slice(1);
const _gems = String(formatNumber(1800000, "abbreviate")).slice(1);

const _points = String(
formatNumber(Number(pointsTotalSupply), "abbreviate")
Expand Down

0 comments on commit 96bbf2a

Please sign in to comment.