diff --git a/apis/router/src/handlers/swap2/index.ts b/apis/router/src/handlers/swap2/index.ts index befba9fb72..d80a304cb9 100644 --- a/apis/router/src/handlers/swap2/index.ts +++ b/apis/router/src/handlers/swap2/index.ts @@ -14,7 +14,7 @@ import { isStable, isWrapOrUnwrap, } from 'sushi/router' -import { MultiRoute, getBigInt } from 'sushi/tines' +import { MultiRoute, RouteStatus, getBigInt } from 'sushi/tines' import { Address } from 'viem' import { z } from 'zod' import { ExtractorClient } from '../../ExtractorClient.js' @@ -192,7 +192,7 @@ function handler( const body = createSwapBody( route, - to + to && route.status !== RouteStatus.NoWay ? routeProcessorParams( poolCodesMap, route, diff --git a/packages/sushi/src/config/additional-bases.ts b/packages/sushi/src/config/additional-bases.ts index b14dd92d0c..ec9a686487 100644 --- a/packages/sushi/src/config/additional-bases.ts +++ b/packages/sushi/src/config/additional-bases.ts @@ -48,6 +48,7 @@ import { SNX, STG, SUSHI, + SolvBTC, TEL, TRIBE, UNI, @@ -123,6 +124,8 @@ export const ADDITIONAL_BASES: { [ChainId.ARBITRUM]: { [FRAX_ADDRESS[ChainId.ARBITRUM]]: [FXS[ChainId.ARBITRUM]], [FXS_ADDRESS[ChainId.ARBITRUM]]: [FRAX[ChainId.ARBITRUM]], + ['0xaFAfd68AFe3fe65d376eEC9Eab1802616cFacCb8']: [SolvBTC[ChainId.ARBITRUM]], // SolvBTC.ENA + ['0x346c574C56e1A4aAa8dc88Cda8F7EB12b39947aB']: [SolvBTC[ChainId.ARBITRUM]], // SolvBTC.BBN }, [ChainId.FANTOM]: { [FRAX_ADDRESS[ChainId.FANTOM]]: [FXS[ChainId.FANTOM]], diff --git a/packages/sushi/src/currency/token-addresses.ts b/packages/sushi/src/currency/token-addresses.ts index 9cf51e827a..2663187c48 100644 --- a/packages/sushi/src/currency/token-addresses.ts +++ b/packages/sushi/src/currency/token-addresses.ts @@ -650,3 +650,7 @@ export const JUGNI_ADDRESS = { export const UDSP_ADDRESS = { [ChainId.SKALE_EUROPA]: '0x73d22d8a2D1f59Bf5Bcf62cA382481a2073FAF58', } as const + +export const SolvBTC_ADDRESS = { + [ChainId.ARBITRUM]: '0x3647c54c4c2c65bc7a2d63c0da2809b399dbbdc0', +} as const diff --git a/packages/sushi/src/currency/tokens.ts b/packages/sushi/src/currency/tokens.ts index 3caba49650..b2d3bb7d33 100644 --- a/packages/sushi/src/currency/tokens.ts +++ b/packages/sushi/src/currency/tokens.ts @@ -46,6 +46,7 @@ import { STG_ADDRESS, SUSHI_ADDRESS, SWISE_ADDRESS, + SolvBTC_ADDRESS, TEL_ADDRESS, TRIBE_ADDRESS, TUSD_ADDRESS, @@ -1214,3 +1215,12 @@ export const SKL = new Token({ symbol: 'SKL', decimals: 18, }) + +export const SolvBTC = addressMapToTokenMap( + { + decimals: 18, + symbol: 'Solv BTC', + name: 'SolvBTC', + }, + SolvBTC_ADDRESS, +) as Record diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9d5f5e32b9..7502bbc404 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1556,6 +1556,10 @@ importers: specifier: 3.23.8 version: 3.23.8 + packages/sushi/dist/_cjs: {} + + packages/sushi/dist/_esm: {} + packages/telemetry: devDependencies: '@tsconfig/esm':