Skip to content

Commit b24d57e

Browse files
committed
clean up
1 parent 8b905e2 commit b24d57e

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

src/swapService/quoters/quoterLifi.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export async function fetchLiFiExactInQuote(
5454
})
5555

5656
const url = `https://li.quest/v1/quote?${params.toString()}`
57-
console.log("url: ", url)
5857
const requestHeaders = new Headers()
5958
if (process.env.LIFI_API_KEY)
6059
requestHeaders.set("x-lifi-api-key", process.env.LIFI_API_KEY)

src/swapService/runner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ export async function runPipeline(
5858
)
5959
}
6060

61-
console.log(
62-
"finalResult.response: ",
63-
JSON.stringify(finalResult.response, null, 2),
64-
)
61+
// console.log(
62+
// "finalResult.response: ",
63+
// JSON.stringify(finalResult.response, null, 2),
64+
// )
6565
return finalResult.response
6666
}
6767

src/swapService/strategies/strategyBalmySDK.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,7 @@ export class StrategyBalmySDK {
404404
// } else {
405405
// sourcesFilter = { excludeSources: BINARY_SEARCH_EXCLUDE_SOURCES }
406406
// }
407-
// console.log(11);
408407
// const reverseQuote = await fetchQuote(reverseSwapParams, sourcesFilter)
409-
// console.log(22);
410408
// const estimatedAmountIn = reverseQuote.amountTo
411409
// if (estimatedAmountIn === 0n) throw new Error("quote not found")
412410

src/swapService/strategies/strategyMidas.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,6 @@ export async function fetchMTokenPrice(chainId: number, mToken: MTokenConfig) {
900900
if (!viemClients[chainId])
901901
throw new Error(`No client found for chainId ${chainId}`)
902902
const client = viemClients[chainId].extend(publicActions)
903-
// console.log('viemClients: ', viemClients[1]);
904903

905904
const fn = mToken.isChronicleOracle ? "latestAnswer" : "lastAnswer"
906905

src/swapService/strategies/strategyRedirectDepositWrapper.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
buildApiResponseSwap,
99
buildApiResponseVerifyDebtMax,
1010
encodeDepositMulticallItem,
11-
encodeRepayAndDepositMulticallItem,
1211
encodeRepayMulticallItem,
1312
encodeSwapMulticallItem,
1413
matchParams,
1514
} from "../utils"
15+
import { StrategyCombinedUniswap } from "./strategyCombinedUniswap"
1616

1717
const defaultConfig: {
1818
supportedVaults: Array<{
@@ -69,7 +69,9 @@ export class StrategyRedirectDepositWrapper {
6969
const vaultData = this.getSupportedVault(swapParams.receiver)
7070
// remove itself from the routing and run the pipeline, directing output to Swapper
7171
const routing = getRoutingConfig(swapParams.chainId).filter(
72-
(r) => r.strategy !== StrategyRedirectDepositWrapper.name(),
72+
(r) =>
73+
r.strategy !== StrategyRedirectDepositWrapper.name() &&
74+
r.strategy !== StrategyCombinedUniswap.name(), // assuming the exact out didn't work, and this is a fallback
7375
)
7476

7577
const innerSwapParams = {
@@ -93,12 +95,10 @@ export class StrategyRedirectDepositWrapper {
9395
mode: SwapperMode.EXACT_IN,
9496
}
9597

96-
console.log("exactInSwapItemArgs: ", exactInSwapItemArgs)
9798
const swapItem = encodeSwapMulticallItem(exactInSwapItemArgs)
9899
// if target debt is 0, encode repay(max) to repay all debt, otherwise use all of the available Swapper balance
99100
const repayAmount =
100101
swapParams.targetDebt === 0n ? maxUint256 : maxUint256 - 1n
101-
console.log("repayAmount: ", repayAmount === maxUint256)
102102
const repayItem = encodeRepayMulticallItem(
103103
vaultData.asset,
104104
swapParams.receiver,
@@ -133,7 +133,6 @@ export class StrategyRedirectDepositWrapper {
133133
debtMax,
134134
swapParams.deadline,
135135
)
136-
console.log("swapParams.deadline: ", swapParams.deadline)
137136

138137
result.response = {
139138
...innerSwap,

0 commit comments

Comments
 (0)