Skip to content

Commit 24750a9

Browse files
committed
fix: remove unnecessary throw
1 parent 2277a50 commit 24750a9

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/swapService/runner.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ export async function runPipeline(
6161
return finalResult.response
6262
}
6363

64-
// TODO open ocean pro endpo
6564
// TODO timeouts on balmy
6665
// TODO review and add sources
6766
// TODO tokenlist, interfaces
6867
// TODO price impact
69-
// TODO cache pipeline, tokenlists
7068
// TODO logging
7169
// TODO pendle rollover

src/swapService/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export const findToken = (chainId: number, tokenAddress: Address) => {
3939
const token = getTokenList(chainId).find((t: TokenListItem) =>
4040
isAddressEqual(t.addressInfo, tokenAddress),
4141
)
42-
if (!token) throw new Error("Token not found")
4342
return token
4443
}
4544

0 commit comments

Comments
 (0)