Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/kyberswap-interface/.env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# VITE_AGGREGATOR_API=https://pre-router-api.kyberengineering.io
VITE_AGGREGATOR_API=https://aggregator-api.kyberswap.com
VITE_AGGREGATOR_STATS_API=https://aggregator-stats.kyberswap.com
VITE_SENTRY_DNS=https://[email protected]/3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const useBuildRoute = (args: Args) => {
recipient: to || account,
source: clientId || 'kyberswap',
skipSimulateTx: false,
enableGasEstimation: true,
enableGasEstimation: false,
permit,
referral: refCode,
// for calculating price impact only
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class KyberSwapAdapter extends BaseSwapAdapter {
sender: quote.quoteParams.sender,
recipient: quote.quoteParams.recipient,
skipSimulateTx: true,
enableGasEstimation: true,
enableGasEstimation: false,
source: 'kyberswap',
slippageTolerance: quote.quoteParams.slippage,
},
Expand Down
10 changes: 6 additions & 4 deletions apps/kyberswap-interface/src/services/route/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ const routeApi = createApi({
clientId?: string
}
>({
query: ({ params, url, authentication, clientId }) => {
query: ({ params, url, authentication, clientId: _ }) => {
const { chainId, tokenInDecimals, tokenOutDecimals, ...rest } = params
return {
url,
params: rest,
authentication,
headers: {
'x-client-id': clientId || 'kyberswap',
'x-client-id': 'test',
'x-debug': 'shinichikudo',
},
}
},
Expand Down Expand Up @@ -104,11 +105,12 @@ const routeApi = createApi({
return {
url,
method: 'POST',
body: rest,
body: { ...rest, source: 'test', enableGasEstimation: false },
signal,
authentication,
headers: {
'x-client-id': payload.source || 'kyberswap',
'x-client-id': 'test',
'x-debug': 'shinichikudo',
},
}
},
Expand Down