Skip to content

Commit

Permalink
update token list, syrup and staking info
Browse files Browse the repository at this point in the history
  • Loading branch information
totop716 committed Dec 9, 2021
1 parent b33a6df commit 5ce0a6a
Show file tree
Hide file tree
Showing 4 changed files with 460 additions and 370 deletions.
3 changes: 2 additions & 1 deletion src/components/TopMovers/TopMovers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { makeStyles, useTheme } from '@material-ui/core/styles';
import { ArrowDropUp, ArrowDropDown } from '@material-ui/icons';
import Skeleton from '@material-ui/lab/Skeleton';
import { Token, ChainId } from '@uniswap/sdk';
import { getAddress } from '@ethersproject/address';
import { CurrencyLogo } from 'components';
import { getEthPrice, getTopTokens } from 'utils';
import { useTopTokens } from 'state/application/hooks';
Expand Down Expand Up @@ -79,7 +80,7 @@ const TopMovers: React.FC<TopMoversProps> = ({
{topMoverTokens.map((token: any, index: number) => {
const currency = new Token(
ChainId.MATIC,
token.id,
getAddress(token.id),
token.decimals,
);
const priceUp = Number(token.priceChangeUSD) > 0;
Expand Down
71 changes: 66 additions & 5 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1572,26 +1572,87 @@ export const MANA = new Token(
'MANA',
'Decentraland MANA',
);
export const GAIA = new Token(
ChainId.MATIC,
'0x723B17718289A91AF252D616DE2C77944962d122',
18,
'GAIA',
'GAIA Everworld',
);
export const SAND = new Token(
ChainId.MATIC,
'0xBbba073C31bF03b8ACf7c28EF0738DeCF3695683',
18,
'SAND',
'SAND',
);
export const ORARE = new Token(
ChainId.MATIC,
'0xFF2382Bd52efaceF02Cc895bcBFc4618608AA56F',
18,
'ORARE',
'One Rare Token',
);
export const MOCA = new Token(
ChainId.MATIC,
'0xcE899f26928a2B21c6a2Fddd393EF37c61dbA918',
18,
'MOCA',
'Museum of Crypto Art',
);
export const MTCL = new Token(
ChainId.MATIC,
'0x3642c3c8eBe0b36a29e37809e1c9A7DE06BC0B26',
18,
'MTCL',
'MaticLaunch',
);
export const XDG = new Token(
ChainId.MATIC,
'0xc6480Da81151B2277761024599E8Db2Ad4C388C8',
18,
'xDG',
'Decentral Games Governance',
);
export const BLANK = new Token(
ChainId.MATIC,
'0xf4C83080E80AE530d6f8180572cBbf1Ac9D5d435',
18,
'BLANK',
'GoBlank Token',
);
export const AGEUR = new Token(
ChainId.MATIC,
'0xE0B52e49357Fd4DAf2c15e02058DCE6BC0057db4',
18,
'agEUR',
'agEUR',
);
export const GAMER = new Token(
ChainId.MATIC,
'0x3f6b3595ecF70735D3f48D69b09C4E4506DB3F47',
18,
'GAMER',
'GameStation',
);

export const MATIC = WETH[ChainId.MATIC];
// TODO this is only approximate, it's actually based on blocks
export const PROPOSAL_LENGTH_IN_DAYS = 7;

export const GOVERNANCE_ADDRESS = '0x5e4be8Bc9637f0EAA1A755019e06A68ce081D58F'; //TODO: MATIC

const UNI_ADDRESS = '0x831753DD7087CaC61aB5644b308642cc1c33Dc13'; //TODO: MATIC QUICK

export const UNI: { [chainId in ChainId]: Token } = {
[ChainId.MATIC]: new Token(
ChainId.MATIC,
UNI_ADDRESS,
QUICK_ADDRESS,
18,
'QUICK',
'Quickswap',
),
[ChainId.MUMBAI]: new Token(
ChainId.MUMBAI,
UNI_ADDRESS,
QUICK_ADDRESS,
18,
'QUICK',
'Quickswap',
Expand Down Expand Up @@ -1742,4 +1803,4 @@ export const BETTER_TRADE_LINK_THRESHOLD = new Percent(

// the Uniswap Default token list lives here
export const DEFAULT_TOKEN_LIST_URL =
'https://unpkg.com/[email protected].9/build/quickswap-default.tokenlist.json';
'https://unpkg.com/[email protected].11/build/quickswap-default.tokenlist.json';
2 changes: 1 addition & 1 deletion src/constants/lists.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// the Quickswap Default token list lives here
export const DEFAULT_TOKEN_LIST_URL =
'https://unpkg.com/[email protected].9/build/quickswap-default.tokenlist.json';
'https://unpkg.com/[email protected].11/build/quickswap-default.tokenlist.json';

export const DEFAULT_LIST_OF_LISTS: string[] = [DEFAULT_TOKEN_LIST_URL];
Loading

0 comments on commit 5ce0a6a

Please sign in to comment.