Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Aurora USDT with USDT.e #474

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apps/scripts/src/config/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ export const DEVNET_TOKENS_FOR_RESTRUCTURE: readonly TokenConfig[] = [
},
{
isDisabled: !isPoolRestructureEnabled(),
id: "devnet-aurora-lp-usdc-usdt",
projectId: TokenProjectId.SwimLpAuroraUsdcUsdt,
id: "devnet-aurora-lp-usdc-usdte",
projectId: TokenProjectId.SwimLpAuroraUsdcUsdte,
nativeEcosystemId: EvmEcosystemId.Aurora,
nativeDetails: {
address: "0x1111111111111111111111111111111111111111", // TODO: Update
Expand Down Expand Up @@ -363,8 +363,8 @@ export const DEVNET_TOKENS: readonly TokenConfig[] = [
wrappedDetails: EMPTY_MAP,
},
{
id: "devnet-solana-lp-meta-aurora-usdt",
projectId: TokenProjectId.SwimAuroraUsdtLp,
id: "devnet-solana-lp-meta-aurora-usdte",
projectId: TokenProjectId.SwimAuroraUsdteLp,
nativeEcosystemId: SOLANA_ECOSYSTEM_ID,
nativeDetails: {
address: "utXdXdUMaS5qrBDDUg5btQMGL2CedouzmMPbYMJPEZD",
Expand Down Expand Up @@ -626,8 +626,8 @@ export const DEVNET_TOKENS: readonly TokenConfig[] = [
]),
},
{
id: "devnet-aurora-usdt",
projectId: TokenProjectId.Usdt,
id: "devnet-aurora-usdte",
projectId: TokenProjectId.Usdte,
nativeEcosystemId: EvmEcosystemId.Aurora,
nativeDetails: {
address: "0x489dDcd070b6c4e0373FBB5d529Cc06328E048c3",
Expand Down
28 changes: 14 additions & 14 deletions apps/ui/src/config/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,25 +223,25 @@ const MAINNET_POOLS: readonly PoolSpec[] = [
tokens: ["mainnet-aurora-usdc", "mainnet-solana-lp-hexapool"],
},
{
id: "meta-aurora-usdt",
id: "meta-aurora-usdte",
ecosystem: SOLANA_ECOSYSTEM_ID,
displayName: "Aurora USDT",
displayName: "Aurora USDT.e",
isStakingPool: false,
isStableSwap: true,
isLegacyPool: true,
contract: "SWimmSE5hgWsEruwPBLBVAFi3KyVfe8URU2pb4w7GZs",
address: "4t1cfAbmLjyLuBo1gsvCVKjVUR48ixqvS4dLKW8dtRvm",
authority: "23CU3bqMJoRTpvyti84CmPbkAyNJDnTZE7DYj6MnhGdK",
feeDecimals: 6,
lpToken: "mainnet-solana-lp-meta-aurora-usdt",
lpToken: "mainnet-solana-lp-meta-aurora-usdte",
tokenAccounts: new Map([
["mainnet-aurora-usdt", "6VtNuUZR1CxBunrQBoNtjC2ZZWqhpmkWwdY8zhbFBcie"],
["mainnet-aurora-usdte", "6VtNuUZR1CxBunrQBoNtjC2ZZWqhpmkWwdY8zhbFBcie"],
[
"mainnet-solana-lp-hexapool",
"CpMPTJ72mqeVRK6569sGqkWCV5B6dSZpTCD7BAKW2QPo",
],
]),
tokens: ["mainnet-aurora-usdt", "mainnet-solana-lp-hexapool"],
tokens: ["mainnet-aurora-usdte", "mainnet-solana-lp-hexapool"],
},
{
isDisabled: !process.env.REACT_APP_ENABLE_AURORA_USN,
Expand Down Expand Up @@ -457,16 +457,16 @@ export const TESTNET_POOLS_FOR_RESTRUCTURE: readonly PoolSpec[] = [
},
{
isDisabled: true, // TODO: Update !isPoolRestructureEnabled(),
id: "testnet-aurora-usdc-usdt",
id: "testnet-aurora-usdc-usdte",
ecosystem: EvmEcosystemId.Aurora,
displayName: "Aurora USDC USDT",
displayName: "Aurora USDC USDT.e",
isStakingPool: false,
isStableSwap: true,
isLegacyPool: false,
address: "11111111111111111111111111111111", // TODO: Update
feeDecimals: 6,
lpToken: "testnet-aurora-lp-usdc-usdt",
tokens: ["testnet-swimusd", "testnet-aurora-usdc", "testnet-aurora-usdt"],
lpToken: "testnet-aurora-lp-usdc-usdte",
tokens: ["testnet-swimusd", "testnet-aurora-usdc", "testnet-aurora-usdte"],
},
{
isDisabled: true,
Expand Down Expand Up @@ -716,25 +716,25 @@ export const TESTNET_POOLS: readonly PoolSpec[] = [
tokens: ["testnet-aurora-usdc", "testnet-solana-lp-hexapool"],
},
{
id: "meta-aurora-usdt",
id: "meta-aurora-usdte",
ecosystem: SOLANA_ECOSYSTEM_ID,
displayName: "Aurora USDT",
displayName: "Aurora USDT.e",
isStakingPool: false,
isStableSwap: true,
isLegacyPool: true,
contract: "SWimmSE5hgWsEruwPBLBVAFi3KyVfe8URU2pb4w7GZs",
address: "t6JAmJWDi4y6pp32p268ru3GrHEBXdoHERVqSjek3XY",
authority: "ETywNpF1gsXmmPLSavw563Mr4FaCLmVxcupdWxPZ8nxw",
feeDecimals: 6,
lpToken: "testnet-solana-lp-meta-aurora-usdt",
lpToken: "testnet-solana-lp-meta-aurora-usdte",
tokenAccounts: new Map([
["testnet-aurora-usdt", "DpBhN9UoHh4RGGHcoGBfqeqKndstiTXup6pwhcBxXFFA"],
["testnet-aurora-usdte", "DpBhN9UoHh4RGGHcoGBfqeqKndstiTXup6pwhcBxXFFA"],
[
"testnet-solana-lp-hexapool",
"Gmd1KvrLonD6pzeMz2U1nTJVgG4yv9LySpYQZVLV8eBm",
],
]),
tokens: ["testnet-aurora-usdt", "testnet-solana-lp-hexapool"],
tokens: ["testnet-aurora-usdte", "testnet-solana-lp-hexapool"],
},
{
isDisabled: !process.env.REACT_APP_ENABLE_AURORA_USN, // TODO: Enable when deployed on testnet
Expand Down
20 changes: 10 additions & 10 deletions apps/ui/src/config/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ const MAINNET_TOKENS: readonly TokenConfig[] = [
wrappedDetails: EMPTY_MAP,
},
{
id: "mainnet-solana-lp-meta-aurora-usdt",
projectId: TokenProjectId.SwimAuroraUsdtLp,
id: "mainnet-solana-lp-meta-aurora-usdte",
projectId: TokenProjectId.SwimAuroraUsdteLp,
nativeEcosystemId: SOLANA_ECOSYSTEM_ID,
nativeDetails: {
address: "4XPDxtGbcM7bAPKZxALd2s862n3WoG4xPPvyCPVULKAb",
Expand Down Expand Up @@ -451,8 +451,8 @@ const MAINNET_TOKENS: readonly TokenConfig[] = [
]),
},
{
id: "mainnet-aurora-usdt",
projectId: TokenProjectId.Usdt,
id: "mainnet-aurora-usdte",
projectId: TokenProjectId.Usdte,
nativeEcosystemId: EvmEcosystemId.Aurora,
nativeDetails: {
address: "0x4988a896b1227218e4A686fdE5EabdcAbd91571f",
Expand Down Expand Up @@ -701,8 +701,8 @@ export const TESTNET_TOKENS_FOR_RESTRUCTURE: readonly TokenConfig[] = [
},
{
isDisabled: !isPoolRestructureEnabled(),
id: "testnet-aurora-lp-usdc-usdt",
projectId: TokenProjectId.SwimLpAuroraUsdcUsdt,
id: "testnet-aurora-lp-usdc-usdte",
projectId: TokenProjectId.SwimLpAuroraUsdcUsdte,
nativeEcosystemId: EvmEcosystemId.Aurora,
nativeDetails: {
address: "0x1111111111111111111111111111111111111111", // TODO: Update
Expand Down Expand Up @@ -946,8 +946,8 @@ export const TESTNET_TOKENS: readonly TokenConfig[] = [
wrappedDetails: EMPTY_MAP,
},
{
id: "testnet-solana-lp-meta-aurora-usdt",
projectId: TokenProjectId.SwimAuroraUsdtLp,
id: "testnet-solana-lp-meta-aurora-usdte",
projectId: TokenProjectId.SwimAuroraUsdteLp,
nativeEcosystemId: SOLANA_ECOSYSTEM_ID,
nativeDetails: {
address: "utXdXdUMaS5qrBDDUg5btQMGL2CedouzmMPbYMJPEZD",
Expand Down Expand Up @@ -1206,8 +1206,8 @@ export const TESTNET_TOKENS: readonly TokenConfig[] = [
]),
},
{
id: "testnet-aurora-usdt",
projectId: TokenProjectId.Usdt,
id: "testnet-aurora-usdte",
projectId: TokenProjectId.Usdte,
nativeEcosystemId: EvmEcosystemId.Aurora,
nativeDetails: {
address: "0x489dDcd070b6c4e0373FBB5d529Cc06328E048c3",
Expand Down
12 changes: 6 additions & 6 deletions packages/evm/src/ecosystems/aurora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const mainnet: EvmChainConfig<EvmEcosystemId.Aurora> = {
]),
},
{
id: "mainnet-aurora-usdt",
projectId: TokenProjectId.Usdt,
id: "mainnet-aurora-usdte",
projectId: TokenProjectId.Usdte,
nativeDetails: {
address: "0x4988a896b1227218e4A686fdE5EabdcAbd91571f",
decimals: 6,
Expand Down Expand Up @@ -119,8 +119,8 @@ const testnet: EvmChainConfig<EvmEcosystemId.Aurora> = {
]),
},
{
id: "testnet-aurora-usdt",
projectId: TokenProjectId.Usdt,
id: "testnet-aurora-usdte",
projectId: TokenProjectId.Usdte,
nativeDetails: {
address: "0x489dDcd070b6c4e0373FBB5d529Cc06328E048c3",
decimals: 6,
Expand Down Expand Up @@ -153,8 +153,8 @@ const testnet: EvmChainConfig<EvmEcosystemId.Aurora> = {
]),
},
{
id: "testnet-aurora-lp-usdc-usdt",
projectId: TokenProjectId.SwimLpAuroraUsdcUsdt,
id: "testnet-aurora-lp-usdc-usdte",
projectId: TokenProjectId.SwimLpAuroraUsdcUsdte,
nativeDetails: {
address: "0x1111111111111111111111111111111111111111", // TODO: Update
decimals: 8,
Expand Down
8 changes: 4 additions & 4 deletions packages/solana/src/ecosystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ const mainnet: SolanaChainConfig = {
wrappedDetails: EMPTY_MAP,
},
{
id: "mainnet-solana-lp-meta-aurora-usdt",
projectId: TokenProjectId.SwimAuroraUsdtLp,
id: "mainnet-solana-lp-meta-aurora-usdte",
projectId: TokenProjectId.SwimAuroraUsdteLp,
nativeDetails: {
address: "4XPDxtGbcM7bAPKZxALd2s862n3WoG4xPPvyCPVULKAb",
decimals: 8,
Expand Down Expand Up @@ -421,8 +421,8 @@ const testnet: SolanaChainConfig = {
wrappedDetails: EMPTY_MAP,
},
{
id: "testnet-solana-lp-meta-aurora-usdt",
projectId: TokenProjectId.SwimAuroraUsdtLp,
id: "testnet-solana-lp-meta-aurora-usdte",
projectId: TokenProjectId.SwimAuroraUsdteLp,
nativeDetails: {
address: "utXdXdUMaS5qrBDDUg5btQMGL2CedouzmMPbYMJPEZD",
decimals: 8,
Expand Down
34 changes: 22 additions & 12 deletions packages/token-projects/src/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import GMT_SVG from "./images/gmt";
import GST_SVG from "./images/gst";
import LP_ACALA_AUSD_SVG from "./images/lp_acala_ausd";
import LP_AURORA_USDC_SVG from "./images/lp_aurora_usdc";
import LP_AURORA_USDT_SVG from "./images/lp_aurora_usdt";
import LP_AURORA_USDTE_SVG from "./images/lp_aurora_usdte";
import LP_AURORA_USN_SVG from "./images/lp_aurora_usn";
import LP_AVALANCHE_USDC_SVG from "./images/lp_avalanche_usdc";
import LP_AVALANCHE_USDT_SVG from "./images/lp_avalanche_usdt";
Expand All @@ -32,7 +32,7 @@ export enum TokenProjectId {
Swim = "swim",
SwimAcalaAusdLp = "swim-acala-ausd-lp",
SwimAuroraUsdcLp = "swim-aurora-usdc-lp",
SwimAuroraUsdtLp = "swim-aurora-usdt-lp",
SwimAuroraUsdteLp = "swim-aurora-usdte-lp",
SwimAuroraUsnLp = "swim-aurora-usn-lp",
SwimAvalancheUsdcLp = "swim-avalanche-usdc-lp",
SwimAvalancheUsdtLp = "swim-avalanche-usdt-lp",
Expand All @@ -46,6 +46,7 @@ export enum TokenProjectId {
SwimUsd = "swim-usd",
Usdc = "usdc",
Usdt = "usdt",
Usdte = "usdte",
Usn = "usn",
XSwim = "xswim",
// V2
Expand All @@ -54,7 +55,7 @@ export enum TokenProjectId {
SwimLpBnbBusdUsdt = "swim-lp-bnb-busd-usdt",
SwimLpAvalancheUsdcUsdt = "swim-lp-avalanche-usdc-usdt",
SwimLpPolygonUsdcUsdt = "swim-lp-polygon-usdc-usdt",
SwimLpAuroraUsdcUsdt = "swim-lp-aurora-usdc-usdt",
SwimLpAuroraUsdcUsdte = "swim-lp-aurora-usdc-usdte",
SwimLpAuroraUsn = "swim-lp-aurora-usn",
SwimLpFantomUsdc = "swim-lp-fantom-usdc",
SwimLpKaruraUsdt = "swim-lp-karura-usdt",
Expand Down Expand Up @@ -127,6 +128,15 @@ export const TOKEN_PROJECTS_BY_ID: ReadonlyRecord<
isLp: false,
tokenNumber: 0x0104,
},
[TokenProjectId.Usdte]: {
id: TokenProjectId.Usdte,
symbol: "USDT.e",
displayName: "Tether USD",
icon: USDT_SVG,
isStablecoin: true,
isLp: false,
tokenNumber: 0x0105,
},
[TokenProjectId.Gst]: {
id: TokenProjectId.Gst,
symbol: "GST",
Expand Down Expand Up @@ -235,11 +245,11 @@ export const TOKEN_PROJECTS_BY_ID: ReadonlyRecord<
isLp: true,
tokenNumber: null,
},
[TokenProjectId.SwimAuroraUsdtLp]: {
id: TokenProjectId.SwimAuroraUsdtLp,
symbol: "SWIM-AURORA-USDT-LP",
displayName: "Aurora USDT LP",
icon: LP_AURORA_USDT_SVG,
[TokenProjectId.SwimAuroraUsdteLp]: {
id: TokenProjectId.SwimAuroraUsdteLp,
symbol: "SWIM-AURORA-USDTE-LP",
displayName: "Aurora USDT.e LP",
icon: LP_AURORA_USDTE_SVG,
isStablecoin: false,
isLp: true,
tokenNumber: null,
Expand Down Expand Up @@ -336,10 +346,10 @@ export const TOKEN_PROJECTS_BY_ID: ReadonlyRecord<
isLp: true,
tokenNumber: null,
},
[TokenProjectId.SwimLpAuroraUsdcUsdt]: {
id: TokenProjectId.SwimLpAuroraUsdcUsdt,
symbol: "SWIM-LP-AURORA-USDC-USDT",
displayName: "Aurora USDC/USDT Pool LP",
[TokenProjectId.SwimLpAuroraUsdcUsdte]: {
id: TokenProjectId.SwimLpAuroraUsdcUsdte,
symbol: "SWIM-LP-AURORA-USDC-USDT.e",
displayName: "Aurora USDC/USDT.e Pool LP",
icon: SWIM_USD_SVG, // TODO: update
isStablecoin: false,
isLp: true,
Expand Down