Skip to content

Commit

Permalink
Merge pull request #449 from axelarnetwork/hotfix/remove-kybeswap-ref…
Browse files Browse the repository at this point in the history
…erences
  • Loading branch information
canhtrinh authored Nov 23, 2023
2 parents 4026359 + be1e240 commit bae6b59
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 24 deletions.
14 changes: 14 additions & 0 deletions src/config/utils/reservedAddresses/11232023.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const kybeSwapRevervedList: string[] = [
"0x50275E0B7261559cE1644014d4b78D4AA63BE836",
"0xC9B826BAD20872EB29f9b1D8af4BefE8460b50c6",
"0xae7e16cAa7a4d572FfF09924Bf077a89485850Cb",
"0xa4c92d7482066878bb1e2c0510f42b20d79a7ea9",
"0xd01896e3D4F130Ffd6f6a5A9d6780bbd7008d71d",
"0x9296fa3246f478e32b05d4dde35176d927be703f",
// suspected attacker addresses:
"0x98d69d3ea5f7e03098400a5bedfbe49f2b0b88d3",
"0x84e66f86c28502c0fc8613e1d9cbbed806f7adb4",
"0x5E42DD64266C3852cad3d294f71b171459Cf0a48",
];

export default kybeSwapRevervedList;
10 changes: 6 additions & 4 deletions src/config/utils/reservedAddresses/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { toLower } from "rambda";

import list1 from "./10202023";
import list2 from "./11232023";
import originalList from "./originalList";

const normalized = [
...originalList,
...list1.map((item) => item.toLowerCase()),
];
const additionalList = [list1, list2].flatMap(toLower);

const normalized = [...originalList, ...additionalList];

export default JSON.stringify(normalized);
40 changes: 20 additions & 20 deletions src/data/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ export const USDC_POOLS: Record<string, PoolInfo> = {
dex: "Osmosis",
url: "https://app.osmosis.zone/pool/678",
},
polygon: {
pairs: ["axlUSDC/USDC"],
dex: "KyberSwap",
url: "https://kyberswap.com/swap/polygon/axlusdc-to-usdc",
},
avalanche: {
pairs: ["axlUSDC/USDC"],
dex: "KyberSwap",
url: "https://kyberswap.com/swap/avalanche/axlusdc-to-usdc",
},
// polygon: {
// pairs: ["axlUSDC/USDC"],
// dex: "KyberSwap",
// url: "https://kyberswap.com/swap/polygon/axlusdc-to-usdc",
// },
// avalanche: {
// pairs: ["axlUSDC/USDC"],
// dex: "KyberSwap",
// url: "https://kyberswap.com/swap/avalanche/axlusdc-to-usdc",
// },
fantom: {
pairs: ["axlUSDC/USDC"],
dex: "Curve",
Expand Down Expand Up @@ -61,11 +61,11 @@ export const USDC_POOLS: Record<string, PoolInfo> = {
dex: "PancakeSwap",
url: "https://pancakeswap.finance/swap?inputCurrency=0x4268B8F0B87b6Eae5d897996E6b845ddbD99Adf3&outputCurrency=0x55d398326f99059fF775485246999027B3197955",
},
arbitrum: {
pairs: ["axlUSDC/USDC"],
dex: "KyberSwap",
url: "https://kyberswap.com/swap/arbitrum/axlusdc-to-usdc.e",
},
// arbitrum: {
// pairs: ["axlUSDC/USDC"],
// dex: "KyberSwap",
// url: "https://kyberswap.com/swap/arbitrum/axlusdc-to-usdc.e",
// },
moonbeam: {
pairs: ["GLMR/axlUSDC"],
dex: "Stellaswap",
Expand All @@ -81,9 +81,9 @@ export const USDC_POOLS: Record<string, PoolInfo> = {
dex: "Equilibre",
url: "https://equilibrefinance.com/swap?outputCurrency=0xeb466342c4d449bc9f53a865d5cb90586f405215",
},
optimism: {
pairs: ["axlUSDC/USDC"],
dex: "KyberSwap",
url: "https://kyberswap.com/swap/optimism/axlusdc-to-usdc",
},
// optimism: {
// pairs: ["axlUSDC/USDC"],
// dex: "KyberSwap",
// url: "https://kyberswap.com/swap/optimism/axlusdc-to-usdc",
// },
};

0 comments on commit bae6b59

Please sign in to comment.