Skip to content

Commit

Permalink
Merge pull request #392 from stabilitydao/dev-leaf
Browse files Browse the repository at this point in the history
upd: sGEM1 info
  • Loading branch information
a17 authored Feb 13, 2025
2 parents 9c1bae3 + 96bbf2a commit a53c979
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 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
Loading

0 comments on commit a53c979

Please sign in to comment.