Skip to content

Commit 82011e7

Browse files
committed
fix open ocean url
1 parent ad48c89 commit 82011e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/swapService/strategies/balmySDK/sources/openOceanQuoteSource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class CustomOpenOceanQuoteSource extends AlwaysValidConfigAndContextSourc
120120
const legacyGasPrice = eip1159ToLegacy(gasPriceResult)
121121
const gasPrice = Number.parseFloat(formatUnits(legacyGasPrice, 9))
122122
const amount = formatUnits(order.sellAmount, sellTokenDataResult.decimals)
123-
const { chainKey, nativeAsset } = SUPPORTED_CHAINS[chainId]
123+
const { nativeAsset } = SUPPORTED_CHAINS[chainId]
124124
const native = nativeAsset ?? Addresses.NATIVE_TOKEN
125125
const queryParams = {
126126
inTokenAddress: isSameAddress(sellToken, Addresses.NATIVE_TOKEN)
@@ -140,7 +140,7 @@ export class CustomOpenOceanQuoteSource extends AlwaysValidConfigAndContextSourc
140140
skipNulls: true,
141141
arrayFormat: "comma",
142142
})
143-
const url = `https://open-api-pro.openocean.finance/v3/${chainKey}/swap_quote?${queryString}`
143+
const url = `https://open-api-pro.openocean.finance/v3/${chainId}/swap_quote?${queryString}`
144144
const headers: Record<string, string> = {}
145145
if (config.apiKey) {
146146
headers["apikey"] = config.apiKey

0 commit comments

Comments
 (0)