Skip to content

Commit

Permalink
Production Release
Browse files Browse the repository at this point in the history
Production Release
  • Loading branch information
tcheee authored Dec 10, 2024
2 parents cca2591 + 46b5265 commit dee0281
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Widgets/Widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function Widget({
},
bridges: {
allow: configTheme?.allowedBridges,
deny: ['allbridge', 'hop', 'celerim', 'squid'],
deny: ['allbridge', 'celerim', 'squid'],
},
exchanges: {
allow: configTheme?.allowedExchanges,
Expand Down
15 changes: 15 additions & 0 deletions tests/swapActions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,19 @@ test.describe('On chain swaps', () => {
await page.goto(`/${urlParams}`);
await checkIfBestReturnLabelIsVisible(page);
});

test(`Check ${chainData.ARBtoARB.ETHtoUSDT.tokenSymbol} to ${chainData.ARBtoARB.ETHtoUSDT.toTokenSymbol} swap pair on ARB chain`, async ({
page,
}) => {
const urlParams = buildUlParams(chainData.ARBtoARB.ETHtoUSDT);
await page.goto(`/${urlParams}`);
await checkIfBestReturnLabelIsVisible(page);
});
test(`Check ${chainData.ARBtoARB.USDCtoWBTC.tokenSymbol} to ${chainData.ARBtoARB.USDCtoWBTC.toTokenSymbol} swap pair on ARB chain`, async ({
page,
}) => {
const urlParams = buildUlParams(chainData.ARBtoARB.USDCtoWBTC);
await page.goto(`/${urlParams}`);
await checkIfBestReturnLabelIsVisible(page);
});
});
20 changes: 20 additions & 0 deletions tests/testData/chainData.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,25 @@
"toToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"toChain": "1"
}
},
"ARBtoARB":{
"ETHtoUSDT":{
"tokenSymbol":"ETH",
"fromToken":"0x0000000000000000000000000000000000000000",
"fromChain":"42161",
"amount":"1",
"toToken":"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"toTokenSymbol":"USDT",
"toChain":"42161"
},
"USDCtoWBTC":{
"tokenSymbol":"USDC",
"fromToken":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"fromChain":"42161",
"toToken":"0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
"toTokenSymbol":"WBTC",
"toChain":"42161",
"amount":"100"
}
}
}

1 comment on commit dee0281

@vercel
Copy link

@vercel vercel bot commented on dee0281 Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.