Skip to content

Commit 75c1311

Browse files
authored
Merge pull request #48 from dydxprotocol/sync/upstream-main-25-03-2026
chore: sync/upstream-main-25-03-2026
2 parents c4053d2 + e2a9f13 commit 75c1311

5 files changed

Lines changed: 9 additions & 12 deletions

File tree

src/constants/skip.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export const SKIP_GO_FAST_TRANSFER_LIMIT = 100_000; // hardcoded on Skip's end
2525

2626
export const SKIP_GO_BPS_FEE = 0.1; // hardcoded to 10bps on Skip's end
2727

28+
// neutron-astroport excluded due to degraded performance causing slow route simulations
29+
export const SKIP_SWAP_VENUES = [{ chainId: 'osmosis-1', name: 'osmosis-poolmanager' }];
30+
2831
export const SKIP_GO_DESTINATION_FEE = 0.01; // $0.01 since the only destination is Osmosis chain to fulfill the go fast route.
2932

3033
/**

src/constants/tokens.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ export const WITHDRAWABLE_ASSETS: TokenForTransfer[] = [
6161
decimals: USDC_DECIMALS,
6262
},
6363
{ chainId: SOLANA_MAINNET_ID, denom: USDC_ADDRESSES[SOLANA_MAINNET_ID], decimals: USDC_DECIMALS },
64-
{
65-
chainId: CosmosChainId.Neutron,
66-
denom: USDC_ADDRESSES[CosmosChainId.Neutron],
67-
decimals: USDC_DECIMALS,
68-
},
6964
{
7065
chainId: CosmosChainId.Osmosis,
7166
denom: USDC_ADDRESSES[CosmosChainId.Osmosis],

src/hooks/swap/useSwapQuote.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { RouteRequest } from '@skip-go/client';
22
import { useQuery } from '@tanstack/react-query';
33
import { parseUnits } from 'viem';
44

5+
import { SKIP_SWAP_VENUES } from '@/constants/skip';
56
import { timeUnits } from '@/constants/time';
67

78
import { getSelectedDydxChainId } from '@/state/appSelectors';
@@ -10,12 +11,6 @@ import { useAppSelector } from '@/state/appTypes';
1011
import { SkipClient, useSkipClient } from '../transfers/skipClient';
1112
import { TokenConfigsResult, useTokenConfigs } from '../useTokenConfigs';
1213

13-
const SWAP_VENUES = [
14-
{ chainId: 'osmosis-1', name: 'osmosis-poolmanager' },
15-
{ chainId: 'neutron-1', name: 'neutron-duality' },
16-
{ chainId: 'neutron-1', name: 'neutron-astroport' },
17-
];
18-
1914
// Swaps are from dydxchain DYDX <-> dydxchain USDC
2015
async function getSkipSwapRoute(
2116
skipClient: SkipClient,
@@ -38,7 +33,7 @@ async function getSkipSwapRoute(
3833
sourceAssetChainId: chainId,
3934
destAssetDenom: outputTokenDenom,
4035
destAssetChainId: chainId,
41-
swapVenues: SWAP_VENUES,
36+
swapVenues: SKIP_SWAP_VENUES,
4237
smartSwapOptions: {
4338
splitRoutes: true,
4439
},

src/views/dialogs/TransferDialogs/DepositDialog2/queries.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { arbitrum, optimism } from 'viem/chains';
1010

1111
import { DYDX_DEPOSIT_CHAIN, EVM_DEPOSIT_CHAINS } from '@/constants/chains';
1212
import { CosmosChainId } from '@/constants/graz';
13+
import { SKIP_SWAP_VENUES } from '@/constants/skip';
1314
import { SOLANA_MAINNET_ID } from '@/constants/solana';
1415
import { timeUnits } from '@/constants/time';
1516
import {
@@ -215,6 +216,7 @@ async function getSkipDepositRoutes(
215216
// TODO(deposit2.0): Manually calculate price impact by comparing USD values and warn user if difference > a certain %
216217
allowUnsafe: true,
217218
smartSwapOptions: { evmSwaps: true },
219+
swapVenues: SKIP_SWAP_VENUES,
218220
};
219221

220222
const [slow, fast] = await Promise.all([

src/views/dialogs/TransferDialogs/WithdrawDialog2/queries.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useQuery } from '@tanstack/react-query';
66
import { parseUnits } from 'viem';
77

88
import { DYDX_DEPOSIT_CHAIN } from '@/constants/chains';
9+
import { SKIP_SWAP_VENUES } from '@/constants/skip';
910
import { timeUnits } from '@/constants/time';
1011
import { DYDX_CHAIN_USDC_DENOM, TokenForTransfer } from '@/constants/tokens';
1112

@@ -36,6 +37,7 @@ async function getSkipWithdrawalRoutes(
3637
amountIn: parseUnits(amount, token.decimals).toString(),
3738
smartRelay: true,
3839
smartSwapOptions: { evmSwaps: true, splitRoutes: true },
40+
swapVenues: SKIP_SWAP_VENUES,
3941
allowUnsafe,
4042
};
4143

0 commit comments

Comments
 (0)