Skip to content

Commit

Permalink
Revert "fix wgrass routes"
Browse files Browse the repository at this point in the history
This reverts commit 5e226fc.
  • Loading branch information
gsteenkamp89 committed Jan 13, 2025
1 parent 14ed903 commit 35530ba
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 70 deletions.
2 changes: 1 addition & 1 deletion scripts/chain-configs/sepolia/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
},
chainId,
publicRpcUrl: "https://gateway.tenderly.co/public/sepolia",
tokens: ["WETH", "ETH", "USDC", "WGRASS"],
tokens: ["WETH", "ETH", "USDC", "GRASS"],
enableCCTP: false,
swapTokens: [],
} as ChainConfig;
16 changes: 0 additions & 16 deletions scripts/generate-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,20 +304,6 @@ function transformChainConfigs(
return tokenSymbol;
});

if (
chainConfig.tokens.includes("WGRASS") &&
toChainConfig.tokens.includes("GRASS")
) {
// Add route from WGRASS to GRASS
tokens.push({
inputTokenSymbol: "WGRASS",
outputTokenSymbol: "GRASS",
});

// Add route from WGRASS to WGRASS
tokens.push("WGRASS");
}

// Handle USDC swap tokens
const usdcSwapTokens = chainConfig.enableCCTP
? getUsdcSwapTokens(fromChainId, toChainId)
Expand Down Expand Up @@ -350,8 +336,6 @@ function transformChainConfigs(
});
}

console.log(JSON.stringify(transformedChainConfigs, undefined, 2));

return transformedChainConfigs;
}

Expand Down
33 changes: 13 additions & 20 deletions src/data/chains_11155111.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
},
{
"address": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df",
"symbol": "WGRASS",
"name": "Wrapped Grass",
"symbol": "GRASS",
"name": "Grass",
"decimals": 18,
"logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/wgrass.svg"
"logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/grass.svg"
}
],
"outputTokens": [
Expand All @@ -61,10 +61,10 @@
},
{
"address": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df",
"symbol": "WGRASS",
"name": "Wrapped Grass",
"symbol": "GRASS",
"name": "Grass",
"decimals": 18,
"logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/wgrass.svg"
"logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/grass.svg"
}
]
},
Expand Down Expand Up @@ -406,19 +406,19 @@
"spokePool": "0x6A0a7f39530923911832Dd60667CE5da5449967B",
"spokePoolBlock": 156275,
"inputTokens": [
{
"address": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8",
"symbol": "GRASS",
"name": "Grass",
"decimals": 18,
"logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/grass.svg"
},
{
"address": "0xaA91D645D7a6C1aeaa5988e0547267B77d33fe16",
"symbol": "WETH",
"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 All @@ -436,13 +436,6 @@
"decimals": 18,
"logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/eth.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"
},
{
"address": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8",
"symbol": "GRASS",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,33 +240,11 @@
"fromTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df",
"toTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8",
"fromSpokeAddress": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662",
"fromTokenSymbol": "WGRASS",
"toTokenSymbol": "WGRASS",
"isNative": false,
"l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df"
},
{
"fromChain": 11155111,
"toChain": 37111,
"fromTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df",
"toTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8",
"fromSpokeAddress": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662",
"fromTokenSymbol": "WGRASS",
"fromTokenSymbol": "GRASS",
"toTokenSymbol": "GRASS",
"isNative": false,
"l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df"
},
{
"fromChain": 11155111,
"toChain": 37111,
"fromTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df",
"toTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8",
"fromSpokeAddress": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662",
"fromTokenSymbol": "WGRASS",
"toTokenSymbol": "WGRASS",
"isNative": false,
"l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df"
},
{
"fromChain": 84532,
"toChain": 11155111,
Expand Down Expand Up @@ -1535,24 +1513,24 @@
{
"fromChain": 37111,
"toChain": 11155111,
"fromTokenAddress": "0xaA91D645D7a6C1aeaa5988e0547267B77d33fe16",
"toTokenAddress": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
"fromTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8",
"toTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df",
"fromSpokeAddress": "0x6A0a7f39530923911832Dd60667CE5da5449967B",
"fromTokenSymbol": "WETH",
"toTokenSymbol": "WETH",
"fromTokenSymbol": "GRASS",
"toTokenSymbol": "GRASS",
"isNative": false,
"l1TokenAddress": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14"
"l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df"
},
{
"fromChain": 37111,
"toChain": 11155111,
"fromTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8",
"toTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df",
"fromTokenAddress": "0xaA91D645D7a6C1aeaa5988e0547267B77d33fe16",
"toTokenAddress": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
"fromSpokeAddress": "0x6A0a7f39530923911832Dd60667CE5da5449967B",
"fromTokenSymbol": "WGRASS",
"toTokenSymbol": "WGRASS",
"fromTokenSymbol": "WETH",
"toTokenSymbol": "WETH",
"isNative": false,
"l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df"
"l1TokenAddress": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14"
},
{
"fromChain": 37111,
Expand Down

0 comments on commit 35530ba

Please sign in to comment.