Skip to content

Commit

Permalink
fix wgrass route
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteenkamp89 committed Jan 13, 2025
1 parent 35530ba commit bb1f0fe
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/generate-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" &&
Expand Down
7 changes: 7 additions & 0 deletions src/data/chains_11155111.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bb1f0fe

Please sign in to comment.