diff --git a/packages/address-book/address-book/index.ts b/packages/address-book/address-book/index.ts index 42d21aef9..880384281 100644 --- a/packages/address-book/address-book/index.ts +++ b/packages/address-book/address-book/index.ts @@ -12,7 +12,6 @@ import { aurora } from './aurora'; import { fuse } from './fuse'; import { metis } from './metis'; import { moonbeam } from './moonbeam'; -import { sys } from './sys'; import { emerald } from './emerald'; import { optimism } from './optimism'; import { kava } from './kava'; @@ -31,7 +30,6 @@ const _addressBook: { readonly one: Chain; readonly metis: Chain; readonly moonbeam: Chain; - readonly sys: Chain; readonly celo: Chain; readonly aurora: Chain; readonly moonriver: Chain; @@ -62,7 +60,6 @@ const _addressBook: { fuse, metis, moonbeam, - sys, emerald, optimism, kava, @@ -86,7 +83,6 @@ const _addressBookByChainId: { readonly '128': Chain; readonly '1313161554': Chain; readonly '42161': Chain; - readonly '57': Chain; readonly '42262': Chain; readonly '10': Chain; readonly '2222': Chain; @@ -108,7 +104,6 @@ const _addressBookByChainId: { [ChainId.fuse]: fuse, [ChainId.metis]: metis, [ChainId.moonbeam]: moonbeam, - [ChainId.sys]: sys, [ChainId.emerald]: emerald, [ChainId.optimism]: optimism, [ChainId.kava]: kava, diff --git a/packages/address-book/address-book/sys/index.ts b/packages/address-book/address-book/sys/index.ts deleted file mode 100644 index 2bd2f8e25..000000000 --- a/packages/address-book/address-book/sys/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { beefyfinance } from './platforms/beefyfinance'; -import { pegasys } from './platforms/pegasys'; -import { tokens } from './tokens/tokens'; -import { convertSymbolTokenMapToAddressTokenMap } from '../../util/convertSymbolTokenMapToAddressTokenMap'; -import Chain from '../../types/chain'; -import { ConstInterface } from '../../types/const'; - -const _sys = { - platforms: { - beefyfinance, - pegasys, - }, - tokens, - tokenAddressMap: convertSymbolTokenMapToAddressTokenMap(tokens), -} as const; - -export const sys: ConstInterface = _sys; diff --git a/packages/address-book/address-book/sys/platforms/beefyfinance.ts b/packages/address-book/address-book/sys/platforms/beefyfinance.ts deleted file mode 100644 index d1c6e5e20..000000000 --- a/packages/address-book/address-book/sys/platforms/beefyfinance.ts +++ /dev/null @@ -1,17 +0,0 @@ -const devMultisig = '0x1db98f5D37E6e0E53DCb24F558F0410086920a6e'; -const treasuryMultisig = '0x3E7F60B442CEAE0FE5e48e07EB85Cfb1Ed60e81A'; - -export const beefyfinance = { - devMultisig, - treasuryMultisig, - strategyOwner: '0xfcDD5a02C611ba6Fe2802f885281500EC95805d7', - vaultOwner: '0xc8F3D9994bb1670F5f3d78eBaBC35FA8FdEEf8a2', - keeper: '0x4fED5491693007f0CD49f4614FFC38Ab6A04B619', - treasurer: treasuryMultisig, - launchpoolOwner: devMultisig, - rewardPool: '0x1198f78efd67DFc917510aaA07d49545f4B24f11', - treasury: treasuryMultisig, - beefyFeeRecipient: '0xaDB9DDFA24E326dC9d337561f6c7ba2a6Ecec697', - multicall: '0xd08575F5F4DE7212123731088980D069CB75873D', - voter: '0x5e1caC103F943Cd84A1E92dAde4145664ebf692A', -} as const; diff --git a/packages/address-book/address-book/sys/platforms/pegasys.ts b/packages/address-book/address-book/sys/platforms/pegasys.ts deleted file mode 100644 index 78303c056..000000000 --- a/packages/address-book/address-book/sys/platforms/pegasys.ts +++ /dev/null @@ -1,4 +0,0 @@ -export const pegasys = { - router: '0x017dAd2578372CAEE5c6CddfE35eEDB3728544C4', // UniswapV2Router02 - minichef: '0x27F037100118548c63F945e284956073D1DC76dE', -} as const; diff --git a/packages/address-book/address-book/sys/tokens/tokens.ts b/packages/address-book/address-book/sys/tokens/tokens.ts deleted file mode 100644 index 7ecc6e0fc..000000000 --- a/packages/address-book/address-book/sys/tokens/tokens.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { ConstRecord } from '../../../types/const'; -import Token from '../../../types/token'; - -const SYS = { - name: 'Wrapped SYS ', - address: '0xd3e822f3ef011Ca5f17D82C956D952D8d7C3A1BB', - symbol: 'WSYS', - decimals: 18, - chainId: 57, - website: 'https://syscoin.org/', - description: - 'Syscoin is a Proof-of-Work blockchain, merged-mined with Bitcoin. At its base it is a dual-layered blockchain: the core is the Syscoin blockchain itself, and running in tandem with it is an Ethereum Virtual Machine (EVM) layer called NEVM (Network-Enhanced Virtual Machine), which provides smart contract functionality.', - logoURI: '', -} as const; - -const _tokens = { - SYS, - WSYS: SYS, - WNATIVE: SYS, - BIFI: { - name: 'Beefy.Finance', - symbol: 'BIFI', - address: '0xD7c295E399CA928A3a14b01D760E794f1AdF8990', - chainId: 57, - decimals: 18, - website: 'https://www.beefy.finance/', - description: - 'Beefy Finance is a Decentralized, Multi-Chain Yield Optimizer platform that allows its users to earn compound interest on their crypto holdings.', - logoURI: - 'https://raw.githubusercontent.com/beefyfinance/beefy-app/prod/src/images/single-assets/BIFI.png', - documentation: 'https://docs.beefy.finance/', - }, - USDC: { - name: 'USD Coin', - symbol: 'USDC', - address: '0x2bF9b864cdc97b08B6D79ad4663e71B8aB65c45c', - chainId: 57, - decimals: 6, - logoURI: - 'https://tokens.pancakeswap.finance/images/0x2bF9b864cdc97b08B6D79ad4663e71B8aB65c45c.svg', - website: 'https://www.circle.com/usdc', - documentation: 'https://developers.circle.com/docs', - description: - 'USDC is a fully collateralized US dollar stablecoin. USDC is issued by regulated financial institutions, backed by fully reserved assets, redeemable on a 1:1 basis for US dollars.', - }, - WETH: { - name: 'Ethereum', - symbol: 'ETH', - address: '0x7C598c96D02398d89FbCb9d41Eab3DF0C16F227D', - chainId: 57, - decimals: 18, - logoURI: - 'https://tokens.pancakeswap.finance/images/0x7C598c96D02398d89FbCb9d41Eab3DF0C16F227D.svg', - website: 'https://weth.io/', - description: 'Ether or ETH is the native currency built on the Ethereum blockchain.', - documentation: 'https://ethereum.org/en/developers/docs/', - }, - WBTC: { - name: 'Wrapped BTC', - symbol: 'WBTC', - address: '0xc9BAA8cfdDe8E328787E29b4B078abf2DaDc2055', - chainId: 57, - decimals: 8, - logoURI: - 'https://tokens.pancakeswap.finance/images/0xc9BAA8cfdDe8E328787E29b4B078abf2DaDc2055.svg', - website: 'https://wbtc.network/', - description: - 'Wrapped Bitcoin (WBTC) is the first ERC20 token backed 1:1 with Bitcoin. Completely transparent. 100% verifiable. Community led.', - }, - USDT: { - name: 'Tether USD', - symbol: 'USDT', - address: '0x922D641a426DcFFaeF11680e5358F34d97d112E1', - chainId: 57, - decimals: 6, - logoURI: - 'https://tokens.pancakeswap.finance/images/0x922D641a426DcFFaeF11680e5358F34d97d112E1.svg', - website: 'https://tether.to/', - description: - 'Tether is a stablecoin pegged to the US Dollar. A stablecoin is a type of cryptocurrency whose value is pegged to another fiat currency like the US Dollar or to a commodity like Gold.Tether is the first stablecoin to be created and it is the most popular stablecoin used in the ecosystem.', - }, - PSYS: { - name: 'Pegasys', - symbol: 'PSYS', - address: '0xE18c200A70908c89fFA18C628fE1B83aC0065EA4', - chainId: 57, - decimals: 18, - logoURI: - 'https://tokens.pancakeswap.finance/images/0xE18c200A70908c89fFA18C628fE1B83aC0065EA4.svg', - website: 'https://app.pegasys.finance/#/swap', - description: - 'Pegasys is an automated liquidity protocol powered by a constant product formula and implemented in a system of non-upgradeable smart contracts on the Syscoin blockchain. It obviates the need for trusted intermediaries, prioritizing decentralization, censorship resistance, and security. Pegasys is open-source software licensed under the GPL.', - }, -} as const; - -export const tokens: ConstRecord = _tokens; diff --git a/packages/address-book/types/chainid.ts b/packages/address-book/types/chainid.ts index 99a90aff0..cc748280b 100644 --- a/packages/address-book/types/chainid.ts +++ b/packages/address-book/types/chainid.ts @@ -13,7 +13,6 @@ export enum ChainId { fuse = 122, metis = 1088, moonbeam = 1284, - sys = 57, emerald = 42262, optimism = 10, kava = 2222, diff --git a/packages/address-book/util/chainIdMap.ts b/packages/address-book/util/chainIdMap.ts index c700a5a54..63e944faf 100644 --- a/packages/address-book/util/chainIdMap.ts +++ b/packages/address-book/util/chainIdMap.ts @@ -13,7 +13,6 @@ const chainIdMap = { fuse: 122, metis: 1088, moonbeam: 1284, - sys: 57, emerald: 42262, optimism: 10, kava: 2222, diff --git a/scripts/add-sushi.ts b/scripts/add-sushi.ts index 78f1cbdf8..eed175c74 100644 --- a/scripts/add-sushi.ts +++ b/scripts/add-sushi.ts @@ -34,9 +34,6 @@ const { celo: { platforms: { sushiCelo: sushiCelo }, }, - sys: { - platforms: { pegasys: pegasys }, - }, } = addressBook; const projects = { @@ -80,11 +77,6 @@ const projects = { file: '../src/data/aurora/trisolarisMiniLpPools.json', masterchef: tri.minichef, }, - pegasys: { - prefix: 'pegasys', - file: '../src/data/sys/pegasysLpPools.json', - masterchef: pegasys.minichef, - }, pancake: { prefix: 'cakev2', file: '../src/data/cakeLpPoolsV2.json', diff --git a/src/abis/sys/PegasysMiniChef.json b/src/abis/sys/PegasysMiniChef.json deleted file mode 100644 index 3b4549094..000000000 --- a/src/abis/sys/PegasysMiniChef.json +++ /dev/null @@ -1,537 +0,0 @@ -[ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { "type": "address", "name": "_rewardToken", "internalType": "address" }, - { "type": "address", "name": "_firstOwner", "internalType": "address" } - ] - }, - { - "type": "event", - "name": "Deposit", - "inputs": [ - { "type": "address", "name": "user", "internalType": "address", "indexed": true }, - { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true }, - { "type": "uint256", "name": "amount", "internalType": "uint256", "indexed": false }, - { "type": "address", "name": "to", "internalType": "address", "indexed": true } - ], - "anonymous": false - }, - { - "type": "event", - "name": "EmergencyWithdraw", - "inputs": [ - { "type": "address", "name": "user", "internalType": "address", "indexed": true }, - { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true }, - { "type": "uint256", "name": "amount", "internalType": "uint256", "indexed": false }, - { "type": "address", "name": "to", "internalType": "address", "indexed": true } - ], - "anonymous": false - }, - { - "type": "event", - "name": "FunderAdded", - "inputs": [ - { "type": "address", "name": "funder", "internalType": "address", "indexed": false } - ], - "anonymous": false - }, - { - "type": "event", - "name": "FunderRemoved", - "inputs": [ - { "type": "address", "name": "funder", "internalType": "address", "indexed": false } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Harvest", - "inputs": [ - { "type": "address", "name": "user", "internalType": "address", "indexed": true }, - { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true }, - { "type": "uint256", "name": "amount", "internalType": "uint256", "indexed": false } - ], - "anonymous": false - }, - { - "type": "event", - "name": "LogRewardPerSecond", - "inputs": [ - { "type": "uint256", "name": "rewardPerSecond", "internalType": "uint256", "indexed": false } - ], - "anonymous": false - }, - { - "type": "event", - "name": "LogRewardsExpiration", - "inputs": [ - { - "type": "uint256", - "name": "rewardsExpiration", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Migrate", - "inputs": [{ "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": false }], - "anonymous": false - }, - { "type": "event", "name": "MigratorDisabled", "inputs": [], "anonymous": false }, - { - "type": "event", - "name": "MigratorSet", - "inputs": [ - { "type": "address", "name": "migrator", "internalType": "address", "indexed": false } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { "type": "address", "name": "previousOwner", "internalType": "address", "indexed": true }, - { "type": "address", "name": "newOwner", "internalType": "address", "indexed": true } - ], - "anonymous": false - }, - { - "type": "event", - "name": "PoolAdded", - "inputs": [ - { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true }, - { "type": "uint256", "name": "allocPoint", "internalType": "uint256", "indexed": false }, - { "type": "address", "name": "lpToken", "internalType": "contract IERC20", "indexed": true }, - { - "type": "address", - "name": "rewarder", - "internalType": "contract IRewarder", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "PoolSet", - "inputs": [ - { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true }, - { "type": "uint256", "name": "allocPoint", "internalType": "uint256", "indexed": false }, - { - "type": "address", - "name": "rewarder", - "internalType": "contract IRewarder", - "indexed": true - }, - { "type": "bool", "name": "overwrite", "internalType": "bool", "indexed": false } - ], - "anonymous": false - }, - { - "type": "event", - "name": "PoolUpdate", - "inputs": [ - { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true }, - { "type": "uint64", "name": "lastRewardTime", "internalType": "uint64", "indexed": false }, - { "type": "uint256", "name": "lpSupply", "internalType": "uint256", "indexed": false }, - { - "type": "uint256", - "name": "accRewardPerShare", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Withdraw", - "inputs": [ - { "type": "address", "name": "user", "internalType": "address", "indexed": true }, - { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true }, - { "type": "uint256", "name": "amount", "internalType": "uint256", "indexed": false }, - { "type": "address", "name": "to", "internalType": "address", "indexed": true } - ], - "anonymous": false - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "address", "name": "", "internalType": "contract IERC20" }], - "name": "REWARD", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "addFunder", - "inputs": [{ "type": "address", "name": "_funder", "internalType": "address" }] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "addPool", - "inputs": [ - { "type": "uint256", "name": "_allocPoint", "internalType": "uint256" }, - { "type": "address", "name": "_lpToken", "internalType": "contract IERC20" }, - { "type": "address", "name": "_rewarder", "internalType": "contract IRewarder" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "addPools", - "inputs": [ - { "type": "uint256[]", "name": "_allocPoints", "internalType": "uint256[]" }, - { "type": "address[]", "name": "_lpTokens", "internalType": "contract IERC20[]" }, - { "type": "address[]", "name": "_rewarders", "internalType": "contract IRewarder[]" } - ] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "bool", "name": "", "internalType": "bool" }], - "name": "addedTokens", - "inputs": [{ "type": "address", "name": "", "internalType": "address" }] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "deposit", - "inputs": [ - { "type": "uint256", "name": "pid", "internalType": "uint256" }, - { "type": "uint256", "name": "amount", "internalType": "uint256" }, - { "type": "address", "name": "to", "internalType": "address" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "depositWithPermit", - "inputs": [ - { "type": "uint256", "name": "pid", "internalType": "uint256" }, - { "type": "uint256", "name": "amount", "internalType": "uint256" }, - { "type": "address", "name": "to", "internalType": "address" }, - { "type": "uint256", "name": "deadline", "internalType": "uint256" }, - { "type": "uint8", "name": "v", "internalType": "uint8" }, - { "type": "bytes32", "name": "r", "internalType": "bytes32" }, - { "type": "bytes32", "name": "s", "internalType": "bytes32" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "disableMigrator", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "emergencyWithdraw", - "inputs": [ - { "type": "uint256", "name": "pid", "internalType": "uint256" }, - { "type": "address", "name": "to", "internalType": "address" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "extendRewardsViaDuration", - "inputs": [ - { "type": "uint256", "name": "extension", "internalType": "uint256" }, - { "type": "uint256", "name": "maxFunding", "internalType": "uint256" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "extendRewardsViaFunding", - "inputs": [ - { "type": "uint256", "name": "funding", "internalType": "uint256" }, - { "type": "uint256", "name": "minExtension", "internalType": "uint256" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "fundRewards", - "inputs": [ - { "type": "uint256", "name": "funding", "internalType": "uint256" }, - { "type": "uint256", "name": "duration", "internalType": "uint256" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "harvest", - "inputs": [ - { "type": "uint256", "name": "pid", "internalType": "uint256" }, - { "type": "address", "name": "to", "internalType": "address" } - ] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "bool", "name": "allowed", "internalType": "bool" }], - "name": "isFunder", - "inputs": [{ "type": "address", "name": "_funder", "internalType": "address" }] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "address", "name": "", "internalType": "contract IERC20" }], - "name": "lpToken", - "inputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "address[]", "name": "", "internalType": "contract IERC20[]" }], - "name": "lpTokens", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "massUpdateAllPools", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "massUpdatePools", - "inputs": [{ "type": "uint256[]", "name": "pids", "internalType": "uint256[]" }] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "migrate", - "inputs": [{ "type": "uint256", "name": "_pid", "internalType": "uint256" }] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "bool", "name": "", "internalType": "bool" }], - "name": "migrationDisabled", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "address", "name": "", "internalType": "contract IMigratorChef" }], - "name": "migrator", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "address", "name": "", "internalType": "address" }], - "name": "owner", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "uint256", "name": "pending", "internalType": "uint256" }], - "name": "pendingReward", - "inputs": [ - { "type": "uint256", "name": "_pid", "internalType": "uint256" }, - { "type": "address", "name": "_user", "internalType": "address" } - ] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [ - { "type": "uint128", "name": "accRewardPerShare", "internalType": "uint128" }, - { "type": "uint64", "name": "lastRewardTime", "internalType": "uint64" }, - { "type": "uint64", "name": "allocPoint", "internalType": "uint64" } - ], - "name": "poolInfo", - "inputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [ - { - "type": "tuple[]", - "name": "", - "internalType": "struct MiniChefV2.PoolInfo[]", - "components": [ - { "type": "uint128", "name": "accRewardPerShare", "internalType": "uint128" }, - { "type": "uint64", "name": "lastRewardTime", "internalType": "uint64" }, - { "type": "uint64", "name": "allocPoint", "internalType": "uint64" } - ] - } - ], - "name": "poolInfos", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "uint256", "name": "pools", "internalType": "uint256" }], - "name": "poolLength", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "removeFunder", - "inputs": [{ "type": "address", "name": "_funder", "internalType": "address" }] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "renounceOwnership", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "resetRewardsDuration", - "inputs": [{ "type": "uint256", "name": "duration", "internalType": "uint256" }] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }], - "name": "rewardPerSecond", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "address", "name": "", "internalType": "contract IRewarder" }], - "name": "rewarder", - "inputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }], - "name": "rewardsExpiration", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "setMigrator", - "inputs": [{ "type": "address", "name": "_migrator", "internalType": "contract IMigratorChef" }] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "setPool", - "inputs": [ - { "type": "uint256", "name": "_pid", "internalType": "uint256" }, - { "type": "uint256", "name": "_allocPoint", "internalType": "uint256" }, - { "type": "address", "name": "_rewarder", "internalType": "contract IRewarder" }, - { "type": "bool", "name": "overwrite", "internalType": "bool" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "setPools", - "inputs": [ - { "type": "uint256[]", "name": "pids", "internalType": "uint256[]" }, - { "type": "uint256[]", "name": "allocPoints", "internalType": "uint256[]" }, - { "type": "address[]", "name": "rewarders", "internalType": "contract IRewarder[]" }, - { "type": "bool[]", "name": "overwrites", "internalType": "bool[]" } - ] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }], - "name": "totalAllocPoint", - "inputs": [] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "transferOwnership", - "inputs": [{ "type": "address", "name": "newOwner", "internalType": "address" }] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [ - { - "type": "tuple", - "name": "pool", - "internalType": "struct MiniChefV2.PoolInfo", - "components": [ - { "type": "uint128", "name": "accRewardPerShare", "internalType": "uint128" }, - { "type": "uint64", "name": "lastRewardTime", "internalType": "uint64" }, - { "type": "uint64", "name": "allocPoint", "internalType": "uint64" } - ] - } - ], - "name": "updatePool", - "inputs": [{ "type": "uint256", "name": "pid", "internalType": "uint256" }] - }, - { - "type": "function", - "stateMutability": "view", - "outputs": [ - { "type": "uint256", "name": "amount", "internalType": "uint256" }, - { "type": "int256", "name": "rewardDebt", "internalType": "int256" } - ], - "name": "userInfo", - "inputs": [ - { "type": "uint256", "name": "", "internalType": "uint256" }, - { "type": "address", "name": "", "internalType": "address" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "withdraw", - "inputs": [ - { "type": "uint256", "name": "pid", "internalType": "uint256" }, - { "type": "uint256", "name": "amount", "internalType": "uint256" }, - { "type": "address", "name": "to", "internalType": "address" } - ] - }, - { - "type": "function", - "stateMutability": "nonpayable", - "outputs": [], - "name": "withdrawAndHarvest", - "inputs": [ - { "type": "uint256", "name": "pid", "internalType": "uint256" }, - { "type": "uint256", "name": "amount", "internalType": "uint256" }, - { "type": "address", "name": "to", "internalType": "address" } - ] - } -] diff --git a/src/api/stats/getAmmPrices.ts b/src/api/stats/getAmmPrices.ts index 37804ad20..d16335568 100644 --- a/src/api/stats/getAmmPrices.ts +++ b/src/api/stats/getAmmPrices.ts @@ -235,7 +235,6 @@ import spookyV2LpPools from '../../data/fantom/spookyV2LpPools.json'; import spookyV3LpPools from '../../data/fantom/spookyV3LpPools.json'; import valasLpPools from '../../data/valasLpPools.json'; import bombLpPools from '../../data/degens/bombLpPools.json'; -import pegasysLpPools from '../../data/sys/pegasysLpPools.json'; import ripaeLpPools from '../../data/degens/ripaeLpPools.json'; import valleySwapLpPools from '../../data/emerald/valleySwapLpPools.json'; import yuzuLpPools from '../../data/emerald/yuzuLpPools.json'; @@ -324,7 +323,6 @@ const pools = normalizePoolOracleIds([ ...yuzuDualPools, ...yuzuLpPools, ...ripaeLpPools, - ...pegasysLpPools, ...bombLpPools, ...valasLpPools, ...spookyV2LpPools, diff --git a/src/api/stats/getApys.js b/src/api/stats/getApys.js index cc4ac3628..97cafc151 100644 --- a/src/api/stats/getApys.js +++ b/src/api/stats/getApys.js @@ -12,7 +12,6 @@ const { getAuroraApys } = require('./aurora'); const { getFuseApys } = require('./fuse'); const { getMetisApys } = require('./metis'); const { getMoonbeamApys } = require('./moonbeam'); -const { getSysApys } = require('./sys'); const { getEmeraldApys } = require('./emerald'); const { getOptimismApys } = require('./optimism'); const { getKavaApys } = require('./kava'); @@ -59,7 +58,6 @@ const updateApys = async () => { getFuseApys(), getMetisApys(), getMoonbeamApys(), - //getSysApys(), getEmeraldApys(), getOptimismApys(), getKavaApys(), diff --git a/src/api/stats/getTvl.js b/src/api/stats/getTvl.js index f00344a82..0186e282b 100644 --- a/src/api/stats/getTvl.js +++ b/src/api/stats/getTvl.js @@ -52,9 +52,6 @@ const { KAVA_CHAIN_ID, KAVA_VAULTS_ENDPOINT, - SYS_CHAIN_ID, - //SYS_VAULTS_ENDPOINT, - CANTO_CHAIN_ID, CANTO_VAULTS_ENDPOINT, @@ -142,11 +139,6 @@ const chains = [ vaultsEndpoint: MOONBEAM_VAULTS_ENDPOINT, governancePool: require('../../data/moonbeam/governancePool.json'), }, - // { - // chainId: SYS_CHAIN_ID, - // vaultsEndpoint: SYS_VAULTS_ENDPOINT, - // governancePool: require('../../data/sys/governancePool.json'), - // }, { chainId: EMERALD_CHAIN_ID, vaultsEndpoint: EMERALD_VAULTS_ENDPOINT, diff --git a/src/api/stats/sys/getPegasysApys.js b/src/api/stats/sys/getPegasysApys.js deleted file mode 100644 index 67761c8ec..000000000 --- a/src/api/stats/sys/getPegasysApys.js +++ /dev/null @@ -1,149 +0,0 @@ -const BigNumber = require('bignumber.js'); -const { MultiCall } = require('eth-multicall'); -const { sysWeb3: web3, multicallAddress } = require('../../../utils/web3'); - -const MasterChef = require('../../../abis/sys/PegasysMiniChef.json'); -import SimpleRewarder from '../../../abis/aurora/TriRewarder.json'; -const ERC20 = require('../../../abis/ERC20.json'); -const fetchPrice = require('../../../utils/fetchPrice'); -const pools = require('../../../data/sys/pegasysLpPools.json'); -const { BASE_HPY, SYS_CHAIN_ID, PEGASYS_LPF } = require('../../../constants'); -const { compound } = require('../../../utils/compound'); -import { addressBook } from '../../../../packages/address-book/address-book'; -import { getContract, getContractWithProvider } from '../../../utils/contractHelper'; -import { getFarmWithTradingFeesApy } from '../../../utils/getFarmWithTradingFeesApy'; -import { getTotalPerformanceFeeForVault } from '../../vaults/getVaultFees'; -const { getTradingFeeApr } = require('../../../utils/getTradingFeeApr'); -const { pegasysClient } = require('../../../apollo/client'); -const { - sys: { - platforms: { - pegasys: { minichef }, - }, - tokens: { PSYS }, - }, -} = addressBook; - -const masterchef = minichef; - -const oracleA = 'tokens'; -const DECIMALSA = '1e18'; - -const secondsPerBlock = 1; -const secondsPerYear = 31536000; - -const getPegasysApys = async () => { - let apys = {}; - let apyBreakdowns = {}; - - const tokenPriceA = await fetchPrice({ oracle: oracleA, id: PSYS.symbol }); - const { rewardPerSecond, totalAllocPoint } = await getMasterChefData(); - const { balances, allocPoints, rewarders } = await getPoolsData(pools); - - const pairAddresses = pools.map(pool => pool.address); - const tradingAprs = 0; - - for (let i = 0; i < pools.length; i++) { - const pool = pools[i]; - - const lpPrice = await fetchPrice({ oracle: 'lps', id: pool.name }); - const totalStakedInUsd = balances[i].times(lpPrice).dividedBy('1e18'); - - const poolBlockRewards = rewardPerSecond.times(allocPoints[i]).dividedBy(totalAllocPoint); - const yearlyRewards = poolBlockRewards.dividedBy(secondsPerBlock).times(secondsPerYear); - const yearlyRewardsAInUsd = yearlyRewards.times(tokenPriceA).dividedBy(DECIMALSA); - - const yearlyRewardsBInUsd = await (async () => { - if (rewarders[i] === '0x0000000000000000000000000000000000000000') { - return 0; - } else { - const tokenPriceB = await fetchPrice({ oracle: pool.oracleB, id: pool.oracleIdB }); - const rewarderContract = getContractWithProvider(SimpleRewarder, rewarders[i], web3); - const tokenBPerSec = new BigNumber(await rewarderContract.methods.tokenPerBlock().call()); - const yearlyRewardsB = tokenBPerSec.dividedBy(secondsPerBlock).times(secondsPerYear); - return yearlyRewardsB.times(tokenPriceB).dividedBy(pool.decimalsB); - } - })(); - - const yearlyRewardsInUsd = yearlyRewardsAInUsd.plus(yearlyRewardsBInUsd); - - const simpleApy = yearlyRewardsInUsd.dividedBy(totalStakedInUsd); - const beefyPerformanceFee = getTotalPerformanceFeeForVault(pool.name); - const shareAfterBeefyPerformanceFee = 1 - beefyPerformanceFee; - const vaultApr = simpleApy.times(shareAfterBeefyPerformanceFee); - const vaultApy = compound(simpleApy, BASE_HPY, 1, shareAfterBeefyPerformanceFee); - const tradingApr = tradingAprs[pool.address.toLowerCase()] ?? new BigNumber(0); - const totalApy = getFarmWithTradingFeesApy( - simpleApy, - tradingApr, - BASE_HPY, - 1, - shareAfterBeefyPerformanceFee - ); - - // console.log(pool.name, simpleApy.valueOf(), tradingApr.valueOf(), apy, totalStakedInUsd.valueOf(), yearlyRewardsInUsd.valueOf()); - - // Create reference for legacy /apy - const legacyApyValue = { [pool.name]: vaultApy }; - - apys = { ...apys, ...legacyApyValue }; - - // Create reference for breakdown /apy - const componentValues = { - [pool.name]: { - vaultApr: vaultApr.toNumber(), - compoundingsPerYear: BASE_HPY, - beefyPerformanceFee: beefyPerformanceFee, - vaultApy: vaultApy, - lpFee: PEGASYS_LPF, - tradingApr: tradingApr, - totalApy: totalApy, - }, - }; - - apyBreakdowns = { ...apyBreakdowns, ...componentValues }; - } - - // Return both objects for later parsing - return { - apys, - apyBreakdowns, - }; -}; - -const getMasterChefData = async () => { - const masterchefContract = getContractWithProvider(MasterChef, masterchef, web3); - const rewardPerSecond = new BigNumber(await masterchefContract.methods.rewardPerSecond().call()); - const totalAllocPoint = new BigNumber(await masterchefContract.methods.totalAllocPoint().call()); - return { rewardPerSecond, totalAllocPoint }; -}; - -const getPoolsData = async pools => { - const masterchefContract = getContract(MasterChef, masterchef); - const multicall = new MultiCall(web3, multicallAddress(SYS_CHAIN_ID)); - const balanceCalls = []; - const poolInfoCalls = []; - const rewarderCalls = []; - pools.forEach(pool => { - const tokenContract = getContract(ERC20, pool.address); - balanceCalls.push({ - balance: tokenContract.methods.balanceOf(masterchef), - }); - let poolInfo = masterchefContract.methods.poolInfo(pool.poolId); - poolInfoCalls.push({ - poolInfo: poolInfo, - }); - rewarderCalls.push({ - rewarder: masterchefContract.methods.rewarder(pool.poolId), - }); - }); - - const res = await multicall.all([balanceCalls, poolInfoCalls, rewarderCalls]); - - const balances = res[0].map(v => new BigNumber(v.balance)); - const allocPoints = res[1].map(v => v.poolInfo['2']); - const rewarders = res[2].map(v => v.rewarder); - return { balances, allocPoints, rewarders }; -}; - -module.exports = getPegasysApys; diff --git a/src/api/stats/sys/index.js b/src/api/stats/sys/index.js deleted file mode 100644 index 6ca0f6716..000000000 --- a/src/api/stats/sys/index.js +++ /dev/null @@ -1,49 +0,0 @@ -const getPegasysApys = require('./getPegasysApys'); - -const getApys = [getPegasysApys]; - -const getSysApys = async () => { - let apys = {}; - let apyBreakdowns = {}; - - let promises = []; - getApys.forEach(getApy => promises.push(getApy())); - const results = await Promise.allSettled(promises); - - for (const result of results) { - if (result.status !== 'fulfilled') { - console.warn('getSysApys error', result.reason); - continue; - } - - // Set default APY values - let mappedApyValues = result.value; - let mappedApyBreakdownValues = {}; - - // Loop through key values and move default breakdown format - // To require totalApy key - for (const [key, value] of Object.entries(result.value)) { - mappedApyBreakdownValues[key] = { - totalApy: value, - }; - } - - // Break out to apy and breakdowns if possible - let hasApyBreakdowns = 'apyBreakdowns' in result.value; - if (hasApyBreakdowns) { - mappedApyValues = result.value.apys; - mappedApyBreakdownValues = result.value.apyBreakdowns; - } - - apys = { ...apys, ...mappedApyValues }; - - apyBreakdowns = { ...apyBreakdowns, ...mappedApyBreakdownValues }; - } - - return { - apys, - apyBreakdowns, - }; -}; - -module.exports = { getSysApys }; diff --git a/src/apollo/client.ts b/src/apollo/client.ts index 1da0fa23f..b1b815ed4 100644 --- a/src/apollo/client.ts +++ b/src/apollo/client.ts @@ -105,7 +105,6 @@ const netswapClient = client('https://api.netswap.io/graph/subgraphs/name/netswa const tethysClient = client('https://graph-node.tethys.finance/subgraphs/name/tethys2'); const tombswapClient = client('https://api.thegraph.com/subgraphs/name/github-qfg/tombswap'); const biswapClient = client('https://api.thegraph.com/subgraphs/name/biswapcom/exchange5'); -const pegasysClient = client('https://graph.pegasys.exchange/subgraphs/name/pollum-io/pegasys'); const uniswapPolygonClient = client( 'https://api.thegraph.com/subgraphs/name/ianlapham/uniswap-v3-polygon' ); @@ -193,7 +192,6 @@ export { stellaClient, tombswapClient, biswapClient, - pegasysClient, uniswapPolygonClient, balancerClient, hopArbClient, diff --git a/src/constants.ts b/src/constants.ts index 669460316..79b2735be 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -53,7 +53,6 @@ const AURORA_RPC = const FUSE_RPC = process.env.FUSE_RPC || 'https://rpc.fuse.io'; const METIS_RPC = process.env.METIS_RPC || 'https://andromeda.metis.io/?owner=1088'; const MOONBEAM_RPC = process.env.MOONBEAM_RPC || 'https://rpc.api.moonbeam.network'; -const SYS_RPC = process.env.SYS_RPC || 'https://rpc.syscoin.org/'; const EMERALD_RPC = process.env.EMERALD_RPC || 'https://emerald.oasis.dev'; const OPTIMISM_RPC = process.env.OPTIMISM_RPC || 'https://rpc.ankr.com/optimism'; const KAVA_RPC = process.env.KAVA_RPC || 'https://evm.kava.io'; @@ -75,7 +74,6 @@ const AURORA_CHAIN_ID = ChainId.aurora; const FUSE_CHAIN_ID = ChainId.fuse; const METIS_CHAIN_ID = ChainId.metis; const MOONBEAM_CHAIN_ID = ChainId.moonbeam; -const SYS_CHAIN_ID = ChainId.sys; const EMERALD_CHAIN_ID = ChainId.emerald; const OPTIMISM_CHAIN_ID = ChainId.optimism; const KAVA_CHAIN_ID = ChainId.kava; @@ -94,7 +92,6 @@ const APE_LPF = 0.002; const SPOOKY_LPF = 0.002; const JOE_LPF = 0.003; const SOLAR_LPF = 0.0025; -const PEGASYS_LPF = 0.0025; const FUSEFI_LPF = 0.003; const NET_LPF = 0.003; const PANGOLIN_LPF = 0.003; @@ -119,7 +116,6 @@ const MULTICHAIN_RPC: Record = { [ChainId.fuse]: FUSE_RPC, [ChainId.metis]: METIS_RPC, [ChainId.moonbeam]: MOONBEAM_RPC, - [ChainId.sys]: SYS_RPC, [ChainId.emerald]: EMERALD_RPC, [ChainId.optimism]: OPTIMISM_RPC, [ChainId.kava]: KAVA_RPC, @@ -156,8 +152,6 @@ const METIS_VAULTS_ENDPOINT = 'https://raw.githubusercontent.com/beefyfinance/beefy-v2/prod/src/config/vault/metis.json'; const MOONBEAM_VAULTS_ENDPOINT = 'https://raw.githubusercontent.com/beefyfinance/beefy-v2/prod/src/config/vault/moonbeam.json'; -// const SYS_VAULTS_ENDPOINT = -// 'https://raw.githubusercontent.com/beefyfinance/beefy-v2/prod/src/config/vault/sys.json'; const EMERALD_VAULTS_ENDPOINT = 'https://raw.githubusercontent.com/beefyfinance/beefy-v2/prod/src/config/vault/emerald.json'; const OPTIMISM_VAULTS_ENDPOINT = @@ -185,7 +179,6 @@ const MULTICHAIN_ENDPOINTS: Partial> = { fuse: FUSE_VAULTS_ENDPOINT, metis: METIS_VAULTS_ENDPOINT, moonbeam: MOONBEAM_VAULTS_ENDPOINT, - // sys: SYS_VAULTS_ENDPOINT, emerald: EMERALD_VAULTS_ENDPOINT, optimism: OPTIMISM_VAULTS_ENDPOINT, heco: HECO_VAULTS_ENDPOINT, @@ -242,9 +235,6 @@ export { MOONBEAM_RPC, MOONBEAM_CHAIN_ID, MOONBEAM_VAULTS_ENDPOINT, - SYS_RPC, - SYS_CHAIN_ID, - // SYS_VAULTS_ENDPOINT, EMERALD_RPC, EMERALD_CHAIN_ID, EMERALD_VAULTS_ENDPOINT, @@ -291,7 +281,6 @@ export { BEAMSWAP_LPF, BISWAP_LPF, TOMBSWAP_LPF, - PEGASYS_LPF, HOP_LPF, EXCLUDED_IDS_FROM_TVL, }; diff --git a/src/data/sys/pegasysLpPools.json b/src/data/sys/pegasysLpPools.json deleted file mode 100644 index 3be5ec3a0..000000000 --- a/src/data/sys/pegasysLpPools.json +++ /dev/null @@ -1,116 +0,0 @@ -[ - { - "name": "pegasys-usdc-psys", - "address": "0xDA3995D0ADDb43935A0c17c187C271Cc6c07Df21", - "decimals": "1e18", - "poolId": 5, - "chainId": 57, - "lp0": { - "address": "0x2bF9b864cdc97b08B6D79ad4663e71B8aB65c45c", - "oracle": "tokens", - "oracleId": "USDC", - "decimals": "1e6" - }, - "lp1": { - "address": "0xE18c200A70908c89fFA18C628fE1B83aC0065EA4", - "oracle": "tokens", - "oracleId": "PSYS", - "decimals": "1e18" - } - }, - { - "name": "pegasys-wsys-psys", - "address": "0x1a7400F4DFE299DBac8034bD2Bb0B3B17fCA9342", - "decimals": "1e18", - "poolId": 4, - "chainId": 57, - "lp0": { - "address": "0xd3e822f3ef011Ca5f17D82C956D952D8d7C3A1BB", - "oracle": "tokens", - "oracleId": "WSYS", - "decimals": "1e18" - }, - "lp1": { - "address": "0xE18c200A70908c89fFA18C628fE1B83aC0065EA4", - "oracle": "tokens", - "oracleId": "PSYS", - "decimals": "1e18" - } - }, - { - "name": "pegasys-usdc-usdt", - "address": "0x8c741Cd1Dc4D027034ce864FFD660BFa44c24674", - "decimals": "1e18", - "poolId": 3, - "chainId": 57, - "lp0": { - "address": "0x2bF9b864cdc97b08B6D79ad4663e71B8aB65c45c", - "oracle": "tokens", - "oracleId": "USDC", - "decimals": "1e6" - }, - "lp1": { - "address": "0x922D641a426DcFFaeF11680e5358F34d97d112E1", - "oracle": "tokens", - "oracleId": "USDT", - "decimals": "1e6" - } - }, - { - "name": "pegasys-wbtc-wsys", - "address": "0xB881304fCd792062732Da050828f74D285BbF078", - "decimals": "1e18", - "poolId": 2, - "chainId": 57, - "lp0": { - "address": "0xc9BAA8cfdDe8E328787E29b4B078abf2DaDc2055", - "oracle": "tokens", - "oracleId": "WBTC", - "decimals": "1e8" - }, - "lp1": { - "address": "0xd3e822f3ef011Ca5f17D82C956D952D8d7C3A1BB", - "oracle": "tokens", - "oracleId": "WSYS", - "decimals": "1e18" - } - }, - { - "name": "pegasys-eth-wsys", - "address": "0x1cF22F868D15d4Eed8EddFA8c9C0b88C24B3e0b0", - "decimals": "1e18", - "poolId": 1, - "chainId": 57, - "lp0": { - "address": "0x7C598c96D02398d89FbCb9d41Eab3DF0C16F227D", - "oracle": "tokens", - "oracleId": "WETH", - "decimals": "1e18" - }, - "lp1": { - "address": "0xd3e822f3ef011Ca5f17D82C956D952D8d7C3A1BB", - "oracle": "tokens", - "oracleId": "WSYS", - "decimals": "1e18" - } - }, - { - "name": "pegasys-usdc-wsys", - "address": "0x2CDF912CbeaF76d67feaDC994D889c2F4442b300", - "decimals": "1e18", - "poolId": 0, - "chainId": 57, - "lp0": { - "address": "0x2bF9b864cdc97b08B6D79ad4663e71B8aB65c45c", - "oracle": "tokens", - "oracleId": "USDC", - "decimals": "1e6" - }, - "lp1": { - "address": "0xd3e822f3ef011Ca5f17D82C956D952D8d7C3A1BB", - "oracle": "tokens", - "oracleId": "WSYS", - "decimals": "1e18" - } - } -] diff --git a/src/utils/ethersHelpers.ts b/src/utils/ethersHelpers.ts index d1e2a54bc..bfd83c2e9 100644 --- a/src/utils/ethersHelpers.ts +++ b/src/utils/ethersHelpers.ts @@ -31,8 +31,6 @@ import { METIS_CHAIN_ID, MOONBEAM_RPC, MOONBEAM_CHAIN_ID, - SYS_RPC, - SYS_CHAIN_ID, EMERALD_RPC, EMERALD_CHAIN_ID, OPTIMISM_RPC, @@ -63,7 +61,6 @@ const MULTICALLS: Record['multicall']> [ChainId.fuse]: addressBookByChainId[ChainId.fuse].platforms.beefyfinance.multicall, [ChainId.metis]: addressBookByChainId[ChainId.metis].platforms.beefyfinance.multicall, [ChainId.moonbeam]: addressBookByChainId[ChainId.moonbeam].platforms.beefyfinance.multicall, - [ChainId.sys]: addressBookByChainId[ChainId.sys].platforms.beefyfinance.multicall, [ChainId.emerald]: addressBookByChainId[ChainId.emerald].platforms.beefyfinance.multicall, [ChainId.optimism]: addressBookByChainId[ChainId.optimism].platforms.beefyfinance.multicall, [ChainId.kava]: addressBookByChainId[ChainId.kava].platforms.beefyfinance.multicall, @@ -87,7 +84,6 @@ const clients: Record fuse: [], metis: [], moonbeam: [], - sys: [], emerald: [], optimism: [], kava: [], @@ -111,7 +107,6 @@ clients.aurora.push(new ethers.providers.JsonRpcProvider(AURORA_RPC)); clients.fuse.push(new ethers.providers.JsonRpcProvider(FUSE_RPC)); clients.metis.push(new ethers.providers.JsonRpcProvider(METIS_RPC)); clients.moonbeam.push(new ethers.providers.JsonRpcProvider(MOONBEAM_RPC)); -clients.sys.push(new ethers.providers.JsonRpcProvider(SYS_RPC)); clients.emerald.push(new ethers.providers.JsonRpcProvider(EMERALD_RPC)); clients.optimism.push(new ethers.providers.JsonRpcProvider(OPTIMISM_RPC)); clients.kava.push(new ethers.providers.JsonRpcProvider(KAVA_RPC)); @@ -134,7 +129,6 @@ export const chainRandomClients = { fuseRandomClient: () => clients.fuse[~~(clients.fuse.length * Math.random())], metisRandomClient: () => clients.metis[~~(clients.metis.length * Math.random())], moonbeamRandomClient: () => clients.moonbeam[~~(clients.moonbeam.length * Math.random())], - sysRandomClient: () => clients.sys[~~(clients.sys.length * Math.random())], emeraldRandomClient: () => clients.emerald[~~(clients.emerald.length * Math.random())], optimismRandomClient: () => clients.optimism[~~(clients.optimism.length * Math.random())], kavaRandomClient: () => clients.kava[~~(clients.kava.length * Math.random())], @@ -173,8 +167,6 @@ export const _ethersFactory = (chainId: ChainId) => { return chainRandomClients.metisRandomClient(); case MOONBEAM_CHAIN_ID: return chainRandomClients.moonbeamRandomClient(); - case SYS_CHAIN_ID: - return chainRandomClients.sysRandomClient(); case EMERALD_CHAIN_ID: return chainRandomClients.emeraldRandomClient(); case OPTIMISM_CHAIN_ID: diff --git a/src/utils/web3.js b/src/utils/web3.js index ae7d0d032..f72d369d5 100644 --- a/src/utils/web3.js +++ b/src/utils/web3.js @@ -45,9 +45,6 @@ module.exports = { get moonbeamWeb3() { return chainRandomClients.moonbeamRandomClient(); }, - get sysWeb3() { - return chainRandomClients.sysRandomClient(); - }, get emeraldWeb3() { return chainRandomClients.emeraldRandomClient(); }, diff --git a/src/utils/web3Helpers.ts b/src/utils/web3Helpers.ts index d5fb50c5a..13929d232 100644 --- a/src/utils/web3Helpers.ts +++ b/src/utils/web3Helpers.ts @@ -32,8 +32,6 @@ import { METIS_CHAIN_ID, MOONBEAM_RPC, MOONBEAM_CHAIN_ID, - SYS_RPC, - SYS_CHAIN_ID, EMERALD_RPC, EMERALD_CHAIN_ID, OPTIMISM_RPC, @@ -63,7 +61,6 @@ const MULTICALLS: Record['multicall']> [ChainId.fuse]: addressBookByChainId[ChainId.fuse].platforms.beefyfinance.multicall, [ChainId.metis]: addressBookByChainId[ChainId.metis].platforms.beefyfinance.multicall, [ChainId.moonbeam]: addressBookByChainId[ChainId.moonbeam].platforms.beefyfinance.multicall, - [ChainId.sys]: addressBookByChainId[ChainId.sys].platforms.beefyfinance.multicall, [ChainId.emerald]: addressBookByChainId[ChainId.emerald].platforms.beefyfinance.multicall, [ChainId.optimism]: addressBookByChainId[ChainId.optimism].platforms.beefyfinance.multicall, [ChainId.kava]: addressBookByChainId[ChainId.kava].platforms.beefyfinance.multicall, @@ -110,7 +107,6 @@ const clients: Record = { fuse: [], metis: [], moonbeam: [], - sys: [], emerald: [], optimism: [], kava: [], @@ -134,7 +130,6 @@ clients.aurora.push(new Web3(AURORA_RPC)); clients.fuse.push(new Web3(FUSE_RPC)); clients.metis.push(new Web3(METIS_RPC)); clients.moonbeam.push(new Web3(MOONBEAM_RPC)); -clients.sys.push(new Web3(SYS_RPC)); clients.emerald.push(new Web3(EMERALD_RPC)); clients.optimism.push(new Web3(OPTIMISM_RPC)); clients.kava.push(new Web3(KAVA_RPC)); @@ -157,7 +152,6 @@ export const chainRandomClients = { fuseRandomClient: () => clients.fuse[~~(clients.fuse.length * Math.random())], metisRandomClient: () => clients.metis[~~(clients.metis.length * Math.random())], moonbeamRandomClient: () => clients.moonbeam[~~(clients.moonbeam.length * Math.random())], - sysRandomClient: () => clients.sys[~~(clients.sys.length * Math.random())], emeraldRandomClient: () => clients.emerald[~~(clients.emerald.length * Math.random())], optimismRandomClient: () => clients.optimism[~~(clients.optimism.length * Math.random())], kavaRandomClient: () => clients.kava[~~(clients.kava.length * Math.random())], @@ -196,8 +190,6 @@ export const _web3Factory = (chainId: ChainId) => { return chainRandomClients.metisRandomClient(); case MOONBEAM_CHAIN_ID: return chainRandomClients.moonbeamRandomClient(); - case SYS_CHAIN_ID: - return chainRandomClients.sysRandomClient(); case EMERALD_CHAIN_ID: return chainRandomClients.emeraldRandomClient(); case OPTIMISM_CHAIN_ID: