diff --git a/src/components/TopMovers/TopMovers.tsx b/src/components/TopMovers/TopMovers.tsx index a5d9eec32..04ede6db2 100755 --- a/src/components/TopMovers/TopMovers.tsx +++ b/src/components/TopMovers/TopMovers.tsx @@ -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'; @@ -79,7 +80,7 @@ const TopMovers: React.FC = ({ {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; diff --git a/src/constants/index.ts b/src/constants/index.ts index 8f27a9212..742f39bd3 100755 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -1572,6 +1572,69 @@ 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 @@ -1579,19 +1642,17 @@ 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', @@ -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/quickswap-default-token-list@1.2.9/build/quickswap-default.tokenlist.json'; + 'https://unpkg.com/quickswap-default-token-list@1.2.11/build/quickswap-default.tokenlist.json'; diff --git a/src/constants/lists.ts b/src/constants/lists.ts index e7f188d12..e71256e53 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.9/build/quickswap-default.tokenlist.json'; + 'https://unpkg.com/quickswap-default-token-list@1.2.11/build/quickswap-default.tokenlist.json'; export const DEFAULT_LIST_OF_LISTS: string[] = [DEFAULT_TOKEN_LIST_URL]; diff --git a/src/state/stake/hooks.ts b/src/state/stake/hooks.ts index f0fa01e2c..c1fae83e7 100755 --- a/src/state/stake/hooks.ts +++ b/src/state/stake/hooks.ts @@ -210,6 +210,8 @@ import { WCRO, MANA, KIRO, + GAMER, + SAND, } from 'constants/index'; import { STAKING_REWARDS_INTERFACE, @@ -250,6 +252,16 @@ export const SYRUP_REWARDS_INFO: { }[]; } = { [ChainId.MATIC]: [ + { + token: TECH, + stakingRewardAddress: '0xD2C494057f57D845C67bb5825e83B657204875c8', + ended: false, + lp: '', + name: '', + baseToken: ETHER, + rate: 40610.66, + ending: 1644090690, + }, { token: UFI, stakingRewardAddress: '0xE707bB8513873c2360811F01BfBd0e9EBFd96b0D', @@ -470,36 +482,6 @@ export const SYRUP_REWARDS_INFO: { rate: 15555.56, ending: 1641401056, }, - { - token: PBR, - stakingRewardAddress: '0xa751f7B39F6c111d10e2C603bE2a12bd5F70Fc83', - ended: false, - lp: '', - name: '', - baseToken: USDT, - rate: 3333.33, - ending: 1638280789, - }, - { - token: PHX, - stakingRewardAddress: '0xcE4c95014Bd54B1D3ff30dbb585009aDf7358b0b', - ended: false, - lp: '', - name: '', - baseToken: MATIC, - rate: 12000, - ending: 1638027392, - }, - { - token: REI, - stakingRewardAddress: '0xc9097837c52f0e9785539BD2d265df7fA890cb1A', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 5127.75, - ending: 1638027392, - }, { token: XCASH, stakingRewardAddress: '0xe01e81c76253831602520582793991650225Bf81', @@ -536,6 +518,36 @@ export const OLD_SYRUP_REWARDS_INFO: { }[]; } = { [ChainId.MATIC]: [ + { + token: PBR, + stakingRewardAddress: '0xa751f7B39F6c111d10e2C603bE2a12bd5F70Fc83', + ended: true, + lp: '', + name: '', + baseToken: USDT, + rate: 3333.33, + ending: 1638280789, + }, + { + token: PHX, + stakingRewardAddress: '0xcE4c95014Bd54B1D3ff30dbb585009aDf7358b0b', + ended: true, + lp: '', + name: '', + baseToken: MATIC, + rate: 12000, + ending: 1638027392, + }, + { + token: REI, + stakingRewardAddress: '0xc9097837c52f0e9785539BD2d265df7fA890cb1A', + ended: true, + lp: '', + name: '', + baseToken: QUICK, + rate: 5127.75, + ending: 1638027392, + }, { token: MITX, stakingRewardAddress: '0xBBD9146D2A687C0df7e6201D7b8cc4cebc5DF976', @@ -908,8 +920,8 @@ export const STAKING_DUAL_REWARDS_INFO: { rewardTokenA: DQUICK, rewardTokenB: MATIC, rewardTokenBBase: USDC, - rateA: 29.146, - rateB: 2500, + rateA: 28.766, + rateB: 2000, pair: '0xadbf1854e5883eb8aa7baf50705338739e558e5b', }, { @@ -922,8 +934,8 @@ export const STAKING_DUAL_REWARDS_INFO: { rewardTokenA: DQUICK, rewardTokenB: MATIC, rewardTokenBBase: USDC, - rateA: 10.738, - rateB: 2500, + rateA: 10.598, + rateB: 2000, pair: '0x6e7a5fafcec6bb1e78bae2a1f0b612012bf14827', }, { @@ -936,8 +948,8 @@ export const STAKING_DUAL_REWARDS_INFO: { rewardTokenA: DQUICK, rewardTokenB: MATIC, rewardTokenBBase: USDC, - rateA: 10.738, - rateB: 1000, + rateA: 10.598, + rateB: 800, pair: '0x019ba0325f1988213d448b3472fa1cf8d07618d7', }, { @@ -950,8 +962,8 @@ export const STAKING_DUAL_REWARDS_INFO: { rewardTokenA: DQUICK, rewardTokenB: MATIC, rewardTokenBBase: USDC, - rateA: 5.369, - rateB: 2000, + rateA: 5.299, + rateB: 1500, pair: '0x604229c960e5cacf2aaeac8be68ac07ba9df81c3', }, { @@ -964,7 +976,7 @@ export const STAKING_DUAL_REWARDS_INFO: { rewardTokenA: DQUICK, rewardTokenB: KIRO, rewardTokenBBase: MATIC, - rateA: 4.602, + rateA: 3.785, rateB: 20000, pair: '0x3f245c6f18442bd6198d964c567a01bd4202e290', }, @@ -978,7 +990,7 @@ export const STAKING_DUAL_REWARDS_INFO: { rewardTokenA: DQUICK, rewardTokenB: GENESIS, rewardTokenBBase: QUICK, - rateA: 3.835, + rateA: 3.028, rateB: 25000, pair: '0xf0696be85fa54f7a8c9f20aa98aa4409cd5c9d1b', }, @@ -1005,7 +1017,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 29.913, + rate: 29.523, pair: '0x853ee4b2a13f8a742d64c8f088be7ba2131f670d', }, { @@ -1015,7 +1027,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 12.272, + rate: 12.112, pair: '0xdc9232e2df177d7a12fdff6ecbab114e2231198d', }, { @@ -1025,7 +1037,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 9.971, + rate: 9.841, pair: '0xf6422b997c7f54d1c6a6e103bcb1499eea0a7046', }, { @@ -1035,7 +1047,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 7.67, + rate: 7.57, pair: '0x1bd06b96dd42ada85fdd0795f3b4a79db914add5', }, { @@ -1045,7 +1057,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 6.903, + rate: 6.813, pair: '0x90bc3e68ba8393a3bf2d79309365089975341a43', }, { @@ -1055,9 +1067,19 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: DAI, - rate: 6.903, + rate: 6.813, pair: '0x4a35582a710e1f4b2030a3f826da20bfb6703c09', }, + { + tokens: [DERC, USDC], + stakingRewardAddress: '0xaBECe67c01cd2E8ecBFaA311bd08EC299dA03629', + ended: false, + lp: '', + name: '', + baseToken: USDC, + rate: 5.299, + pair: '0x0a8a3cb9a21c893a207826e76125ef6faaad99ec', + }, { tokens: [MI, USDT], stakingRewardAddress: '0x06e49078b1900A8489462Cd2355ED8c09f507499', @@ -1065,7 +1087,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDT, - rate: 5.369, + rate: 4.542, pair: '0xe89fae1b4ada2c869f05a0c96c87022dadc7709a', }, { @@ -1075,19 +1097,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: DAI, - rate: 5.369, + rate: 4.542, pair: '0x74214f5d8aa71b8dc921d8a963a1ba3605050781', }, - { - tokens: [DERC, USDC], - stakingRewardAddress: '0xaBECe67c01cd2E8ecBFaA311bd08EC299dA03629', - ended: false, - lp: '', - name: '', - baseToken: USDC, - rate: 5.369, - pair: '0x0a8a3cb9a21c893a207826e76125ef6faaad99ec', - }, { tokens: [WBTC, USDC], stakingRewardAddress: '0xBF0b0DEF82C1D473e6B8770458Ddc82f5C8C7504', @@ -1095,19 +1107,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 4.602, + rate: 4.542, pair: '0xf6a637525402643b0654a54bead2cb9a83c8b498', }, - { - tokens: [QI, ETHER], - stakingRewardAddress: '0x17fE4630A855FF6e546C19c315BE7f3ED01f38Ff', - ended: false, - lp: '', - name: '', - baseToken: ETHER, - rate: 4.602, - pair: '0x8c1b40ea78081b70f661c3286c74e71b4602c9c0', - }, { tokens: [LINK, ETHER], stakingRewardAddress: '0x1b077a0586b2ABD4062a39E6368E256dB2F723c4', @@ -1115,7 +1117,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 4.602, + rate: 4.542, pair: '0x5ca6ca6c3709e1e6cfe74a50cf6b2b6ba2dadd67', }, { @@ -1125,7 +1127,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 4.602, + rate: 4.542, pair: '0x1f1e4c845183ef6d50e9609f16f6f9cae43bc9cb', }, { @@ -1135,19 +1137,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 3.835, + rate: 3.785, pair: '0x2cf7252e74036d1da831d11089d326296e64a728', }, - { - tokens: [UCO, ETHER], - stakingRewardAddress: '0x81f0076780F7CeeF57E801b10EF9DbC92f3a2B5a', - ended: false, - lp: '', - name: '', - baseToken: ETHER, - rate: 3.835, - pair: '0x25bae75f6760ac30554cc62f9282307c3038c3a0', - }, { tokens: [ELON, ETHER], stakingRewardAddress: '0x79A8337F65127A2d1DF164AE23065f39102A1a5f', @@ -1155,7 +1147,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 3.835, + rate: 3.785, pair: '0x13305f843e66f7cc7f9cb1bbc40dabee7086d1f8', }, { @@ -1165,19 +1157,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 3.835, + rate: 3.785, pair: '0x82ee4008e2de03f3a3e25434506f0d4d423afaad', }, - { - tokens: [WSG, QUICK], - stakingRewardAddress: '0x3f7D24d2157d114366f96ddA987448Ebf50a0D09', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 3.835, - pair: '0xaddd6bed667c361087a97b34b1a0da4e0d0131ed', - }, { tokens: [GNS, DAI], stakingRewardAddress: '0x33025b177A35F6275b78f9c25684273fc24B4e43', @@ -1185,68 +1167,68 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: DAI, - rate: 3.835, + rate: 3.785, pair: '0x6e53cb6942e518376e9e763554db1a45ddcd25c4', }, { - tokens: [XCASH, QUICK], - stakingRewardAddress: '0x7E9E46BBAa92a2d18c17B8e8c537Cc488f0f1559', + tokens: [SAND, MATIC], + stakingRewardAddress: '0x411b772B9eb19a33E7af5fCD9B1629D2015DC886', ended: false, lp: '', name: '', - baseToken: QUICK, - rate: 3.068, - pair: '0x30167fea9499c11795bfd104667240bdac939d3a', + baseToken: MATIC, + rate: 3.785, + pair: '0x369582d2010b6ed950b571f4101e3bb9b554876f', }, { - tokens: [EROWAN, ATOM], - stakingRewardAddress: '0x70C674bCe0aEc05E0d13bFEdd692b2F231323899', + tokens: [QI, ETHER], + stakingRewardAddress: '0x17fE4630A855FF6e546C19c315BE7f3ED01f38Ff', ended: false, lp: '', name: '', - baseToken: ATOM, - rate: 3.068, - pair: '0x7051810a53030171f01d89e9aebd8a599de1b530', + baseToken: ETHER, + rate: 3.028, + pair: '0x8c1b40ea78081b70f661c3286c74e71b4602c9c0', }, { - tokens: [SNE, USDC], - stakingRewardAddress: '0xeB029E7a319207db79C54fdf4ee377Fe749A90b3', + tokens: [WSG, QUICK], + stakingRewardAddress: '0x3f7D24d2157d114366f96ddA987448Ebf50a0D09', ended: false, lp: '', name: '', - baseToken: USDC, - rate: 3.068, - pair: '0x23baf6d86c80eb18b1799763ea47eae6fe727767', + baseToken: QUICK, + rate: 3.028, + pair: '0xaddd6bed667c361087a97b34b1a0da4e0d0131ed', }, { - tokens: [RUSD, USDC], - stakingRewardAddress: '0x94d024C05E2eae6ee3C9E0711D3E18C80F8CebA8', + tokens: [UCO, ETHER], + stakingRewardAddress: '0x81f0076780F7CeeF57E801b10EF9DbC92f3a2B5a', ended: false, lp: '', name: '', - baseToken: USDC, - rate: 2.301, - pair: '0x5ef8747d1dc4839e92283794a10d448357973ac0', + baseToken: ETHER, + rate: 2.271, + pair: '0x25bae75f6760ac30554cc62f9282307c3038c3a0', }, { - tokens: [GMEE, QUICK], - stakingRewardAddress: '0x5454862d457d0e87f68Ff2eb6c2Ffb12FE5f254b', + tokens: [EROWAN, ATOM], + stakingRewardAddress: '0x70C674bCe0aEc05E0d13bFEdd692b2F231323899', ended: false, lp: '', name: '', - baseToken: QUICK, - rate: 2.301, - pair: '0xfe4ba2ab8562b6204a17f19651c760818a361571', + baseToken: ATOM, + rate: 2.271, + pair: '0x7051810a53030171f01d89e9aebd8a599de1b530', }, { - tokens: [EROWAN, QUICK], - stakingRewardAddress: '0xf113B8dec8368b7FeC4802fF7126cA317131F7cF', + tokens: [SNE, USDC], + stakingRewardAddress: '0xeB029E7a319207db79C54fdf4ee377Fe749A90b3', ended: false, lp: '', name: '', - baseToken: QUICK, - rate: 2.301, - pair: '0x631f39d22430e889a3cfbea4fd73ed101059075f', + baseToken: USDC, + rate: 2.271, + pair: '0x23baf6d86c80eb18b1799763ea47eae6fe727767', }, { tokens: [SHIB, MATIC], @@ -1255,7 +1237,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 2.301, + rate: 2.271, pair: '0x5fb641de2663e8a94c9dea0a539817850d996e99', }, { @@ -1265,19 +1247,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 2.301, + rate: 2.271, pair: '0x9e2b254c7d6ad24afb334a75ce21e216a9aa25fc', }, - { - tokens: [UM, ETHER], - stakingRewardAddress: '0x7b6151f2935cE9420eEb79D2B9821515b7f3E876', - ended: false, - lp: '', - name: '', - baseToken: ETHER, - rate: 2.301, - pair: '0x78413ed015b19766c8881f6f1bb9011ce95ec786', - }, { tokens: [PECO, MATIC], stakingRewardAddress: '0x27b3f4e93b7dCE173F682E760F492665e7f15Ad9', @@ -1285,7 +1257,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 2.301, + rate: 2.271, pair: '0xc2ea6521f23358d18c3623d33ce1106f798acc64', }, { @@ -1295,7 +1267,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 2.301, + rate: 2.271, pair: '0x5e06e1da9b7cb3ddd0df596003ad4cb852f51955', }, { @@ -1305,7 +1277,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 2.301, + rate: 2.271, pair: '0x204a7adc76db7fe8c5e5f499cb3c4cff6d7282c2', }, { @@ -1315,78 +1287,78 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 2.301, + rate: 2.271, pair: '0x7a6830a9e6f964104b52243922a7738de4cff84a', }, { - tokens: [DPI, ETHER], - stakingRewardAddress: '0x906F45309470C528625Ad860282ccB6D268e8b4f', + tokens: [GAMER, ETHER], + stakingRewardAddress: '0x9DFF9CeDaDFf61a918626fF24D93EDc65DC95391', ended: false, lp: '', name: '', baseToken: ETHER, - rate: 1.9175, - pair: '0x9f77ef7175032867d26e75d2fa267a6299e3fb57', + rate: 2.271, + pair: '0x1df661fc4319415a2f990bd5f49d5ca70efdee1c', }, { - tokens: [POLYDOGE, QUICK], - stakingRewardAddress: '0x403A2604226585Cb1e07D644780930D650EA4b73', + tokens: [XCASH, QUICK], + stakingRewardAddress: '0x7E9E46BBAa92a2d18c17B8e8c537Cc488f0f1559', ended: false, lp: '', name: '', baseToken: QUICK, - rate: 1.534, - pair: '0xbedee6a7c572aa855a0c84d2f504311d482862f4', + rate: 1.514, + pair: '0x30167fea9499c11795bfd104667240bdac939d3a', }, { - tokens: [MCASH, ETHER], - stakingRewardAddress: '0xd24FdB548704D8C6AA1e15B238E4cBe10d214119', + tokens: [GMEE, QUICK], + stakingRewardAddress: '0x5454862d457d0e87f68Ff2eb6c2Ffb12FE5f254b', ended: false, lp: '', name: '', - baseToken: ETHER, - rate: 1.534, - pair: '0x1fef1ce437bb025c08609e0c14ab916622bd09f4', + baseToken: QUICK, + rate: 1.514, + pair: '0xfe4ba2ab8562b6204a17f19651c760818a361571', }, { - tokens: [UFI, MATIC], - stakingRewardAddress: '0xa34cd2445597DEBcD8E1B85D45E9A075EA485d20', + tokens: [EROWAN, QUICK], + stakingRewardAddress: '0xf113B8dec8368b7FeC4802fF7126cA317131F7cF', ended: false, lp: '', name: '', - baseToken: MATIC, - rate: 1.534, - pair: '0x8095d1fb36138fc492337a63c52d03764d12e771', + baseToken: QUICK, + rate: 1.514, + pair: '0x631f39d22430e889a3cfbea4fd73ed101059075f', }, { - tokens: [AUMI, MATIC], - stakingRewardAddress: '0x7549bD32cAbA7bdeb4d7bcAF3f7Ff8bed13577Bc', + tokens: [UM, ETHER], + stakingRewardAddress: '0x7b6151f2935cE9420eEb79D2B9821515b7f3E876', ended: false, lp: '', name: '', - baseToken: MATIC, - rate: 1.534, - pair: '0x3a2fe73866bac2d28501e4e6149ef9057463c365', + baseToken: ETHER, + rate: 1.514, + pair: '0x78413ed015b19766c8881f6f1bb9011ce95ec786', }, { - tokens: [MASK, USDC], - stakingRewardAddress: '0xDa734d661BEf168895EFB2aC0634950C7874B5Ec', + tokens: [UFI, MATIC], + stakingRewardAddress: '0xa34cd2445597DEBcD8E1B85D45E9A075EA485d20', ended: false, lp: '', name: '', - baseToken: USDC, - rate: 1.534, - pair: '0x253d637068fbf11b18d0f2a1bf3b167d37802687', + baseToken: MATIC, + rate: 1.514, + pair: '0x8095d1fb36138fc492337a63c52d03764d12e771', }, { - tokens: [ELET, QUICK], - stakingRewardAddress: '0x7b4125d303eE59e8Ef5aB66ca06314904E45DA7E', + tokens: [AUMI, MATIC], + stakingRewardAddress: '0x7549bD32cAbA7bdeb4d7bcAF3f7Ff8bed13577Bc', ended: false, lp: '', name: '', - baseToken: QUICK, - rate: 1.534, - pair: '0x592d8faea9e740facbd6115abd92d2e6acb2f8f1', + baseToken: MATIC, + rate: 1.514, + pair: '0x3a2fe73866bac2d28501e4e6149ef9057463c365', }, { tokens: [DAI, USDC], @@ -1395,7 +1367,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 1.534, + rate: 1.514, pair: '0xf04adbf75cdfc5ed26eea4bbbb991db002036bdd', }, { @@ -1405,7 +1377,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 1.534, + rate: 1.514, pair: '0xeb477ae74774b697b5d515ef8ca09e24fee413b5', }, { @@ -1415,7 +1387,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 1.534, + rate: 1.514, pair: '0x898386dd8756779a4ba4f1462891b92dd76b78ef', }, { @@ -1425,7 +1397,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 1.534, + rate: 1.514, pair: '0x40a5df3e37152d4daf279e0450289af76472b02e', }, { @@ -1435,7 +1407,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 1.534, + rate: 1.514, pair: '0x8000fe11cffa3ced146d98f091d95c9bc2c55c97', }, { @@ -1445,39 +1417,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: EROWAN, - rate: 1.534, + rate: 1.514, pair: '0xf366df119532b2e0f4e416c81d6ff7728a60fe7d', }, - { - tokens: [IRIS, EROWAN], - stakingRewardAddress: '0x49734F8A9ED60CBdc489d90A3d80aaf41FaE0Ae4', - ended: false, - lp: '', - name: '', - baseToken: EROWAN, - rate: 1.534, - pair: '0x58ffb271c6f3d92f03c49e08e2887810f65b8cd6', - }, - { - tokens: [REGEN, EROWAN], - stakingRewardAddress: '0xb72547668E5759a81BB2DD0C81a04437487e7F17', - ended: false, - lp: '', - name: '', - baseToken: EROWAN, - rate: 1.534, - pair: '0x66c37a00e426a613b188180198aac12b0b4ae4d4', - }, - { - tokens: [AKT, EROWAN], - stakingRewardAddress: '0x9C2F4bebEA8B843485EdbD77801CD41B92805bBf', - ended: false, - lp: '', - name: '', - baseToken: EROWAN, - rate: 1.534, - pair: '0xa651ef83fa6a90e76206de4e79a5c69f80994556', - }, { tokens: [FTM, MATIC], stakingRewardAddress: '0xF81e664C8277d461Df561b353D50c4B698144664', @@ -1485,7 +1427,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 1.534, + rate: 1.514, pair: '0xd2b61a42d3790533fedc2829951a65120624034a', }, { @@ -1495,19 +1437,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 1.534, + rate: 1.514, pair: '0x150255a6ba2d32ac058e8b435a445f5137a21857', }, - { - tokens: [DES, QUICK], - stakingRewardAddress: '0xd6bf3026664e4f64ADCb0FA10e9aB216C8935e43', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 1.534, - pair: '0xdfb3d129f32b32852e74322e699580d75ca4521e', - }, { tokens: [MCRN, ETHER], stakingRewardAddress: '0x7Ddff049B9f8393636a3E277ef86639D0A1d6B82', @@ -1515,7 +1447,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 1.534, + rate: 1.514, pair: '0xde84c8f0562eb56a5fc8f07819cef1faf9df3ebc', }, { @@ -1525,7 +1457,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 1.534, + rate: 1.514, pair: '0xf60618c6ab18e347428a3ee72bf95a720bb45ee6', }, { @@ -1535,7 +1467,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: WBTC, - rate: 1.534, + rate: 1.514, pair: '0x0850f9bf21cdba7d2817fca8e5f9d3b96feff3dd', }, { @@ -1545,38 +1477,108 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 1.534, + rate: 1.514, pair: '0x9d6d31d8bd564cd77a70b7a0cc1416be9dcd8b6f', }, { - tokens: [MANA, MATIC], - stakingRewardAddress: '0xee61B0C32ADf887d265236f57AC0a2449CC931C7', + tokens: [MANA, MATIC], + stakingRewardAddress: '0xee61B0C32ADf887d265236f57AC0a2449CC931C7', + ended: false, + lp: '', + name: '', + baseToken: MATIC, + rate: 1.514, + pair: '0x6b0ce31ead9b14c2281d80a5dde903ab0855313a', + }, + { + tokens: [WCRO, MATIC], + stakingRewardAddress: '0xd2A750C2Ce25E47C3A0Abe9B5966a20e60288091', + ended: false, + lp: '', + name: '', + baseToken: MATIC, + rate: 1.514, + pair: '0xfd168748dd07a32a401e800240aec8ec6efc706f', + }, + { + tokens: [PBR, USDT], + stakingRewardAddress: '0x4c510d82FD85F2B54FD0C41975fbb9305a92751B', + ended: false, + lp: '', + name: '', + baseToken: USDT, + rate: 1.514, + pair: '0x53b02ad5f6615262ec5b483937260135429d5af9', + }, + { + tokens: [RUSD, USDC], + stakingRewardAddress: '0x94d024C05E2eae6ee3C9E0711D3E18C80F8CebA8', + ended: false, + lp: '', + name: '', + baseToken: USDC, + rate: 1.1355, + pair: '0x5ef8747d1dc4839e92283794a10d448357973ac0', + }, + { + tokens: [POLYDOGE, QUICK], + stakingRewardAddress: '0x403A2604226585Cb1e07D644780930D650EA4b73', + ended: false, + lp: '', + name: '', + baseToken: QUICK, + rate: 0.757, + pair: '0xbedee6a7c572aa855a0c84d2f504311d482862f4', + }, + { + tokens: [MCASH, ETHER], + stakingRewardAddress: '0xd24FdB548704D8C6AA1e15B238E4cBe10d214119', + ended: false, + lp: '', + name: '', + baseToken: ETHER, + rate: 0.757, + pair: '0x1fef1ce437bb025c08609e0c14ab916622bd09f4', + }, + { + tokens: [IRIS, EROWAN], + stakingRewardAddress: '0x49734F8A9ED60CBdc489d90A3d80aaf41FaE0Ae4', + ended: false, + lp: '', + name: '', + baseToken: EROWAN, + rate: 0.757, + pair: '0x58ffb271c6f3d92f03c49e08e2887810f65b8cd6', + }, + { + tokens: [REGEN, EROWAN], + stakingRewardAddress: '0xb72547668E5759a81BB2DD0C81a04437487e7F17', ended: false, lp: '', name: '', - baseToken: MATIC, - rate: 1.534, - pair: '0x6b0ce31ead9b14c2281d80a5dde903ab0855313a', + baseToken: EROWAN, + rate: 0.757, + pair: '0x66c37a00e426a613b188180198aac12b0b4ae4d4', }, { - tokens: [WCRO, MATIC], - stakingRewardAddress: '0xd2A750C2Ce25E47C3A0Abe9B5966a20e60288091', + tokens: [AKT, EROWAN], + stakingRewardAddress: '0x9C2F4bebEA8B843485EdbD77801CD41B92805bBf', ended: false, lp: '', name: '', - baseToken: MATIC, - rate: 1.534, - pair: '0xfd168748dd07a32a401e800240aec8ec6efc706f', + baseToken: EROWAN, + rate: 0.757, + pair: '0xa651ef83fa6a90e76206de4e79a5c69f80994556', }, { - tokens: [UNITOKEN, ETHER], - stakingRewardAddress: '0x76cC4059Dd19518c377934CD799615B3543967fd', + tokens: [DES, QUICK], + stakingRewardAddress: '0xd6bf3026664e4f64ADCb0FA10e9aB216C8935e43', ended: false, lp: '', name: '', - baseToken: ETHER, - rate: 0.767, - pair: '0xf7135272a5584eb116f5a77425118a8b4a2ddfdb', + baseToken: QUICK, + rate: 0.757, + pair: '0xdfb3d129f32b32852e74322e699580d75ca4521e', }, { tokens: [RDOGE, ETHER], @@ -1585,7 +1587,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 0.767, + rate: 0.757, pair: '0xab1403de66519b898b38028357b74df394a54a37', }, { @@ -1595,29 +1597,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 0.767, + rate: 0.757, pair: '0xe4139dbf19e9c8d880f915711c8674022979d432', }, - { - tokens: [TCP, USDC], - stakingRewardAddress: '0x43CdB843Bdc76DDfb9F5aE1B9F20424E9D77cED6', - ended: false, - lp: '', - name: '', - baseToken: USDC, - rate: 0.767, - pair: '0xad431d0bde99e21d9848691615a0756a09ed3dce', - }, - { - tokens: [OM, QUICK], - stakingRewardAddress: '0x7Cb08B1dd9A9fA5da22ef99E7Fb00a856DA6A2c7', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 0.767, - pair: '0xdfa81e266ff54a7d9d26c5083f9631e685d833d7', - }, { tokens: [MATIC, MI], stakingRewardAddress: '0x5F709F81cdA3E84fC2af3662B8B8C3F4f44e3d4E', @@ -1625,19 +1607,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 0.767, + rate: 0.757, pair: '0x7805b64e2d99412d3b8f10dfe8fc55217c5cc954', }, - { - tokens: [ETHA, QUICK], - stakingRewardAddress: '0xDBFb709a40F4B6C10DbfC27Cd96F90cf67EbBcF1', - ended: false, - lp: '', - name: '', - baseToken: QUICK, - rate: 0.767, - pair: '0x8167d3156fccdbaf3e43ae019a0e842e5d1f1ac1', - }, { tokens: [DAI, USDT], stakingRewardAddress: '0xc45aB79526Dd16B00505EB39222E6B1Aed0Ef079', @@ -1645,7 +1617,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: DAI, - rate: 0.767, + rate: 0.757, pair: '0x59153f27eefe07e5ece4f9304ebba1da6f53ca88', }, { @@ -1655,19 +1627,9 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 0.767, + rate: 0.757, pair: '0xc52f4e49c7fb3ffceb48ad06c3f3a17ad5c0dbfe', }, - { - tokens: [BUNNY, ETHER], - stakingRewardAddress: '0x7475b9eDfc13cdc994AeF39F67F5b4211515C873', - ended: false, - lp: '', - name: '', - baseToken: ETHER, - rate: 0.767, - pair: '0x62052b489cb5bc72a9dc8eeae4b24fd50639921a', - }, { tokens: [ETHA, USDC], stakingRewardAddress: '0xE73580E28A4cCb796fEBb276902F2fa2F5a39067', @@ -1675,7 +1637,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: USDC, - rate: 0.767, + rate: 0.757, pair: '0xb417da294ae7c5cbd9176d1a7a0c7d7364ae1c4e', }, { @@ -1685,7 +1647,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 0.767, + rate: 0.757, pair: '0xa28864af52aedcef717c34bffca2ccf9d6aa23cc', }, { @@ -1695,7 +1657,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: MATIC, - rate: 0.767, + rate: 0.757, pair: '0x4c27eee5f50eeee292ef438a87a42292bd629e70', }, { @@ -1705,7 +1667,7 @@ export const STAKING_REWARDS_INFO: { name: 'stkGHST-USDC', lp: '0x04439eC4ba8b09acfae0E9b5D75A82cC63b19f09', baseToken: USDC, - rate: 0.767, + rate: 0.757, pair: '0x096c5ccb33cfc5732bcd1f3195c13dbefc4c82f4', }, { @@ -1715,7 +1677,7 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: QUICK, - rate: 0.767, + rate: 0.757, pair: '0xf7e659966196f069a23ce9b84b9586a809c4cd9a', }, { @@ -1725,13 +1687,119 @@ export const STAKING_REWARDS_INFO: { lp: '', name: '', baseToken: ETHER, - rate: 0.767, + rate: 0.757, pair: '0x7f7c12acec546cdceb028cc5b57f7aa2d91f0887', }, + { + tokens: [MITX, QUICK], + stakingRewardAddress: '0xeD79D524B50e16ccC5d57193a2CAdF1964d484E7', + ended: false, + lp: '', + name: '', + baseToken: QUICK, + rate: 0.3785, + pair: '0x5938dc50094e151c7dd64e5b774a2a91cd414daf', + }, + ], +}; + +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: [DPI, ETHER], + stakingRewardAddress: '0x906F45309470C528625Ad860282ccB6D268e8b4f', + ended: true, + lp: '', + name: '', + baseToken: ETHER, + rate: 1.9175, + pair: '0x9f77ef7175032867d26e75d2fa267a6299e3fb57', + }, + { + tokens: [MASK, USDC], + stakingRewardAddress: '0xDa734d661BEf168895EFB2aC0634950C7874B5Ec', + ended: true, + lp: '', + name: '', + baseToken: USDC, + rate: 1.534, + pair: '0x253d637068fbf11b18d0f2a1bf3b167d37802687', + }, + { + tokens: [ELET, QUICK], + stakingRewardAddress: '0x7b4125d303eE59e8Ef5aB66ca06314904E45DA7E', + ended: true, + lp: '', + name: '', + baseToken: QUICK, + rate: 1.534, + pair: '0x592d8faea9e740facbd6115abd92d2e6acb2f8f1', + }, + { + tokens: [UNITOKEN, ETHER], + stakingRewardAddress: '0x76cC4059Dd19518c377934CD799615B3543967fd', + ended: true, + lp: '', + name: '', + baseToken: ETHER, + rate: 0.767, + pair: '0xf7135272a5584eb116f5a77425118a8b4a2ddfdb', + }, + { + tokens: [ETHA, QUICK], + stakingRewardAddress: '0xDBFb709a40F4B6C10DbfC27Cd96F90cf67EbBcF1', + ended: true, + lp: '', + name: '', + baseToken: QUICK, + rate: 0.767, + pair: '0x8167d3156fccdbaf3e43ae019a0e842e5d1f1ac1', + }, + { + tokens: [OM, QUICK], + stakingRewardAddress: '0x7Cb08B1dd9A9fA5da22ef99E7Fb00a856DA6A2c7', + ended: true, + lp: '', + name: '', + baseToken: QUICK, + rate: 0.767, + pair: '0xdfa81e266ff54a7d9d26c5083f9631e685d833d7', + }, + { + tokens: [TCP, USDC], + stakingRewardAddress: '0x43CdB843Bdc76DDfb9F5aE1B9F20424E9D77cED6', + ended: true, + lp: '', + name: '', + baseToken: USDC, + rate: 0.767, + pair: '0xad431d0bde99e21d9848691615a0756a09ed3dce', + }, + { + tokens: [BUNNY, ETHER], + stakingRewardAddress: '0x7475b9eDfc13cdc994AeF39F67F5b4211515C873', + ended: true, + lp: '', + name: '', + baseToken: ETHER, + rate: 0.767, + pair: '0x62052b489cb5bc72a9dc8eeae4b24fd50639921a', + }, { tokens: [NEXO, ETHER], stakingRewardAddress: '0x1476331f814c00F1d15dc6187A0EB1e1E403D745', - ended: false, + ended: true, lp: '', name: '', baseToken: ETHER, @@ -1741,7 +1809,7 @@ export const STAKING_REWARDS_INFO: { { tokens: [RELAY, QUICK], stakingRewardAddress: '0x8eF44aF84D79717577C54DD7eC60a60945404680', - ended: false, + ended: true, lp: '', name: '', baseToken: QUICK, @@ -1751,7 +1819,7 @@ export const STAKING_REWARDS_INFO: { { tokens: [UGT, ETHER], stakingRewardAddress: '0x4Cef5a7B5736e65ad9dd6Ab52eD79eF1BbeBec84', - ended: false, + ended: true, lp: '', name: '', baseToken: ETHER, @@ -1759,29 +1827,29 @@ export const STAKING_REWARDS_INFO: { pair: '0x15551bedc20b01b473da93e6cfa29b1eb7baeabb', }, { - tokens: [MITX, QUICK], - stakingRewardAddress: '0xeD79D524B50e16ccC5d57193a2CAdF1964d484E7', - ended: false, + tokens: [PERA, QUICK], + stakingRewardAddress: '0x9DD277679F4BB9412Ec68D7E0F41cb2985BEF0c7', + ended: true, lp: '', name: '', baseToken: QUICK, rate: 0.3835, - pair: '0x5938dc50094e151c7dd64e5b774a2a91cd414daf', + pair: '0x8bab360e41468dff5326df636e2377a858ad0670', }, { - tokens: [PERA, QUICK], - stakingRewardAddress: '0x9DD277679F4BB9412Ec68D7E0F41cb2985BEF0c7', - ended: false, + tokens: [PBR, USDT], + stakingRewardAddress: '0x4d3D3659A87a71E9D6137C7acb183b6C41223D4f', + ended: true, lp: '', name: '', - baseToken: QUICK, - rate: 0.3835, - pair: '0x8bab360e41468dff5326df636e2377a858ad0670', + baseToken: USDT, + rate: 2, + pair: '0x53b02ad5f6615262ec5b483937260135429d5af9', }, ], }; -export const OLD_STAKING_REWARDS_INFO: { +export const VERY_OLD_STAKING_REWARDS_INFO: { [chainId in ChainId]?: { tokens: [Token, Token]; stakingRewardAddress: string; @@ -1794,26 +1862,7 @@ export const OLD_STAKING_REWARDS_INFO: { }[]; } = { [ChainId.MATIC]: [ - { - 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', - }, + //TODO: MATIC { tokens: [UGT, QUICK], stakingRewardAddress: '0x20b07BF5d7c84171c84Daf1ec327306830561AD9', @@ -1944,23 +1993,6 @@ export const OLD_STAKING_REWARDS_INFO: { rate: 0.3865, pair: '0x1585d301b58661bc0cb5a8eba24ecae7b4600470', }, - ], -}; - -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: [ODDZ, MATIC], @@ -12854,7 +12886,7 @@ const getBulkPairData = async (pairList: any) => { ); const oneDayData = oneDayResult?.data?.pairs.reduce( - (obj: any, cur: any) => { + (obj: any, cur: any, i: any) => { return { ...obj, [cur.id]: cur }; }, {}, @@ -12910,7 +12942,7 @@ const getDualBulkPairData = async (pairList: any) => { ); const oneDayData = oneDayResult?.data?.pairs.reduce( - (obj: any, cur: any) => { + (obj: any, cur: any, i: any) => { return { ...obj, [cur.id]: cur }; }, {}, @@ -12988,30 +13020,26 @@ const convertArrayToObject = (array: any, key: any) => { }, initialValue); }; -export function get2DayPercentChange( - valueNow: number, - value24HoursAgo: number, -): number { +export const get2DayPercentChange = (valueNow: any, value24HoursAgo: any) => { // get volume info for both 24 hour periods - const currentChange = valueNow - value24HoursAgo; - return currentChange; -} + return parseFloat(valueNow) - parseFloat(value24HoursAgo); +}; function parseData(data: any, oneDayData: any) { // get volume changes const oneDayVolumeUSD = get2DayPercentChange( - data.volumeUSD ? Number(data.volumeUSD) : 0, - oneDayData.volumeUSD ? Number(oneDayData.volumeUSD) : 0, + data?.volumeUSD, + oneDayData?.volumeUSD ? oneDayData.volumeUSD : 0, ); - - return { - id: data.id, - token0: data.token0, - token1: data.token1, - oneDayVolumeUSD: parseFloat(oneDayVolumeUSD?.toString()), - reserveUSD: data.reserveUSD, - totalSupply: data.totalSupply, - }; + 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; } // gets the dual rewards staking info from the network for the active chain id