@@ -19,7 +19,6 @@ import {
19
19
failed ,
20
20
} from "@balmy/sdk/dist/services/quotes/quote-sources/utils"
21
21
import qs from "qs"
22
- import { parseUnits } from "viem"
23
22
24
23
const SUPPORTED_CHAINS : Record < ChainId , string > = {
25
24
[ Chains . ARBITRUM . chainId ] : "arbitrum" ,
@@ -36,6 +35,7 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
36
35
[ Chains . FANTOM . chainId ] : "fantom" ,
37
36
[ Chains . SONIC . chainId ] : "sonic" ,
38
37
80094 : "berachain" ,
38
+ 130 : "unichain" ,
39
39
}
40
40
41
41
const MAGPIE_METADATA : QuoteSourceMetadata < MagpieSupport > = {
@@ -111,19 +111,19 @@ export class CustomMagpieQuoteSource extends AlwaysValidConfigAndContextSource<
111
111
id : quoteId ,
112
112
amountOut,
113
113
targetAddress,
114
- fees,
114
+ // fees,
115
115
} = 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
122
122
123
123
const quote = {
124
124
sellAmount : order . sellAmount ,
125
125
buyAmount : BigInt ( amountOut ) ,
126
- estimatedGas,
126
+ // estimatedGas,
127
127
allowanceTarget : calculateAllowanceTarget ( sellToken , targetAddress ) ,
128
128
customData : { quoteId, takeFrom, recipient } ,
129
129
}
0 commit comments