Skip to content

Commit 5ccf8ec

Browse files
committed
update fly config
1 parent f307b06 commit 5ccf8ec

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/swapService/config/unichain.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const unichainRoutingConfig: ChainRoutingConfig = [
3434
"uniswap",
3535
"enso",
3636
"okx-dex",
37+
"magpie",
3738
],
3839
},
3940
},

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
failed,
2020
} from "@balmy/sdk/dist/services/quotes/quote-sources/utils"
2121
import qs from "qs"
22-
import { parseUnits } from "viem"
2322

2423
const SUPPORTED_CHAINS: Record<ChainId, string> = {
2524
[Chains.ARBITRUM.chainId]: "arbitrum",
@@ -36,6 +35,7 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
3635
[Chains.FANTOM.chainId]: "fantom",
3736
[Chains.SONIC.chainId]: "sonic",
3837
80094: "berachain",
38+
130: "unichain",
3939
}
4040

4141
const MAGPIE_METADATA: QuoteSourceMetadata<MagpieSupport> = {
@@ -111,19 +111,19 @@ export class CustomMagpieQuoteSource extends AlwaysValidConfigAndContextSource<
111111
id: quoteId,
112112
amountOut,
113113
targetAddress,
114-
fees,
114+
// fees,
115115
} = await quoteResponse.json()
116-
const estimatedGasNum: `${number}` | undefined = fees.find(
117-
(fee: { type: string; value: `${number}` }) => fee.type === "gas",
118-
)?.value
119-
const estimatedGas = estimatedGasNum
120-
? parseUnits(estimatedGasNum, 9)
121-
: undefined
116+
// const estimatedGasNum: `${number}` | undefined = fees.find(
117+
// (fee: { type: string; value: `${number}` }) => fee.type === "gas",
118+
// )?.value
119+
// const estimatedGas = estimatedGasNum
120+
// ? parseUnits(estimatedGasNum, 9)
121+
// : undefined
122122

123123
const quote = {
124124
sellAmount: order.sellAmount,
125125
buyAmount: BigInt(amountOut),
126-
estimatedGas,
126+
// estimatedGas,
127127
allowanceTarget: calculateAllowanceTarget(sellToken, targetAddress),
128128
customData: { quoteId, takeFrom, recipient },
129129
}

0 commit comments

Comments
 (0)