From bb1f0fe65475a4e218e3344849ffd06a61db4232 Mon Sep 17 00:00:00 2001 From: Gerhard Steenkamp Date: Mon, 13 Jan 2025 21:44:16 +0200 Subject: [PATCH] fix wgrass route --- scripts/generate-routes.ts | 12 ++++++++++++ src/data/chains_11155111.json | 7 +++++++ ...1_0x14224e63716afAcE30C9a417E0542281869f7d9e.json | 11 +++++++++++ 3 files changed, 30 insertions(+) diff --git a/scripts/generate-routes.ts b/scripts/generate-routes.ts index b8fdac709..4602cc7a4 100644 --- a/scripts/generate-routes.ts +++ b/scripts/generate-routes.ts @@ -275,6 +275,18 @@ function transformChainConfigs( ]; } + if ( + tokenSymbol === "WGRASS" && + toChainConfig.tokens.includes("GRASS") + ) { + return [ + { + inputTokenSymbol: "WGRASS", + outputTokenSymbol: "GRASS", + }, + ]; + } + // Handle WETH Polygon & other non-eth chains if ( tokenSymbol === "WETH" && diff --git a/src/data/chains_11155111.json b/src/data/chains_11155111.json index 1c75bda45..00c1777bc 100644 --- a/src/data/chains_11155111.json +++ b/src/data/chains_11155111.json @@ -419,6 +419,13 @@ "name": "Wrapped Ether", "decimals": 18, "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/weth.svg" + }, + { + "address": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", + "symbol": "WGRASS", + "name": "Wrapped Grass", + "decimals": 18, + "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/wgrass.svg" } ], "outputTokens": [ diff --git a/src/data/routes_11155111_0x14224e63716afAcE30C9a417E0542281869f7d9e.json b/src/data/routes_11155111_0x14224e63716afAcE30C9a417E0542281869f7d9e.json index d7c91db63..ccdb4e69f 100644 --- a/src/data/routes_11155111_0x14224e63716afAcE30C9a417E0542281869f7d9e.json +++ b/src/data/routes_11155111_0x14224e63716afAcE30C9a417E0542281869f7d9e.json @@ -1532,6 +1532,17 @@ "isNative": false, "l1TokenAddress": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14" }, + { + "fromChain": 37111, + "toChain": 11155111, + "fromTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", + "toTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df", + "fromSpokeAddress": "0x6A0a7f39530923911832Dd60667CE5da5449967B", + "fromTokenSymbol": "WGRASS", + "toTokenSymbol": "GRASS", + "isNative": false, + "l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df" + }, { "fromChain": 37111, "toChain": 84532,