diff --git a/public/index.html b/public/index.html
index b89a10d4..9fb7fea8 100644
--- a/public/index.html
+++ b/public/index.html
@@ -11,15 +11,12 @@
content="Buy and sell crypto options with Carmine Options AMM" />
-
+
-
-
diff --git a/src/components/Airdrop/AirdropModal.tsx b/src/components/Airdrop/AirdropModal.tsx
index a349eaa1..ce41add2 100644
--- a/src/components/Airdrop/AirdropModal.tsx
+++ b/src/components/Airdrop/AirdropModal.tsx
@@ -280,7 +280,9 @@ export const AirdropModal = ({ account, data, open, setOpen }: Props) => {
onClick={handleClaim}
className={stateToClassName(claimState)}
>
- {claimState === TransactionState.Processing && }
+ {claimState === TransactionState.Processing && (
+
+ )}
{claimState === TransactionState.Initial && "Claim"}
{claimState === TransactionState.Success && "Done!"}
{claimState === TransactionState.Fail && "Failed"}
diff --git a/src/components/CarmineStaking/StakeCRM.tsx b/src/components/CarmineStaking/StakeCRM.tsx
index 90814443..61554980 100644
--- a/src/components/CarmineStaking/StakeCRM.tsx
+++ b/src/components/CarmineStaking/StakeCRM.tsx
@@ -166,7 +166,7 @@ export const StakeCrm = ({ account, carmBalance }: Props) => {
className={stateToClassName(monthState)}
>
{monthState === TransactionState.Processing && (
-
+
)}
{monthState === TransactionState.Initial && "1 month"}
{monthState === TransactionState.Success && "Done!"}
@@ -180,7 +180,7 @@ export const StakeCrm = ({ account, carmBalance }: Props) => {
className={stateToClassName(sixMonthsState)}
>
{sixMonthsState === TransactionState.Processing && (
-
+
)}
{sixMonthsState === TransactionState.Initial && "6 months"}
{sixMonthsState === TransactionState.Success && "Done!"}
@@ -194,7 +194,7 @@ export const StakeCrm = ({ account, carmBalance }: Props) => {
className={stateToClassName(yearState)}
>
{yearState === TransactionState.Processing && (
-
+
)}
{yearState === TransactionState.Initial && "1 year"}
{yearState === TransactionState.Success && "Done!"}
diff --git a/src/components/CarmineStaking/Staking.tsx b/src/components/CarmineStaking/Staking.tsx
index 89cb9030..c1542026 100644
--- a/src/components/CarmineStaking/Staking.tsx
+++ b/src/components/CarmineStaking/Staking.tsx
@@ -9,6 +9,7 @@ import { QueryKeys } from "../../queries/keys";
import { fetchStakingData } from "./calls";
import { StakeCrm } from "./StakeCRM";
import { LoadingAnimation } from "../Loading/Loading";
+import { formatNumber } from "../../utils/utils";
export const StakeWithAccount = ({
account,
@@ -28,8 +29,14 @@ export const StakeWithAccount = ({
}
const { veCarmBalance, carmBalance, stakes } = data;
- const humanReadableVeCarmBalance = shortInteger(veCarmBalance, 18);
- const humanReadableCarmBalance = shortInteger(carmBalance, 18);
+ const humanReadableVeCarmBalance = formatNumber(
+ shortInteger(veCarmBalance, 18),
+ 4
+ );
+ const humanReadableCarmBalance = formatNumber(
+ shortInteger(carmBalance, 18),
+ 4
+ );
return (
diff --git a/src/components/CarmineStaking/StakingModal.tsx b/src/components/CarmineStaking/StakingModal.tsx
index 1cfff10c..cd0ddf13 100644
--- a/src/components/CarmineStaking/StakingModal.tsx
+++ b/src/components/CarmineStaking/StakingModal.tsx
@@ -216,7 +216,7 @@ export const StakingModal = ({ account, amount, open, setOpen }: Props) => {
className={stateToClassName(monthState)}
>
{monthState === TransactionState.Processing && (
-
+
)}
{monthState === TransactionState.Initial && "1 month"}
{monthState === TransactionState.Success && "Done!"}
@@ -230,7 +230,7 @@ export const StakingModal = ({ account, amount, open, setOpen }: Props) => {
className={stateToClassName(sixMonthsState)}
>
{sixMonthsState === TransactionState.Processing && (
-
+
)}
{sixMonthsState === TransactionState.Initial && "6 months"}
{sixMonthsState === TransactionState.Success && "Done!"}
@@ -244,7 +244,7 @@ export const StakingModal = ({ account, amount, open, setOpen }: Props) => {
className={stateToClassName(yearState)}
>
{yearState === TransactionState.Processing && (
-
+
)}
{yearState === TransactionState.Initial && "1 year"}
{yearState === TransactionState.Success && "Done!"}
@@ -263,7 +263,7 @@ export const StakingModal = ({ account, amount, open, setOpen }: Props) => {
className={stateToClassName(unstakeState)}
>
{unstakeState === TransactionState.Processing && (
-
+
)}
{unstakeState === TransactionState.Initial && "Unstake"}
{unstakeState === TransactionState.Success && "Done!"}
diff --git a/src/components/CarmineStaking/UnstakeModal.tsx b/src/components/CarmineStaking/UnstakeModal.tsx
index 96daf713..4ef7c291 100644
--- a/src/components/CarmineStaking/UnstakeModal.tsx
+++ b/src/components/CarmineStaking/UnstakeModal.tsx
@@ -172,7 +172,7 @@ export const UnstakeModal = ({ account, stake, open, setOpen }: Props) => {
className={stateToClassName(monthState)}
>
{monthState === TransactionState.Processing && (
-
+
)}
{monthState === TransactionState.Initial && "1 month"}
{monthState === TransactionState.Success && "Done!"}
@@ -186,7 +186,7 @@ export const UnstakeModal = ({ account, stake, open, setOpen }: Props) => {
className={stateToClassName(sixMonthsState)}
>
{sixMonthsState === TransactionState.Processing && (
-
+
)}
{sixMonthsState === TransactionState.Initial && "6 months"}
{sixMonthsState === TransactionState.Success && "Done!"}
@@ -200,7 +200,7 @@ export const UnstakeModal = ({ account, stake, open, setOpen }: Props) => {
className={stateToClassName(yearState)}
>
{yearState === TransactionState.Processing && (
-
+
)}
{yearState === TransactionState.Initial && "1 year"}
{yearState === TransactionState.Success && "Done!"}
@@ -219,7 +219,7 @@ export const UnstakeModal = ({ account, stake, open, setOpen }: Props) => {
className={stateToClassName(unstakeState)}
>
{unstakeState === TransactionState.Processing && (
-
+
)}
{unstakeState === TransactionState.Initial && "Unstake"}
{unstakeState === TransactionState.Success && "Done!"}
diff --git a/src/components/CryptoGraph/AlternativeTradingView.tsx b/src/components/CryptoGraph/AlternativeTradingView.tsx
index 2f0716cf..e037f3a1 100644
--- a/src/components/CryptoGraph/AlternativeTradingView.tsx
+++ b/src/components/CryptoGraph/AlternativeTradingView.tsx
@@ -35,7 +35,7 @@ function TradingViewWidget() {
"hideSymbolLogo": false,
"scalePosition": "right",
"scaleMode": "Normal",
- "fontFamily": "IBM Plex Sans Condensed, sans-serif, -apple-system, BlinkMacSystemFont, Trebuchet MS, Roboto, Ubuntu, sans-serif",
+ "fontFamily": "IBM Plex Sans Condensed, sans-serif, -apple-system, sans-serif",
"fontSize": "10",
"noTimeScale": false,
"valuesTracking": "1",
diff --git a/src/components/Portfolio/MyOptions.tsx b/src/components/Portfolio/MyOptions.tsx
index 4978360f..309f3931 100644
--- a/src/components/Portfolio/MyOptions.tsx
+++ b/src/components/Portfolio/MyOptions.tsx
@@ -72,8 +72,8 @@ const LiveItem = ({
{formatNumber(option.size, 4)}
- {" "}
{formatNumber(option.value, 3)}
+
${valueUsd}
diff --git a/src/components/Portfolio/MyStake.tsx b/src/components/Portfolio/MyStake.tsx
index 18132e23..cf1251e7 100644
--- a/src/components/Portfolio/MyStake.tsx
+++ b/src/components/Portfolio/MyStake.tsx
@@ -38,8 +38,8 @@ const Item = ({
{stake.typeAsText}
- {" "}
{formatNumber(stake.value, 3)}
+
${valueUsd === undefined ? "--" : formatNumber(valueUsd, 2)}
diff --git a/src/components/Portfolio/portfolio.module.css b/src/components/Portfolio/portfolio.module.css
index 2669a67b..a8be870e 100644
--- a/src/components/Portfolio/portfolio.module.css
+++ b/src/components/Portfolio/portfolio.module.css
@@ -85,6 +85,7 @@
.item>div:nth-child(8) {
width: 80px;
+ text-align: right;
}
.header {
@@ -117,6 +118,7 @@
.stakeitem>div:nth-child(4) {
width: 140px;
+ text-align: right;
}
.stakeitem>div:nth-child(5) {
diff --git a/src/components/TokenBadge/badge.module.css b/src/components/TokenBadge/badge.module.css
index 7ab45716..ab3572a8 100644
--- a/src/components/TokenBadge/badge.module.css
+++ b/src/components/TokenBadge/badge.module.css
@@ -21,7 +21,6 @@
font-family: IBM Plex Sans Condensed;
font-weight: 500;
line-height: 18px;
- letter-spacing: 0.04em;
font-size: 15px;
margin-bottom: 0;
}
diff --git a/src/components/TradeTable/TradeTable.tsx b/src/components/TradeTable/TradeTable.tsx
index b6c033b1..462e5c1a 100644
--- a/src/components/TradeTable/TradeTable.tsx
+++ b/src/components/TradeTable/TradeTable.tsx
@@ -86,7 +86,7 @@ export const TradeTable = () => {
},
".css-1ly9a1d-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input":
{ paddingLeft: 0 },
- width: "225px",
+ width: "208px",
}}
>