Skip to content

Commit

Permalink
Move constants, #1412
Browse files Browse the repository at this point in the history
  • Loading branch information
leocs2417 committed Nov 13, 2024
1 parent be8aab2 commit ff02d7a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 9 additions & 0 deletions site/src/constants/foreignAssets.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
export const MYTH_TOKEN_ACCOUNT =
"13gYFscwJFJFqFMNnttzuTtMrApUEmcUARtgFubbChU9g6mh";

const MYTH_TOKEN = "MYTH";

export const MYTH = {
value: MYTH_TOKEN,
name: MYTH_TOKEN,
symbol: MYTH_TOKEN,
decimals: 18,
};
4 changes: 2 additions & 2 deletions site/src/pages/Overview/polkadot/totalTreasury.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
useLoansPendulumDotBalance,
} from "../../../hooks/treasury/useLoansBalances";
import useAssetHubForeignAssets from "../../../hooks/assetHub/useAssetHubForeignAssets";
import { MYTH } from "../../../utils/chains/mythToken";
import { MYTH } from "../../../constants/foreignAssets";
import { MYTH_TOKEN_ACCOUNT } from "../../../constants/foreignAssets";

const Wrapper = styled(Card)`
Expand Down Expand Up @@ -176,7 +176,7 @@ export default function OverviewTotalTreasury() {
isLoading={isLoading}
totalValue={totalMythToken}
precision={MYTH.decimals}
symbol="MYTH"
symbol={MYTH.symbol}
/>
</TokenGroup>
</Wrapper>
Expand Down
8 changes: 0 additions & 8 deletions site/src/utils/chains/mythToken.js

This file was deleted.

0 comments on commit ff02d7a

Please sign in to comment.