diff --git a/src/assets/images/blindeye.svg b/src/assets/images/blindeye.svg deleted file mode 100755 index c8c08f9c2..000000000 --- a/src/assets/images/blindeye.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/constants/index.ts b/src/constants/index.ts index 3545e71b2..8f27a9212 100755 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -1507,6 +1507,72 @@ export const DERC = new Token( 'DERC', 'DeRace Token', ); + +export const KIRO = new Token( + ChainId.MATIC, + '0xB382C1cfA622795a534e5bd56Fac93d59BAc8B0D', + 18, + 'KIRO', + 'Kirobo', +); +export const RNDR = new Token( + ChainId.MATIC, + '0x61299774020dA444Af134c82fa83E3810b309991', + 18, + 'RNDR', + 'Render Token', +); + +export const WCRO = new Token( + ChainId.MATIC, + '0xf2D8124b8F9267DaD61351c7aD252362880C6638', + 18, + 'WCRO', + 'Wrapped CRO', +); +export const PECO = new Token( + ChainId.MATIC, + '0xA9536B9c75A9E0faE3B56a96AC8EdF76AbC91978', + 18, + 'PECO', + 'Polygon Ecosystem Index', +); +export const WELT = new Token( + ChainId.MATIC, + '0x23E8B6A3f6891254988B84Da3738D2bfe5E703b9', + 18, + 'WELT', + 'FABWELT', +); +export const MASQ = new Token( + ChainId.MATIC, + '0xEe9A352F6aAc4aF1A5B9f467F6a93E0ffBe9Dd35', + 18, + 'MASQ', + 'MASQ', +); +export const ELIXIR = new Token( + ChainId.MATIC, + '0xED0bb69f9F96E8C5FffdF16c468eceC385134eA5', + 18, + 'ELIXIR', + 'Starchi Liquid Luck', +); +export const ZIG = new Token( + ChainId.MATIC, + '0x7BeBd226154E865954A87650FAefA8F485d36081', + 18, + 'ZIG', + 'ZigCoin', +); +export const MANA = new Token( + ChainId.MATIC, + '0xA1c57f48F0Deb89f569dFbE6E2B7f46D33606fD4', + 18, + 'MANA', + 'Decentraland MANA', +); + export const MATIC = WETH[ChainId.MATIC]; // TODO this is only approximate, it's actually based on blocks export const PROPOSAL_LENGTH_IN_DAYS = 7; @@ -1676,4 +1742,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/quickswap-default-token-list@1.2.4/build/quickswap-default.tokenlist.json'; + 'https://unpkg.com/quickswap-default-token-list@1.2.9/build/quickswap-default.tokenlist.json'; diff --git a/src/constants/lists.ts b/src/constants/lists.ts index 5e64e6036..e7f188d12 100755 --- a/src/constants/lists.ts +++ b/src/constants/lists.ts @@ -1,5 +1,5 @@ // the Quickswap Default token list lives here export const DEFAULT_TOKEN_LIST_URL = - 'https://unpkg.com/quickswap-default-token-list@1.2.3/build/quickswap-default.tokenlist.json'; + 'https://unpkg.com/quickswap-default-token-list@1.2.9/build/quickswap-default.tokenlist.json'; export const DEFAULT_LIST_OF_LISTS: string[] = [DEFAULT_TOKEN_LIST_URL]; diff --git a/src/pages/FarmPage/FarmPage.tsx b/src/pages/FarmPage/FarmPage.tsx index 0a41f704e..485d9638d 100755 --- a/src/pages/FarmPage/FarmPage.tsx +++ b/src/pages/FarmPage/FarmPage.tsx @@ -1,6 +1,7 @@ import React, { useMemo, useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { Box, Typography, Grid, Divider } from '@material-ui/core'; +import { VisibilityOff, Visibility } from '@material-ui/icons'; import { TokenAmount, JSBI } from '@uniswap/sdk'; import { useStakingInfo } from 'state/stake/hooks'; import { FarmCard, ToggleSwitch } from 'components'; @@ -10,7 +11,6 @@ import { unwrappedToken } from 'utils/wrappedCurrency'; import { EMPTY } from 'constants/index'; import { ReactComponent as HelpIcon } from 'assets/images/HelpIcon1.svg'; import { ReactComponent as SearchIcon } from 'assets/images/SearchIcon.svg'; -import BlindEyeIcon from 'assets/images/blindeye.svg'; import ArrowUpIcon from 'assets/images/arrowup.svg'; import { useTotalSupplys } from 'data/TotalSupply'; @@ -109,6 +109,8 @@ const FarmPage: React.FC = () => { const stakingInfos = useStakingInfo(); const [stakedOnly, setStakeOnly] = useState(false); const [farmSearch, setFarmSearch] = useState(''); + const [hideDeposit, setHideDeposit] = useState(false); + const [hideRewards, setHideRewards] = useState(false); const baseCurrencies = stakingInfos.map((stakingInfo) => { const token0 = stakingInfo.tokens[0]; const baseTokenCurrency = unwrappedToken(stakingInfo.baseToken); @@ -271,9 +273,11 @@ const FarmPage: React.FC = () => { alignItems='flex-start' justifyContent='space-between' > - - Reward Rate: - + + + Reward Rate: + + {rewardRate.toLocaleString()} dQUICK @@ -289,10 +293,12 @@ const FarmPage: React.FC = () => { alignItems='flex-start' justifyContent='space-between' > - - Total Rewards: - - + + + Total Rewards: + + + ${totalRewardsUSD.toLocaleString()} @@ -304,10 +310,12 @@ const FarmPage: React.FC = () => { alignItems='flex-start' justifyContent='space-between' > - - 24h Fees: - - + + + 24h Fees: + + + ${totalFee.toLocaleString()} @@ -319,16 +327,31 @@ const FarmPage: React.FC = () => { alignItems='flex-start' justifyContent='space-between' > - + My deposits: - - {'blind + { + setHideDeposit(!hideDeposit); + }} + > + {hideDeposit ? ( + + ) : ( + + )} - - ${myDeposits} + + {hideDeposit ? ( + + ) : ( + ${myDeposits} + )} { alignItems='flex-start' justifyContent='space-between' > - + Unclaimed rewards: - - {'blind + { + setHideRewards(!hideRewards); + }} + > + {hideRewards ? ( + + ) : ( + + )} - {unclaimedRewards} dQUICK + {hideRewards ? ( + + ) : ( + {unclaimedRewards} dQUICK + )} diff --git a/src/pages/LandingPage/LandingPage.tsx b/src/pages/LandingPage/LandingPage.tsx index 10e1ac35a..7d0796434 100755 --- a/src/pages/LandingPage/LandingPage.tsx +++ b/src/pages/LandingPage/LandingPage.tsx @@ -467,17 +467,17 @@ const LandingPage: React.FC = () => { title: 'Reddit', }, { - link: '', + link: 'https://discord.com/invite/XJTM7FV88Y', icon: , title: 'Discord', }, { - link: '', + link: 'https://twitter.com/QuickswapDEX', icon: , title: 'Twitter', }, { - link: '', + link: 'https://quickswap-layer2.medium.com/', icon: , title: 'Medium', }, @@ -487,12 +487,12 @@ const LandingPage: React.FC = () => { title: 'Youtube', }, { - link: '', + link: 'https://t.me/QuickSwapDEX', icon: , title: 'Telegram', }, { - link: '', + link: 'https://www.coingecko.com/en/exchanges/quickswap', icon: , title: 'CoinGecko', }, @@ -707,9 +707,11 @@ const LandingPage: React.FC = () => { {socialicons.map((val, ind) => ( - - {val.icon} - + + + {val.icon} + + ))} diff --git a/src/state/lists/reducer.test.ts b/src/state/lists/reducer.test.ts index 3ecc3ea7f..2546de9dc 100755 --- a/src/state/lists/reducer.test.ts +++ b/src/state/lists/reducer.test.ts @@ -391,7 +391,7 @@ describe('list reducer', () => { expect(store.getState()).toEqual({ byUrl: {}, selectedListUrl: - 'https://unpkg.com/quickswap-default-token-list@1.2.3/build/quickswap-default.tokenlist.json', + 'https://unpkg.com/quickswap-default-token-list@1.2.9/build/quickswap-default.tokenlist.json', }); }); }); diff --git a/src/state/stake/hooks.ts b/src/state/stake/hooks.ts index bb244b10e..f0fa01e2c 100755 --- a/src/state/stake/hooks.ts +++ b/src/state/stake/hooks.ts @@ -7,15 +7,15 @@ import { Pair, } from '@uniswap/sdk'; import { useMemo, useEffect /** , useState */ } from 'react'; -import { usePair } from '../../data/Reserves'; +import { usePair } from 'data/Reserves'; -import { client, healthClient } from '../../apollo/client'; +import { client, healthClient } from 'apollo/client'; import { GLOBAL_DATA, PAIRS_BULK, PAIRS_HISTORICAL_BULK, SUBGRAPH_HEALTH, -} from '../../apollo/queries'; +} from 'apollo/queries'; import { UNI, USDC, @@ -43,29 +43,47 @@ import { DB, GAME, HEX, + //MRBAL, + //ZUT, FRAX, IFARM, VISION, + //PPDEX, + //MUST, DG, UBT, FXS, LINK, + //CFI, + //DRC, DSLA, ARIA20, CEL, SUPER, + //XMARK, DEFI5, + //AZUKI, + //HH, + //MDEF, + //DMT, DEGEN, LAIR_ADDRESS, DQUICK, CC10, + //ZUZ, WISE, MOCEAN, AGA, AGAr, ELET, WOLF, + //BTU, + //CTSI, + //NFTP, GFARM2, + //ANY, + //FSN, + //PLOT, AAVE, TEL, //KRILL, @@ -184,24 +202,30 @@ import { DERC, UM, WSG, -} from '../../constants'; + ELIXIR, + MM, + PECO, + TECH, + ZIG, + WCRO, + MANA, + KIRO, +} from 'constants/index'; import { STAKING_REWARDS_INTERFACE, STAKING_DUAL_REWARDS_INTERFACE, -} from '../../constants/abis/staking-rewards'; -import { useActiveWeb3React } from '../../hooks'; +} from 'constants/abis/staking-rewards'; +import { useActiveWeb3React } from 'hooks'; import { NEVER_RELOAD, useMultipleContractSingleData, useSingleCallResult, useSingleContractMultipleData, -} from '../multicall/hooks'; -import { tryParseAmount } from '../swap/hooks'; +} from 'state/multicall/hooks'; +import { tryParseAmount } from 'state/swap/hooks'; import Web3 from 'web3'; -import { useLairContract, useQUICKContract } from '../../hooks/useContract'; -import useUSDCPrice from '../../utils/useUSDCPrice'; -// import { useSelector } from 'react-redux'; -// import { AppState } from '..'; +import { useLairContract, useQUICKContract } from 'hooks/useContract'; +import useUSDCPrice from 'utils/useUSDCPrice'; const web3 = new Web3('https://polygon-rpc.com/'); @@ -226,6 +250,66 @@ export const SYRUP_REWARDS_INFO: { }[]; } = { [ChainId.MATIC]: [ + { + token: UFI, + stakingRewardAddress: '0xE707bB8513873c2360811F01BfBd0e9EBFd96b0D', + ended: false, + lp: '', + name: '', + baseToken: MATIC, + rate: 18315, + ending: 1640485140, + }, + { + token: WSG, + stakingRewardAddress: '0x2b91d985AEb645cc580E35BdF52DF2694e742ADF', + ended: false, + lp: '', + name: '', + baseToken: QUICK, + rate: 41347011961.97, + ending: 1643077140, + }, + { + token: DERC, + stakingRewardAddress: '0xE800041A775D269e1cD38261B4500b0D8F0e9916', + ended: false, + lp: '', + name: '', + baseToken: USDC, + rate: 777.78, + ending: 1645669140, + }, + { + token: LMT, + stakingRewardAddress: '0x14902868ff379B89BaC6B6C47dcE06769A549Bfb', + ended: false, + lp: '', + name: '', + baseToken: ETHER, + rate: 9222.22, + ending: 1644944188, + }, + { + token: PNT, + stakingRewardAddress: '0x396dFF9c3DA3E0ACe3BB8F0635de5a693f990664', + ended: false, + lp: '', + name: '', + baseToken: ETHER, + rate: 1500, + ending: 1642352188, + }, + { + token: UM, + stakingRewardAddress: '0x1e027abDD77f8A93Cf58982b9878702d14941c56', + ended: false, + lp: '', + name: '', + baseToken: ETHER, + rate: 16666.68, + ending: 1642241616, + }, { token: MCASH, stakingRewardAddress: '0xb3DacE74b857C7b0F0890334B8E4770762Bcda5c', @@ -286,16 +370,6 @@ export const SYRUP_REWARDS_INFO: { rate: 3858, ending: 1642525260, }, - { - token: D11, - stakingRewardAddress: '0xc7E4C8024c580f2a7889b369Ea02957BcAC05b79', - ended: false, - lp: '', - name: '', - baseToken: MATIC, - rate: 728.6, - ending: 1637341260, - }, { token: UCO, stakingRewardAddress: '0xC328d6eC46d11a6ABdA3C02434861beA14739E1f', @@ -426,20 +500,66 @@ export const SYRUP_REWARDS_INFO: { rate: 5127.75, ending: 1638027392, }, + { + token: XCASH, + stakingRewardAddress: '0xe01e81c76253831602520582793991650225Bf81', + ended: false, + lp: '', + name: '', + baseToken: QUICK, + rate: 27777777.78, + ending: 1639408820, + }, + { + token: TEL, + stakingRewardAddress: '0x346C9e501aDc38F1f325CC0c2D44C325283eEaF1', + ended: false, + lp: '', + name: '', + baseToken: USDC, + rate: 333333.33, + ending: 1640200125, + }, + ], +}; + +export const OLD_SYRUP_REWARDS_INFO: { + [chainId in ChainId]?: { + token: Token; + stakingRewardAddress: string; + ended: boolean; + name: string; + lp: string; + baseToken: Token; + rate: number; + ending: number; //DATE IN UNIX TIMESTAMP + }[]; +} = { + [ChainId.MATIC]: [ { token: MITX, stakingRewardAddress: '0xBBD9146D2A687C0df7e6201D7b8cc4cebc5DF976', - ended: false, + ended: true, lp: '', name: '', baseToken: ETHER, rate: 29609.1, ending: 1637513623, }, + { + token: D11, + stakingRewardAddress: '0xc7E4C8024c580f2a7889b369Ea02957BcAC05b79', + ended: true, + lp: '', + name: '', + baseToken: MATIC, + rate: 728.6, + ending: 1637341260, + }, { token: OM, stakingRewardAddress: '0x304cd598F973208888e959D7f808052Ab863A7eA', - ended: false, + ended: true, lp: '', name: '', baseToken: QUICK, @@ -449,7 +569,7 @@ export const SYRUP_REWARDS_INFO: { { token: ELET, stakingRewardAddress: '0x18e23130973AA586652BB6d472f0eEf05a88fD3E', - ended: false, + ended: true, lp: '', name: '', baseToken: QUICK, @@ -459,27 +579,17 @@ export const SYRUP_REWARDS_INFO: { { token: ODDZ, stakingRewardAddress: '0x8DBa41FD5aDD941825f96a33b58d3242db7b918f', - ended: false, + ended: true, lp: '', name: '', baseToken: MATIC, rate: 4065.05, ending: 1637076798, }, - { - token: XCASH, - stakingRewardAddress: '0xe01e81c76253831602520582793991650225Bf81', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 27777777.78, - ending: 1639408820, - }, { token: TCP, stakingRewardAddress: '0x6d05D7aC6CC4b8A5552CF26cA04583c95e2F2b98', - ended: false, + ended: true, lp: '', name: '', baseToken: USDC, @@ -489,39 +599,13 @@ export const SYRUP_REWARDS_INFO: { { token: MEEB, stakingRewardAddress: '0x639F9394Ca689824ABE4e3d4D6acdB726f4a54F0', - ended: false, + ended: true, lp: '', name: '', baseToken: ETHER, rate: 166.67, ending: 1636816820, }, - { - token: TEL, - stakingRewardAddress: '0x346C9e501aDc38F1f325CC0c2D44C325283eEaF1', - ended: false, - lp: '', - name: '', - baseToken: USDC, - rate: 333333.33, - ending: 1640200125, - }, - ], -}; - -export const OLD_SYRUP_REWARDS_INFO: { - [chainId in ChainId]?: { - token: Token; - stakingRewardAddress: string; - ended: boolean; - name: string; - lp: string; - baseToken: Token; - rate: number; - ending: number; //DATE IN UNIX TIMESTAMP - }[]; -} = { - [ChainId.MATIC]: [ { token: PLR, stakingRewardAddress: '0x6E0635d3a2c76b38B69aB8Ef3c1a970D9e3475Fc', @@ -824,8 +908,8 @@ export const STAKING_DUAL_REWARDS_INFO: { rewardTokenA: DQUICK, rewardTokenB: MATIC, rewardTokenBBase: USDC, - rateA: 30.537, - rateB: 3000, + rateA: 29.146, + rateB: 2500, pair: '0xadbf1854e5883eb8aa7baf50705338739e558e5b', }, { @@ -838,10 +922,24 @@ export const STAKING_DUAL_REWARDS_INFO: { rewardTokenA: DQUICK, rewardTokenB: MATIC, rewardTokenBBase: USDC, - rateA: 11.745, - rateB: 3000, + rateA: 10.738, + rateB: 2500, pair: '0x6e7a5fafcec6bb1e78bae2a1f0b612012bf14827', }, + { + tokens: [MATIC, QUICK], + stakingRewardAddress: '0xd26E16f5a9dfb9Fe32dB7F6386402B8AAe1a5dd7', + ended: false, + lp: '', + name: '', + baseToken: MATIC, + rewardTokenA: DQUICK, + rewardTokenB: MATIC, + rewardTokenBBase: USDC, + rateA: 10.738, + rateB: 1000, + pair: '0x019ba0325f1988213d448b3472fa1cf8d07618d7', + }, { tokens: [MATIC, USDT], stakingRewardAddress: '0xc0eb5d1316b835F4B584B59f922d9c87cA5053E5', @@ -852,23 +950,23 @@ export const STAKING_DUAL_REWARDS_INFO: { rewardTokenA: DQUICK, rewardTokenB: MATIC, rewardTokenBBase: USDC, - rateA: 5.481, - rateB: 2500, + rateA: 5.369, + rateB: 2000, pair: '0x604229c960e5cacf2aaeac8be68ac07ba9df81c3', }, { - tokens: [MATIC, QUICK], - stakingRewardAddress: '0xd26E16f5a9dfb9Fe32dB7F6386402B8AAe1a5dd7', + tokens: [KIRO, MATIC], + stakingRewardAddress: '0xfF22Bf1f778BcD6741D823b077285533EC582F78', ended: false, lp: '', name: '', baseToken: MATIC, rewardTokenA: DQUICK, - rewardTokenB: MATIC, - rewardTokenBBase: USDC, - rateA: 11.745, - rateB: 1500, - pair: '0x019ba0325f1988213d448b3472fa1cf8d07618d7', + rewardTokenB: KIRO, + rewardTokenBBase: MATIC, + rateA: 4.602, + rateB: 20000, + pair: '0x3f245c6f18442bd6198d964c567a01bd4202e290', }, { tokens: [GENESIS, QUICK], @@ -907,7 +1005,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 32.466, + rate: 29.913, pair: '0x853ee4b2a13f8a742d64c8f088be7ba2131f670d', }, { @@ -917,7 +1015,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 13.141, + rate: 12.272, pair: '0xdc9232e2df177d7a12fdff6ecbab114e2231198d', }, { @@ -927,7 +1025,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 10.822, + rate: 9.971, pair: '0xf6422b997c7f54d1c6a6e103bcb1499eea0a7046', }, { @@ -937,7 +1035,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 8.503, + rate: 7.67, pair: '0x1bd06b96dd42ada85fdd0795f3b4a79db914add5', }, { @@ -947,7 +1045,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 7.73, + rate: 6.903, pair: '0x90bc3e68ba8393a3bf2d79309365089975341a43', }, { @@ -957,7 +1055,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: DAI, - rate: 7.73, + rate: 6.903, pair: '0x4a35582a710e1f4b2030a3f826da20bfb6703c09', }, { @@ -967,7 +1065,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDT, - rate: 6.184, + rate: 5.369, pair: '0xe89fae1b4ada2c869f05a0c96c87022dadc7709a', }, { @@ -977,28 +1075,28 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: DAI, - rate: 6.184, + rate: 5.369, pair: '0x74214f5d8aa71b8dc921d8a963a1ba3605050781', }, { - tokens: [WBTC, USDC], - stakingRewardAddress: '0xBF0b0DEF82C1D473e6B8770458Ddc82f5C8C7504', + tokens: [DERC, USDC], + stakingRewardAddress: '0xaBECe67c01cd2E8ecBFaA311bd08EC299dA03629', ended: false, lp: '', name: '', baseToken: USDC, - rate: 5.411, - pair: '0xf6a637525402643b0654a54bead2cb9a83c8b498', + rate: 5.369, + pair: '0x0a8a3cb9a21c893a207826e76125ef6faaad99ec', }, { - tokens: [DERC, USDC], - stakingRewardAddress: '0xaBECe67c01cd2E8ecBFaA311bd08EC299dA03629', + tokens: [WBTC, USDC], + stakingRewardAddress: '0xBF0b0DEF82C1D473e6B8770458Ddc82f5C8C7504', ended: false, lp: '', name: '', baseToken: USDC, - rate: 5.411, - pair: '0x0a8a3cb9a21c893a207826e76125ef6faaad99ec', + rate: 4.602, + pair: '0xf6a637525402643b0654a54bead2cb9a83c8b498', }, { tokens: [QI, ETHER], @@ -1007,7 +1105,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 4.638, + rate: 4.602, pair: '0x8c1b40ea78081b70f661c3286c74e71b4602c9c0', }, { @@ -1017,7 +1115,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 4.638, + rate: 4.602, pair: '0x5ca6ca6c3709e1e6cfe74a50cf6b2b6ba2dadd67', }, { @@ -1027,29 +1125,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 4.638, + rate: 4.602, pair: '0x1f1e4c845183ef6d50e9609f16f6f9cae43bc9cb', }, - { - tokens: [POLYDOGE, QUICK], - stakingRewardAddress: '0x403A2604226585Cb1e07D644780930D650EA4b73', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 4.638, - pair: '0xbedee6a7c572aa855a0c84d2f504311d482862f4', - }, - { - tokens: [XCASH, QUICK], - stakingRewardAddress: '0x7E9E46BBAa92a2d18c17B8e8c537Cc488f0f1559', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 3.865, - pair: '0x30167fea9499c11795bfd104667240bdac939d3a', - }, { tokens: [USDC, USDT], stakingRewardAddress: '0xAFB76771C98351Aa7fCA13B130c9972181612b54', @@ -1057,7 +1135,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 3.865, + rate: 3.835, pair: '0x2cf7252e74036d1da831d11089d326296e64a728', }, { @@ -1067,7 +1145,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 3.865, + rate: 3.835, pair: '0x25bae75f6760ac30554cc62f9282307c3038c3a0', }, { @@ -1077,7 +1155,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 3.865, + rate: 3.835, pair: '0x13305f843e66f7cc7f9cb1bbc40dabee7086d1f8', }, { @@ -1087,7 +1165,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 3.865, + rate: 3.835, pair: '0x82ee4008e2de03f3a3e25434506f0d4d423afaad', }, { @@ -1097,9 +1175,49 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 3.865, + rate: 3.835, pair: '0xaddd6bed667c361087a97b34b1a0da4e0d0131ed', }, + { + tokens: [GNS, DAI], + stakingRewardAddress: '0x33025b177A35F6275b78f9c25684273fc24B4e43', + ended: false, + lp: '', + name: '', + baseToken: DAI, + rate: 3.835, + pair: '0x6e53cb6942e518376e9e763554db1a45ddcd25c4', + }, + { + tokens: [XCASH, QUICK], + stakingRewardAddress: '0x7E9E46BBAa92a2d18c17B8e8c537Cc488f0f1559', + ended: false, + lp: '', + name: '', + baseToken: QUICK, + rate: 3.068, + pair: '0x30167fea9499c11795bfd104667240bdac939d3a', + }, + { + tokens: [EROWAN, ATOM], + stakingRewardAddress: '0x70C674bCe0aEc05E0d13bFEdd692b2F231323899', + ended: false, + lp: '', + name: '', + baseToken: ATOM, + rate: 3.068, + pair: '0x7051810a53030171f01d89e9aebd8a599de1b530', + }, + { + tokens: [SNE, USDC], + stakingRewardAddress: '0xeB029E7a319207db79C54fdf4ee377Fe749A90b3', + ended: false, + lp: '', + name: '', + baseToken: USDC, + rate: 3.068, + pair: '0x23baf6d86c80eb18b1799763ea47eae6fe727767', + }, { tokens: [RUSD, USDC], stakingRewardAddress: '0x94d024C05E2eae6ee3C9E0711D3E18C80F8CebA8', @@ -1107,7 +1225,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 3.092, + rate: 2.301, pair: '0x5ef8747d1dc4839e92283794a10d448357973ac0', }, { @@ -1117,7 +1235,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 3.092, + rate: 2.301, pair: '0xfe4ba2ab8562b6204a17f19651c760818a361571', }, { @@ -1127,19 +1245,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 3.092, + rate: 2.301, pair: '0x631f39d22430e889a3cfbea4fd73ed101059075f', }, - { - tokens: [EROWAN, ATOM], - stakingRewardAddress: '0x70C674bCe0aEc05E0d13bFEdd692b2F231323899', - ended: false, - lp: '', - name: '', - baseToken: ATOM, - rate: 3.092, - pair: '0x7051810a53030171f01d89e9aebd8a599de1b530', - }, { tokens: [SHIB, MATIC], stakingRewardAddress: '0x807a2EF804a8557bF5eC9c03FF869888E6af8E83', @@ -1147,98 +1255,118 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 3.092, + rate: 2.301, pair: '0x5fb641de2663e8a94c9dea0a539817850d996e99', }, { - tokens: [SNE, USDC], - stakingRewardAddress: '0xeB029E7a319207db79C54fdf4ee377Fe749A90b3', + tokens: [START, QUICK], + stakingRewardAddress: '0xB1B2e2b4cBED8e7b6FF7Cca016760ccA9260f0Ec', ended: false, lp: '', name: '', - baseToken: USDC, - rate: 3.092, - pair: '0x23baf6d86c80eb18b1799763ea47eae6fe727767', + baseToken: QUICK, + rate: 2.301, + pair: '0x9e2b254c7d6ad24afb334a75ce21e216a9aa25fc', }, { - tokens: [UNITOKEN, ETHER], - stakingRewardAddress: '0x76cC4059Dd19518c377934CD799615B3543967fd', + tokens: [UM, ETHER], + stakingRewardAddress: '0x7b6151f2935cE9420eEb79D2B9821515b7f3E876', ended: false, lp: '', name: '', baseToken: ETHER, - rate: 2.319, - pair: '0xf7135272a5584eb116f5a77425118a8b4a2ddfdb', + rate: 2.301, + pair: '0x78413ed015b19766c8881f6f1bb9011ce95ec786', }, { - tokens: [MCASH, ETHER], - stakingRewardAddress: '0xd24FdB548704D8C6AA1e15B238E4cBe10d214119', + tokens: [PECO, MATIC], + stakingRewardAddress: '0x27b3f4e93b7dCE173F682E760F492665e7f15Ad9', ended: false, lp: '', name: '', - baseToken: ETHER, - rate: 2.319, - pair: '0x1fef1ce437bb025c08609e0c14ab916622bd09f4', + baseToken: MATIC, + rate: 2.301, + pair: '0xc2ea6521f23358d18c3623d33ce1106f798acc64', }, { - tokens: [START, QUICK], - stakingRewardAddress: '0xB1B2e2b4cBED8e7b6FF7Cca016760ccA9260f0Ec', + tokens: [MM, USDC], + stakingRewardAddress: '0x164A74cD08e6a0851fbE74B16E5E18d02c5E86f6', ended: false, lp: '', name: '', - baseToken: QUICK, - rate: 2.319, - pair: '0x9e2b254c7d6ad24afb334a75ce21e216a9aa25fc', + baseToken: USDC, + rate: 2.301, + pair: '0x5e06e1da9b7cb3ddd0df596003ad4cb852f51955', }, { - tokens: [UFI, MATIC], - stakingRewardAddress: '0xa34cd2445597DEBcD8E1B85D45E9A075EA485d20', + tokens: [TECH, ETHER], + stakingRewardAddress: '0xD039f25F567C406393D0534Cbae304d2294141d0', + ended: false, + lp: '', + name: '', + baseToken: ETHER, + rate: 2.301, + pair: '0x204a7adc76db7fe8c5e5f499cb3c4cff6d7282c2', + }, + { + tokens: [ELIXIR, MATIC], + stakingRewardAddress: '0x428F09ab6aF0B0A235fD0FcEC1519912DA610011', ended: false, lp: '', name: '', baseToken: MATIC, - rate: 2.319, - pair: '0x8095d1fb36138fc492337a63c52d03764d12e771', + rate: 2.301, + pair: '0x7a6830a9e6f964104b52243922a7738de4cff84a', }, { - tokens: [GNS, DAI], - stakingRewardAddress: '0x33025b177A35F6275b78f9c25684273fc24B4e43', + tokens: [DPI, ETHER], + stakingRewardAddress: '0x906F45309470C528625Ad860282ccB6D268e8b4f', ended: false, lp: '', name: '', - baseToken: DAI, - rate: 2.319, - pair: '0x6e53cb6942e518376e9e763554db1a45ddcd25c4', + baseToken: ETHER, + rate: 1.9175, + pair: '0x9f77ef7175032867d26e75d2fa267a6299e3fb57', }, { - tokens: [AUMI, MATIC], - stakingRewardAddress: '0x7549bD32cAbA7bdeb4d7bcAF3f7Ff8bed13577Bc', + tokens: [POLYDOGE, QUICK], + stakingRewardAddress: '0x403A2604226585Cb1e07D644780930D650EA4b73', ended: false, lp: '', name: '', - baseToken: MATIC, - rate: 2.319, - pair: '0x3a2fe73866bac2d28501e4e6149ef9057463c365', + baseToken: QUICK, + rate: 1.534, + pair: '0xbedee6a7c572aa855a0c84d2f504311d482862f4', }, { - tokens: [UM, ETHER], - stakingRewardAddress: '0x7b6151f2935cE9420eEb79D2B9821515b7f3E876', + tokens: [MCASH, ETHER], + stakingRewardAddress: '0xd24FdB548704D8C6AA1e15B238E4cBe10d214119', ended: false, lp: '', name: '', baseToken: ETHER, - rate: 2.319, - pair: '0x78413ed015b19766c8881f6f1bb9011ce95ec786', + rate: 1.534, + pair: '0x1fef1ce437bb025c08609e0c14ab916622bd09f4', }, { - tokens: [DPI, ETHER], - stakingRewardAddress: '0x906F45309470C528625Ad860282ccB6D268e8b4f', + tokens: [UFI, MATIC], + stakingRewardAddress: '0xa34cd2445597DEBcD8E1B85D45E9A075EA485d20', ended: false, lp: '', name: '', - baseToken: ETHER, - rate: 1.9325, - pair: '0x9f77ef7175032867d26e75d2fa267a6299e3fb57', + baseToken: MATIC, + rate: 1.534, + pair: '0x8095d1fb36138fc492337a63c52d03764d12e771', + }, + { + tokens: [AUMI, MATIC], + stakingRewardAddress: '0x7549bD32cAbA7bdeb4d7bcAF3f7Ff8bed13577Bc', + ended: false, + lp: '', + name: '', + baseToken: MATIC, + rate: 1.534, + pair: '0x3a2fe73866bac2d28501e4e6149ef9057463c365', }, { tokens: [MASK, USDC], @@ -1247,7 +1375,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 1.546, + rate: 1.534, pair: '0x253d637068fbf11b18d0f2a1bf3b167d37802687', }, { @@ -1257,7 +1385,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 1.546, + rate: 1.534, pair: '0x592d8faea9e740facbd6115abd92d2e6acb2f8f1', }, { @@ -1267,7 +1395,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 1.546, + rate: 1.534, pair: '0xf04adbf75cdfc5ed26eea4bbbb991db002036bdd', }, { @@ -1277,19 +1405,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 1.546, + rate: 1.534, pair: '0xeb477ae74774b697b5d515ef8ca09e24fee413b5', }, - { - tokens: [RDOGE, ETHER], - stakingRewardAddress: '0x16043947b496a5B31932bcF9f41dD66880ff2Bb7', - ended: false, - lp: '', - name: '', - baseToken: ETHER, - rate: 1.546, - pair: '0xab1403de66519b898b38028357b74df394a54a37', - }, { tokens: [SOL, MATIC], stakingRewardAddress: '0xB332b9D67E20bb8Ce4B93308A63C2EE2F846D372', @@ -1297,7 +1415,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 1.546, + rate: 1.534, pair: '0x898386dd8756779a4ba4f1462891b92dd76b78ef', }, { @@ -1307,7 +1425,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 1.546, + rate: 1.534, pair: '0x40a5df3e37152d4daf279e0450289af76472b02e', }, { @@ -1317,7 +1435,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 1.546, + rate: 1.534, pair: '0x8000fe11cffa3ced146d98f091d95c9bc2c55c97', }, { @@ -1327,7 +1445,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: EROWAN, - rate: 1.546, + rate: 1.534, pair: '0xf366df119532b2e0f4e416c81d6ff7728a60fe7d', }, { @@ -1337,7 +1455,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: EROWAN, - rate: 1.546, + rate: 1.534, pair: '0x58ffb271c6f3d92f03c49e08e2887810f65b8cd6', }, { @@ -1347,7 +1465,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: EROWAN, - rate: 1.546, + rate: 1.534, pair: '0x66c37a00e426a613b188180198aac12b0b4ae4d4', }, { @@ -1357,7 +1475,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: EROWAN, - rate: 1.546, + rate: 1.534, pair: '0xa651ef83fa6a90e76206de4e79a5c69f80994556', }, { @@ -1367,7 +1485,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 1.546, + rate: 1.534, pair: '0xd2b61a42d3790533fedc2829951a65120624034a', }, { @@ -1377,7 +1495,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 1.546, + rate: 1.534, pair: '0x150255a6ba2d32ac058e8b435a445f5137a21857', }, { @@ -1387,7 +1505,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 1.546, + rate: 1.534, pair: '0xdfb3d129f32b32852e74322e699580d75ca4521e', }, { @@ -1397,7 +1515,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 1.546, + rate: 1.534, pair: '0xde84c8f0562eb56a5fc8f07819cef1faf9df3ebc', }, { @@ -1407,7 +1525,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 1.546, + rate: 1.534, pair: '0xf60618c6ab18e347428a3ee72bf95a720bb45ee6', }, { @@ -1417,118 +1535,108 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: WBTC, - rate: 1.546, + rate: 1.534, pair: '0x0850f9bf21cdba7d2817fca8e5f9d3b96feff3dd', }, { - tokens: [NEXO, ETHER], - stakingRewardAddress: '0x1476331f814c00F1d15dc6187A0EB1e1E403D745', + tokens: [ZIG, QUICK], + stakingRewardAddress: '0x089C2D16eFCf91A69dae6f0c5769cc1b6F1da26d', ended: false, lp: '', name: '', - baseToken: ETHER, - rate: 1.1595, - pair: '0x10062ec62c0be26cc9e2f50a1cf784a89ded075f', - }, - { - tokens: [REVV, USDC], - stakingRewardAddress: '0x97E4bcF95DfA4C0EDAcFd12287317BfaF5B4866A', - ended: false, - lp: '', - name: '', - baseToken: USDC, - rate: 1.1595, - pair: '0xe4139dbf19e9c8d880f915711c8674022979d432', + baseToken: QUICK, + rate: 1.534, + pair: '0x9d6d31d8bd564cd77a70b7a0cc1416be9dcd8b6f', }, { - tokens: [TCP, USDC], - stakingRewardAddress: '0x43CdB843Bdc76DDfb9F5aE1B9F20424E9D77cED6', + tokens: [MANA, MATIC], + stakingRewardAddress: '0xee61B0C32ADf887d265236f57AC0a2449CC931C7', ended: false, lp: '', name: '', - baseToken: USDC, - rate: 0.773, - pair: '0xad431d0bde99e21d9848691615a0756a09ed3dce', + baseToken: MATIC, + rate: 1.534, + pair: '0x6b0ce31ead9b14c2281d80a5dde903ab0855313a', }, { - tokens: [OM, QUICK], - stakingRewardAddress: '0x7Cb08B1dd9A9fA5da22ef99E7Fb00a856DA6A2c7', + tokens: [WCRO, MATIC], + stakingRewardAddress: '0xd2A750C2Ce25E47C3A0Abe9B5966a20e60288091', ended: false, lp: '', name: '', - baseToken: QUICK, - rate: 0.773, - pair: '0xdfa81e266ff54a7d9d26c5083f9631e685d833d7', + baseToken: MATIC, + rate: 1.534, + pair: '0xfd168748dd07a32a401e800240aec8ec6efc706f', }, { - tokens: [RELAY, QUICK], - stakingRewardAddress: '0x8eF44aF84D79717577C54DD7eC60a60945404680', + tokens: [UNITOKEN, ETHER], + stakingRewardAddress: '0x76cC4059Dd19518c377934CD799615B3543967fd', ended: false, lp: '', name: '', - baseToken: QUICK, - rate: 0.773, - pair: '0x7ca8e540df6326005b72661e50f1350c84c0e55d', + baseToken: ETHER, + rate: 0.767, + pair: '0xf7135272a5584eb116f5a77425118a8b4a2ddfdb', }, { - tokens: [UGT, ETHER], - stakingRewardAddress: '0x4Cef5a7B5736e65ad9dd6Ab52eD79eF1BbeBec84', + tokens: [RDOGE, ETHER], + stakingRewardAddress: '0x16043947b496a5B31932bcF9f41dD66880ff2Bb7', ended: false, lp: '', name: '', baseToken: ETHER, - rate: 0.773, - pair: '0x15551bedc20b01b473da93e6cfa29b1eb7baeabb', + rate: 0.767, + pair: '0xab1403de66519b898b38028357b74df394a54a37', }, { - tokens: [ZUSD, USDC], - stakingRewardAddress: '0xE3Cd2c9971C12F817Aac1350654CBae53BE72433', + tokens: [REVV, USDC], + stakingRewardAddress: '0x97E4bcF95DfA4C0EDAcFd12287317BfaF5B4866A', ended: false, lp: '', name: '', baseToken: USDC, - rate: 0.773, - pair: '0xca8e44fdf749a7c5c28bc927726ea21ccd669969', + rate: 0.767, + pair: '0xe4139dbf19e9c8d880f915711c8674022979d432', }, { - tokens: [MATIC, MI], - stakingRewardAddress: '0x5F709F81cdA3E84fC2af3662B8B8C3F4f44e3d4E', + tokens: [TCP, USDC], + stakingRewardAddress: '0x43CdB843Bdc76DDfb9F5aE1B9F20424E9D77cED6', ended: false, lp: '', name: '', - baseToken: MATIC, - rate: 0.773, - pair: '0x7805b64e2d99412d3b8f10dfe8fc55217c5cc954', + baseToken: USDC, + rate: 0.767, + pair: '0xad431d0bde99e21d9848691615a0756a09ed3dce', }, { - tokens: [REI, QUICK], - stakingRewardAddress: '0x5189B2e1A3896c053D094633B77Adc6AeBCF7C03', + tokens: [OM, QUICK], + stakingRewardAddress: '0x7Cb08B1dd9A9fA5da22ef99E7Fb00a856DA6A2c7', ended: false, lp: '', name: '', baseToken: QUICK, - rate: 0.773, - pair: '0x1c75bd54ad15449d12e6c24a9b5e8ce1a62c567c', + rate: 0.767, + pair: '0xdfa81e266ff54a7d9d26c5083f9631e685d833d7', }, { - tokens: [ETHA, QUICK], - stakingRewardAddress: '0xDBFb709a40F4B6C10DbfC27Cd96F90cf67EbBcF1', + tokens: [MATIC, MI], + stakingRewardAddress: '0x5F709F81cdA3E84fC2af3662B8B8C3F4f44e3d4E', ended: false, lp: '', name: '', - baseToken: QUICK, - rate: 0.773, - pair: '0x8167d3156fccdbaf3e43ae019a0e842e5d1f1ac1', + baseToken: MATIC, + rate: 0.767, + pair: '0x7805b64e2d99412d3b8f10dfe8fc55217c5cc954', }, { - tokens: [MEEB, ETHER], - stakingRewardAddress: '0x7a066B2e504ae958926F5DAa2A31aC5Fa278c52D', + tokens: [ETHA, QUICK], + stakingRewardAddress: '0xDBFb709a40F4B6C10DbfC27Cd96F90cf67EbBcF1', ended: false, lp: '', name: '', - baseToken: ETHER, - rate: 0.773, - pair: '0xd0a4bbb49ddd36b0d832d485974a2387d81dbdd3', + baseToken: QUICK, + rate: 0.767, + pair: '0x8167d3156fccdbaf3e43ae019a0e842e5d1f1ac1', }, { tokens: [DAI, USDT], @@ -1537,7 +1645,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: DAI, - rate: 0.773, + rate: 0.767, pair: '0x59153f27eefe07e5ece4f9304ebba1da6f53ca88', }, { @@ -1547,7 +1655,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 0.773, + rate: 0.767, pair: '0xc52f4e49c7fb3ffceb48ad06c3f3a17ad5c0dbfe', }, { @@ -1557,19 +1665,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 0.773, + rate: 0.767, pair: '0x62052b489cb5bc72a9dc8eeae4b24fd50639921a', }, - { - tokens: [UGT, QUICK], - stakingRewardAddress: '0x20b07BF5d7c84171c84Daf1ec327306830561AD9', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 0.773, - pair: '0x29429e4099ed88884729b8fa800b9c65dbe57b63', - }, { tokens: [ETHA, USDC], stakingRewardAddress: '0xE73580E28A4cCb796fEBb276902F2fa2F5a39067', @@ -1577,7 +1675,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 0.773, + rate: 0.767, pair: '0xb417da294ae7c5cbd9176d1a7a0c7d7364ae1c4e', }, { @@ -1587,29 +1685,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 0.773, + rate: 0.767, pair: '0xa28864af52aedcef717c34bffca2ccf9d6aa23cc', }, - { - tokens: [ODDZ, QUICK], - stakingRewardAddress: '0x4Fdc40A3F4926E04BC8B76eB4a83433318D6f0E6', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 0.773, - pair: '0x8df6f7da556b9e70e272434bdc581dbb4848dffc', - }, - { - tokens: [MITX, QUICK], - stakingRewardAddress: '0xeD79D524B50e16ccC5d57193a2CAdF1964d484E7', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 0.773, - pair: '0x5938dc50094e151c7dd64e5b774a2a91cd414daf', - }, { tokens: [D11, MATIC], stakingRewardAddress: '0xC105a406ad18f3736bd8Af158D811E85a018ef00', @@ -1617,7 +1695,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 0.773, + rate: 0.767, pair: '0x4c27eee5f50eeee292ef438a87a42292bd629e70', }, { @@ -1627,7 +1705,7 @@ export const STAKING_REWARDS_INFO: { name: 'stkGHST-USDC', lp: '0x04439eC4ba8b09acfae0E9b5D75A82cC63b19f09', baseToken: USDC, - rate: 0.773, + rate: 0.767, pair: '0x096c5ccb33cfc5732bcd1f3195c13dbefc4c82f4', }, { @@ -1637,7 +1715,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 0.773, + rate: 0.767, pair: '0xf7e659966196f069a23ce9b84b9586a809c4cd9a', }, { @@ -1647,38 +1725,48 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 0.773, + rate: 0.767, pair: '0x7f7c12acec546cdceb028cc5b57f7aa2d91f0887', }, { - tokens: [XED, QUICK], - stakingRewardAddress: '0x3fC5c25f946894e14AA2e9cE755Be55d98B7d515', + tokens: [NEXO, ETHER], + stakingRewardAddress: '0x1476331f814c00F1d15dc6187A0EB1e1E403D745', + ended: false, + lp: '', + name: '', + baseToken: ETHER, + rate: 0.3835, + pair: '0x10062ec62c0be26cc9e2f50a1cf784a89ded075f', + }, + { + tokens: [RELAY, QUICK], + stakingRewardAddress: '0x8eF44aF84D79717577C54DD7eC60a60945404680', ended: false, lp: '', name: '', baseToken: QUICK, - rate: 0.3865, - pair: '0x222789b185a145ccbd19803a448143252612d012', + rate: 0.3835, + pair: '0x7ca8e540df6326005b72661e50f1350c84c0e55d', }, { - tokens: [ANRX, ETHER], - stakingRewardAddress: '0xB8219752b7E35E82B2a37845D74351580A6AC3cc', + tokens: [UGT, ETHER], + stakingRewardAddress: '0x4Cef5a7B5736e65ad9dd6Ab52eD79eF1BbeBec84', ended: false, lp: '', name: '', baseToken: ETHER, - rate: 0.3865, - pair: '0x3dd6a0d31818fdacd2724f2b0b3b220f14a54215', + rate: 0.3835, + pair: '0x15551bedc20b01b473da93e6cfa29b1eb7baeabb', }, { - tokens: [PLR, QUICK], - stakingRewardAddress: '0x0e72b1b7658FFb0e3f45562A489FD4Bc15873E4B', + tokens: [MITX, QUICK], + stakingRewardAddress: '0xeD79D524B50e16ccC5d57193a2CAdF1964d484E7', ended: false, lp: '', name: '', baseToken: QUICK, - rate: 0.3865, - pair: '0xb980171e5647a8531d3b28134622d225bc3cdb82', + rate: 0.3835, + pair: '0x5938dc50094e151c7dd64e5b774a2a91cd414daf', }, { tokens: [PERA, QUICK], @@ -1687,33 +1775,99 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 0.3865, + rate: 0.3835, pair: '0x8bab360e41468dff5326df636e2377a858ad0670', }, + ], +}; + +export const OLD_STAKING_REWARDS_INFO: { + [chainId in ChainId]?: { + tokens: [Token, Token]; + stakingRewardAddress: string; + ended: boolean; + name: string; + lp: string; + baseToken: Token; + rate: number; + pair: string; + }[]; +} = { + [ChainId.MATIC]: [ { - tokens: [CNTR, QUICK], - stakingRewardAddress: '0xa19220e11C3a3d5C71CBB29C2e581125f087450D', - ended: false, + tokens: [PBR, USDT], + stakingRewardAddress: '0x4d3D3659A87a71E9D6137C7acb183b6C41223D4f', + ended: true, + lp: '', + name: '', + baseToken: USDT, + rate: 2, + pair: '0x53b02ad5f6615262ec5b483937260135429d5af9', + }, + { + tokens: [PBR, USDT], + stakingRewardAddress: '0x4c510d82FD85F2B54FD0C41975fbb9305a92751B', + ended: true, + lp: '', + name: '', + baseToken: USDT, + rate: 2, + pair: '0x53b02ad5f6615262ec5b483937260135429d5af9', + }, + { + tokens: [UGT, QUICK], + stakingRewardAddress: '0x20b07BF5d7c84171c84Daf1ec327306830561AD9', + ended: true, lp: '', name: '', baseToken: QUICK, - rate: 0.3865, - pair: '0xb56843b5550e3f78613ca5abf6bd6ae6f84cd11e', + rate: 0.773, + pair: '0x29429e4099ed88884729b8fa800b9c65dbe57b63', }, { - tokens: [IMX, ETHER], - stakingRewardAddress: '0xBba6c7B2D1B088ecC969E13140b801714f9b1a20', - ended: false, + tokens: [MEEB, ETHER], + stakingRewardAddress: '0x7a066B2e504ae958926F5DAa2A31aC5Fa278c52D', + ended: true, lp: '', name: '', baseToken: ETHER, - rate: 0.3865, - pair: '0x5f819f510ca9b1469e6a3ffe4ecd7f0c1126f8f5', + rate: 0.773, + pair: '0xd0a4bbb49ddd36b0d832d485974a2387d81dbdd3', + }, + { + tokens: [ZUSD, USDC], + stakingRewardAddress: '0xE3Cd2c9971C12F817Aac1350654CBae53BE72433', + ended: true, + lp: '', + name: '', + baseToken: USDC, + rate: 0.773, + pair: '0xca8e44fdf749a7c5c28bc927726ea21ccd669969', + }, + { + tokens: [REI, QUICK], + stakingRewardAddress: '0x5189B2e1A3896c053D094633B77Adc6AeBCF7C03', + ended: true, + lp: '', + name: '', + baseToken: QUICK, + rate: 0.773, + pair: '0x1c75bd54ad15449d12e6c24a9b5e8ce1a62c567c', + }, + { + tokens: [ODDZ, QUICK], + stakingRewardAddress: '0x4Fdc40A3F4926E04BC8B76eB4a83433318D6f0E6', + ended: true, + lp: '', + name: '', + baseToken: QUICK, + rate: 0.773, + pair: '0x8df6f7da556b9e70e272434bdc581dbb4848dffc', }, { tokens: [RAMP, ETHER], stakingRewardAddress: '0x5D2680B93D851B137626361Dfa1F97e60c796615', - ended: false, + ended: true, lp: '', name: '', baseToken: ETHER, @@ -1721,29 +1875,69 @@ export const STAKING_REWARDS_INFO: { pair: '0xe55739e1feb9f9aed4ce34830a06ca6cc37494a0', }, { - tokens: [PBR, USDT], - stakingRewardAddress: '0x4c510d82FD85F2B54FD0C41975fbb9305a92751B', - ended: false, + tokens: [XED, QUICK], + stakingRewardAddress: '0x3fC5c25f946894e14AA2e9cE755Be55d98B7d515', + ended: true, lp: '', name: '', - baseToken: USDT, + baseToken: QUICK, rate: 0.3865, - pair: '0x53b02ad5f6615262ec5b483937260135429d5af9', + pair: '0x222789b185a145ccbd19803a448143252612d012', + }, + { + tokens: [CNTR, QUICK], + stakingRewardAddress: '0xa19220e11C3a3d5C71CBB29C2e581125f087450D', + ended: true, + lp: '', + name: '', + baseToken: QUICK, + rate: 0.3865, + pair: '0xb56843b5550e3f78613ca5abf6bd6ae6f84cd11e', }, { tokens: [PHX, MATIC], stakingRewardAddress: '0x7aE6190a279a919612B5C563296C93CAe983e457', - ended: false, + ended: true, lp: '', name: '', baseToken: MATIC, rate: 0.3865, pair: '0x666dd949db4f3807c6e8e360a79473a5f0c7075a', }, + { + tokens: [PLR, QUICK], + stakingRewardAddress: '0x0e72b1b7658FFb0e3f45562A489FD4Bc15873E4B', + ended: true, + lp: '', + name: '', + baseToken: QUICK, + rate: 0.3865, + pair: '0xb980171e5647a8531d3b28134622d225bc3cdb82', + }, + { + tokens: [ANRX, ETHER], + stakingRewardAddress: '0xB8219752b7E35E82B2a37845D74351580A6AC3cc', + ended: true, + lp: '', + name: '', + baseToken: ETHER, + rate: 0.3865, + pair: '0x3dd6a0d31818fdacd2724f2b0b3b220f14a54215', + }, + { + tokens: [IMX, ETHER], + stakingRewardAddress: '0xBba6c7B2D1B088ecC969E13140b801714f9b1a20', + ended: true, + lp: '', + name: '', + baseToken: ETHER, + rate: 0.3865, + pair: '0x5f819f510ca9b1469e6a3ffe4ecd7f0c1126f8f5', + }, { tokens: [POOL, ETHER], stakingRewardAddress: '0x00e13b2873465A07043c701FE5eE7e5AA4D8bA96', - ended: false, + ended: true, lp: '', name: '', baseToken: ETHER, @@ -1753,7 +1947,7 @@ export const STAKING_REWARDS_INFO: { ], }; -export const OLD_STAKING_REWARDS_INFO: { +export const VERY_OLD_STAKING_REWARDS_INFO: { [chainId in ChainId]?: { tokens: [Token, Token]; stakingRewardAddress: string; @@ -1766,6 +1960,8 @@ export const OLD_STAKING_REWARDS_INFO: { }[]; } = { [ChainId.MATIC]: [ + //TODO: MATIC + { tokens: [ODDZ, MATIC], stakingRewardAddress: '0x2458D6CE80963915Be56FD9bfBd702728EE899b0', @@ -1946,24 +2142,6 @@ export const OLD_STAKING_REWARDS_INFO: { rate: 0.389, pair: '0x70294d7aa244bd342c536f9b502152564057162e', }, - ], -}; - -export const VERY_OLD_STAKING_REWARDS_INFO: { - [chainId in ChainId]?: { - tokens: [Token, Token]; - stakingRewardAddress: string; - ended: boolean; - name: string; - lp: string; - baseToken: Token; - rate: number; - pair: string; - }[]; -} = { - [ChainId.MATIC]: [ - //TODO: MATIC - { tokens: [GFARM2, DAI], stakingRewardAddress: '0xC0389A2A49aCe18eF35Fa8285Ab47D9B1D1315a0', @@ -2974,16 +3152,6 @@ export const VERY_OLD_STAKING_REWARDS_INFO: { rate: 2, pair: '0x082b58350a04d8d38b4bcae003bb1191b9aae565', }, - { - tokens: [PBR, USDT], - stakingRewardAddress: '0x4d3D3659A87a71E9D6137C7acb183b6C41223D4f', - ended: true, - lp: '', - name: '', - baseToken: USDT, - rate: 2, - pair: '0x53b02ad5f6615262ec5b483937260135429d5af9', - }, { tokens: [D11, MATIC], stakingRewardAddress: '0x7dB4edd376C714815B38aE13ab1e4D9c7Ae6AE5d', @@ -12686,7 +12854,7 @@ const getBulkPairData = async (pairList: any) => { ); const oneDayData = oneDayResult?.data?.pairs.reduce( - (obj: any, cur: any, i: any) => { + (obj: any, cur: any) => { return { ...obj, [cur.id]: cur }; }, {}, @@ -12742,7 +12910,7 @@ const getDualBulkPairData = async (pairList: any) => { ); const oneDayData = oneDayResult?.data?.pairs.reduce( - (obj: any, cur: any, i: any) => { + (obj: any, cur: any) => { return { ...obj, [cur.id]: cur }; }, {}, @@ -12820,27 +12988,30 @@ const convertArrayToObject = (array: any, key: any) => { }, initialValue); }; -export const get2DayPercentChange = (valueNow: any, value24HoursAgo: any) => { +export function get2DayPercentChange( + valueNow: number, + value24HoursAgo: number, +): number { // get volume info for both 24 hour periods - const currentChange = parseFloat(valueNow) - parseFloat(value24HoursAgo); + const currentChange = valueNow - value24HoursAgo; return currentChange; -}; +} function parseData(data: any, oneDayData: any) { // get volume changes const oneDayVolumeUSD = get2DayPercentChange( - data?.volumeUSD, - oneDayData?.volumeUSD ? oneDayData.volumeUSD : 0, + data.volumeUSD ? Number(data.volumeUSD) : 0, + oneDayData.volumeUSD ? Number(oneDayData.volumeUSD) : 0, ); - const returnData: any = {}; - returnData.id = data.id; - returnData.token0 = data.token0; - returnData.token1 = data.token1; - returnData.oneDayVolumeUSD = parseFloat(oneDayVolumeUSD?.toString()); - returnData.reserveUSD = data.reserveUSD; - returnData.totalSupply = data.totalSupply; - - return returnData; + + return { + id: data.id, + token0: data.token0, + token1: data.token1, + oneDayVolumeUSD: parseFloat(oneDayVolumeUSD?.toString()), + reserveUSD: data.reserveUSD, + totalSupply: data.totalSupply, + }; } // gets the dual rewards staking info from the network for the active chain id @@ -13196,14 +13367,6 @@ export function useLairInfo(): LairInfo { ]); } -// export function useStakingInfos(): StakingInfo[] { -// return useSelector((state: AppState) => state.stake.stakingInfo); -// } - -// export function useSyrupInfos(): SyrupInfo[] { -// return useSelector((state: AppState) => state.stake.syrupInfo); -// } - // gets the staking info from the network for the active chain id export function useStakingInfo(pairToFilterBy?: Pair | null): StakingInfo[] { const { chainId, account } = useActiveWeb3React(); diff --git a/src/utils/index.ts b/src/utils/index.ts index 6e4f9a61f..8afcac06a 100755 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -472,7 +472,7 @@ export const getIntervalTokenData = async ( tokenAddress: string, startTime: number, interval = 3600, - latestBlock: any, + latestBlock: number | undefined, ) => { const utcEndTime = dayjs.utc(); let time = startTime; @@ -502,7 +502,7 @@ export const getIntervalTokenData = async ( if (latestBlock) { blocks = blocks.filter((b) => { - return parseFloat(b.number) <= parseFloat(latestBlock); + return parseFloat(b.number) <= latestBlock; }); } @@ -717,14 +717,7 @@ export const getBulkPairData: ( } }; -const parseData: ( - data: any, - oneDayData: any, - twoDayData: any, - oneWeekData: any, - ethPrice: any, - oneDayBlock: any, -) => any = ( +const parseData = ( data: any, oneDayData: any, twoDayData: any, @@ -733,8 +726,9 @@ const parseData: ( oneDayBlock: any, ) => { // get volume changes + console.log('ccc', data); const [oneDayVolumeUSD, volumeChangeUSD] = get2DayPercentChange( - data?.volumeUSD, + data?.volumeUSD ? data.volumeUSD : 0, oneDayData?.volumeUSD ? oneDayData.volumeUSD : 0, twoDayData?.volumeUSD ? twoDayData.volumeUSD : 0, );