Skip to content

Commit

Permalink
fix: remove USN-related logic
Browse files Browse the repository at this point in the history
  • Loading branch information
swimthor committed Oct 26, 2022
1 parent 1587efb commit 4c0979b
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 288 deletions.
42 changes: 0 additions & 42 deletions apps/ui/src/config/ecosystems/aurora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,6 @@ const mainnet: EvmChainConfigV1<EvmEcosystemId.Aurora> = {
],
]),
},
{
id: "mainnet-aurora-usn",
projectId: TokenProjectIdV1.Usn,
nativeDetails: {
address: "0x5183e1B1091804BC2602586919E6880ac1cf2896",
decimals: 18,
},
wrappedDetails: new Map([
[
SOLANA_ECOSYSTEM_ID,
{
address: "3NDmtc2xKMpm8wCiaALey2y3EGhBkUNuXJ9m3JcjnHMM",
decimals: 8,
},
],
]),
},
],
pools: [],
};
Expand Down Expand Up @@ -104,23 +87,6 @@ const testnet: EvmChainConfigV1<EvmEcosystemId.Aurora> = {
],
]),
},
{
id: "testnet-aurora-usn",
projectId: TokenProjectIdV1.Usn,
nativeDetails: {
address: "0x0000000000000000000000000000000000000000", // TODO: Update
decimals: 18,
},
wrappedDetails: new Map([
[
SOLANA_ECOSYSTEM_ID,
{
address: "11111111111111111111111111111111", // TODO: Update
decimals: 8,
},
],
]),
},
{
id: "testnet-aurora-lp-usdc-usdt",
projectId: TokenProjectIdV2.SwimLpAuroraUsdcUsdt,
Expand All @@ -129,14 +95,6 @@ const testnet: EvmChainConfigV1<EvmEcosystemId.Aurora> = {
decimals: 8,
},
},
{
id: "testnet-aurora-lp-usn",
projectId: TokenProjectIdV2.SwimLpAuroraUsn,
nativeDetails: {
address: "0x1111111111111111111111111111111111111111", // TODO: Update
decimals: 8,
},
},
],
pools: [],
};
Expand Down
18 changes: 0 additions & 18 deletions apps/ui/src/config/ecosystems/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,6 @@ const mainnet: SolanaChainConfigV1 = {
},
wrappedDetails: EMPTY_MAP,
},
{
id: "mainnet-solana-lp-meta-aurora-usn",
projectId: TokenProjectIdV1.SwimAuroraUsnLp,
nativeDetails: {
address: "3eXCU7YoiCq3rZ6787pPFJE7TXBsKuTZ49wH2kFnuTeF",
decimals: 8,
},
wrappedDetails: EMPTY_MAP,
},
{
id: "mainnet-solana-lp-meta-fantom-usdc",
projectId: TokenProjectIdV1.SwimFantomUsdcLp,
Expand Down Expand Up @@ -399,15 +390,6 @@ const testnet: SolanaChainConfigV1 = {
},
wrappedDetails: EMPTY_MAP,
},
{
id: "testnet-solana-lp-meta-aurora-usn",
projectId: TokenProjectIdV1.SwimAuroraUsnLp,
nativeDetails: {
address: "11111111111111111111111111111111", // TODO: Update
decimals: 8,
},
wrappedDetails: EMPTY_MAP,
},
{
id: "testnet-solana-lp-meta-fantom-usdc",
projectId: TokenProjectIdV1.SwimFantomUsdcLp,
Expand Down
55 changes: 0 additions & 55 deletions apps/ui/src/config/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,28 +243,6 @@ const MAINNET_POOLS: readonly PoolSpec[] = [
]),
tokens: ["mainnet-aurora-usdt", "mainnet-solana-lp-hexapool"],
},
{
isDisabled: !process.env.REACT_APP_ENABLE_AURORA_USN,
id: "meta-aurora-usn",
ecosystem: SOLANA_ECOSYSTEM_ID,
displayName: "Aurora USN",
isStakingPool: false,
isStableSwap: true,
isLegacyPool: true,
contract: "SWimmSE5hgWsEruwPBLBVAFi3KyVfe8URU2pb4w7GZs",
address: "4Cos4Z3DaMa37MpvjfCEH93DqonPmDV3b6GuPvmWugqF",
authority: "9dowtd9EbAtC9iKyXWaC5TBmHTivDfdQ6JbeTvHiCK6p",
feeDecimals: 6,
lpToken: "mainnet-solana-lp-meta-aurora-usn",
tokenAccounts: new Map([
["mainnet-aurora-usn", "3dkbc5KuJSJ9ah87uVZRRLZMH1JKMaREQgcAkHSijWpR"],
[
"mainnet-solana-lp-hexapool",
"9Ddfhn9P1BJvxtfCvgvKBfSiKSrwdDBBSUf9SdQkDDW5",
],
]),
tokens: ["mainnet-aurora-usn", "mainnet-solana-lp-hexapool"],
},
{
isDisabled: !isEcosystemEnabled(EvmEcosystemId.Fantom),
id: "meta-fantom-usdc",
Expand Down Expand Up @@ -468,20 +446,6 @@ export const TESTNET_POOLS_FOR_RESTRUCTURE: readonly PoolSpec[] = [
lpToken: "testnet-aurora-lp-usdc-usdt",
tokens: ["testnet-swimusd", "testnet-aurora-usdc", "testnet-aurora-usdt"],
},
{
isDisabled: true,
// TODO: Update !isPoolRestructureEnabled() || !process.env.REACT_APP_ENABLE_AURORA_USN,
id: "testnet-aurora-usn",
ecosystem: EvmEcosystemId.Aurora,
displayName: "Aurora USN",
isStakingPool: false,
isStableSwap: true,
isLegacyPool: false,
address: "11111111111111111111111111111111", // TODO: Update
feeDecimals: 6,
lpToken: "testnet-aurora-lp-usn",
tokens: ["testnet-swimusd", "testnet-aurora-usn"],
},
{
isDisabled: true, // TODO: Update !isPoolRestructureEnabled(),
id: "testnet-fantom-usdc",
Expand Down Expand Up @@ -736,25 +700,6 @@ export const TESTNET_POOLS: readonly PoolSpec[] = [
]),
tokens: ["testnet-aurora-usdt", "testnet-solana-lp-hexapool"],
},
{
isDisabled: !process.env.REACT_APP_ENABLE_AURORA_USN, // TODO: Enable when deployed on testnet
id: "meta-aurora-usn",
ecosystem: SOLANA_ECOSYSTEM_ID,
displayName: "Aurora USN",
isStakingPool: false,
isStableSwap: true,
isLegacyPool: true,
contract: "SWimmSE5hgWsEruwPBLBVAFi3KyVfe8URU2pb4w7GZs",
address: "11111111111111111111111111111111", // TODO: Update
authority: "11111111111111111111111111111111", // TODO: Update
feeDecimals: 6,
lpToken: "testnet-solana-lp-meta-aurora-usn",
tokenAccounts: new Map([
["testnet-aurora-usn", "11111111111111111111111111111111"], // TODO: Update
["testnet-solana-lp-hexapool", "11111111111111111111111111111111"], // TODO: Update
]),
tokens: ["testnet-aurora-usn", "testnet-solana-lp-hexapool"],
},
{
isDisabled: !isEcosystemEnabled(EvmEcosystemId.Fantom),
id: "meta-fantom-usdc",
Expand Down
20 changes: 0 additions & 20 deletions apps/ui/src/config/tokenProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import GST_SVG from "!!url-loader!../images/tokens/gst.svg";
import LP_ACALA_AUSD_SVG from "!!url-loader!../images/tokens/lp_acala_ausd.svg";
import LP_AURORA_USDC_SVG from "!!url-loader!../images/tokens/lp_aurora_usdc.svg";
import LP_AURORA_USDT_SVG from "!!url-loader!../images/tokens/lp_aurora_usdt.svg";
import LP_AURORA_USN_SVG from "!!url-loader!../images/tokens/lp_aurora_usn.svg";
import LP_AVALANCHE_USDC_SVG from "!!url-loader!../images/tokens/lp_avalanche_usdc.svg";
import LP_AVALANCHE_USDT_SVG from "!!url-loader!../images/tokens/lp_avalanche_usdt.svg";
import LP_FANTOM_USDC_SVG from "!!url-loader!../images/tokens/lp_fantom_usdc.svg";
Expand All @@ -29,7 +28,6 @@ import SWIM_TOKEN_SVG from "!!url-loader!../images/tokens/swim.svg";
import SWIM_USD_SVG from "!!url-loader!../images/tokens/swim_usd.svg";
import USDC_SVG from "!!url-loader!../images/tokens/usdc.svg";
import USDT_SVG from "!!url-loader!../images/tokens/usdt.svg";
import USN_SVG from "!!url-loader!../images/tokens/usn.svg";
import XSWIM_TOKEN_SVG from "!!url-loader!../images/tokens/xswim.svg";
/* eslint-enable import/no-unresolved, import/no-webpack-loader-syntax */

Expand All @@ -42,7 +40,6 @@ export enum TokenProjectIdV1 {
SwimAcalaAusdLp = "swim-acala-ausd-lp-v1",
SwimAuroraUsdcLp = "swim-aurora-usdc-lp-v1",
SwimAuroraUsdtLp = "swim-aurora-usdt-lp-v1",
SwimAuroraUsnLp = "swim-aurora-usn-lp-v1",
SwimAvalancheUsdcLp = "swim-avalanche-usdc-lp-v1",
SwimAvalancheUsdtLp = "swim-avalanche-usdt-lp-v1",
SwimFantomUsdcLp = "swim-fantom-usdc-lp-v1",
Expand All @@ -55,7 +52,6 @@ export enum TokenProjectIdV1 {
SwimUsdV1 = "swim-usd-v1",
Usdc = "usdc-v1",
Usdt = "usdt-v1",
Usn = "usn-v1",
XSwim = "xswim-v1",
}
// Make sure no name collision with v2
Expand Down Expand Up @@ -89,14 +85,6 @@ export const TOKEN_PROJECTS_BY_ID_V1: ReadonlyRecord<
isStablecoin: true,
isLp: false,
},
[TokenProjectIdV1.Usn]: {
id: TokenProjectIdV1.Usn,
symbol: "USN",
displayName: "USN",
icon: USN_SVG,
isStablecoin: true,
isLp: false,
},
[TokenProjectIdV1.Busd]: {
id: TokenProjectIdV1.Busd,
symbol: "BUSD",
Expand Down Expand Up @@ -217,14 +205,6 @@ export const TOKEN_PROJECTS_BY_ID_V1: ReadonlyRecord<
isStablecoin: false,
isLp: true,
},
[TokenProjectIdV1.SwimAuroraUsnLp]: {
id: TokenProjectIdV1.SwimAuroraUsnLp,
symbol: "SWIM-AURORA-USN-LP",
displayName: "Aurora USN LP",
icon: LP_AURORA_USN_SVG,
isStablecoin: false,
isLp: true,
},
[TokenProjectIdV1.SwimFantomUsdcLp]: {
id: TokenProjectIdV1.SwimFantomUsdcLp,
symbol: "SWIM-FANTOM-USDC-LP",
Expand Down
71 changes: 0 additions & 71 deletions apps/ui/src/config/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,6 @@ const MAINNET_TOKENS: readonly TokenConfig[] = [
},
wrappedDetails: EMPTY_MAP,
},
{
isDisabled: !process.env.REACT_APP_ENABLE_AURORA_USN,
id: "mainnet-solana-lp-meta-aurora-usn",
projectId: TokenProjectIdV1.SwimAuroraUsnLp,
nativeEcosystemId: SOLANA_ECOSYSTEM_ID,
nativeDetails: {
address: "3eXCU7YoiCq3rZ6787pPFJE7TXBsKuTZ49wH2kFnuTeF",
decimals: 8,
},
wrappedDetails: EMPTY_MAP,
},
{
id: "mainnet-solana-lp-meta-fantom-usdc",
projectId: TokenProjectIdV1.SwimFantomUsdcLp,
Expand Down Expand Up @@ -483,25 +472,6 @@ const MAINNET_TOKENS: readonly TokenConfig[] = [
],
]),
},
{
isDisabled: !process.env.REACT_APP_ENABLE_AURORA_USN,
id: "mainnet-aurora-usn",
projectId: TokenProjectIdV1.Usn,
nativeEcosystemId: EvmEcosystemId.Aurora,
nativeDetails: {
address: "0x5183e1B1091804BC2602586919E6880ac1cf2896",
decimals: 18,
},
wrappedDetails: new Map([
[
SOLANA_ECOSYSTEM_ID,
{
address: "3NDmtc2xKMpm8wCiaALey2y3EGhBkUNuXJ9m3JcjnHMM",
decimals: 8,
},
],
]),
},
{
id: "mainnet-fantom-usdc",
projectId: TokenProjectIdV1.Usdc,
Expand Down Expand Up @@ -720,17 +690,6 @@ export const TESTNET_TOKENS_FOR_RESTRUCTURE: readonly TokenConfig[] = [
decimals: 8,
},
},
{
isDisabled:
!isPoolRestructureEnabled() || !process.env.REACT_APP_ENABLE_AURORA_USN,
id: "testnet-aurora-lp-usn",
projectId: TokenProjectIdV2.SwimLpAuroraUsn,
nativeEcosystemId: EvmEcosystemId.Aurora,
nativeDetails: {
address: "0x1111111111111111111111111111111111111111", // TODO: Update
decimals: 8,
},
},
{
isDisabled: !isPoolRestructureEnabled(),
id: "testnet-fantom-lp-usdc",
Expand Down Expand Up @@ -960,17 +919,6 @@ export const TESTNET_TOKENS: readonly TokenConfig[] = [
},
wrappedDetails: EMPTY_MAP,
},
{
isDisabled: !process.env.REACT_APP_ENABLE_AURORA_USN,
id: "testnet-solana-lp-meta-aurora-usn",
projectId: TokenProjectIdV1.SwimAuroraUsnLp,
nativeEcosystemId: SOLANA_ECOSYSTEM_ID,
nativeDetails: {
address: "11111111111111111111111111111111", // TODO: Update
decimals: 8,
},
wrappedDetails: EMPTY_MAP,
},
{
id: "testnet-solana-lp-meta-fantom-usdc",
projectId: TokenProjectIdV1.SwimFantomUsdcLp,
Expand Down Expand Up @@ -1228,25 +1176,6 @@ export const TESTNET_TOKENS: readonly TokenConfig[] = [
],
]),
},
{
isDisabled: !process.env.REACT_APP_ENABLE_AURORA_USN,
id: "testnet-aurora-usn",
projectId: TokenProjectIdV1.Usn,
nativeEcosystemId: EvmEcosystemId.Aurora,
nativeDetails: {
address: "0x0000000000000000000000000000000000000000", // TODO: Update
decimals: 18,
},
wrappedDetails: new Map([
[
SOLANA_ECOSYSTEM_ID,
{
address: "11111111111111111111111111111111", // TODO: Update
decimals: 8,
},
],
]),
},
{
id: "testnet-fantom-usdc",
projectId: TokenProjectIdV1.Usdc,
Expand Down
1 change: 0 additions & 1 deletion apps/ui/src/images/tokens/lp_aurora_usn.svg

This file was deleted.

Loading

0 comments on commit 4c0979b

Please sign in to comment.