From 2c7987bb3f0ec581cea0f965d251bb0a6f20bba1 Mon Sep 17 00:00:00 2001 From: Eric Zhong Date: Wed, 20 Mar 2024 10:09:21 -0400 Subject: [PATCH] comments --- src/utils/routerTradeAdapter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/routerTradeAdapter.ts b/src/utils/routerTradeAdapter.ts index b24f40e..656a80d 100644 --- a/src/utils/routerTradeAdapter.ts +++ b/src/utils/routerTradeAdapter.ts @@ -58,7 +58,7 @@ export type V3PoolInRoute = { } export type PartialClassicQuote = { - // We still need tokenIn/Out to support native currency + // We need tokenIn/Out to support native currency tokenIn: string tokenOut: string tradeType: TradeType @@ -78,6 +78,7 @@ export const isNativeCurrency = (address: string) => address.toLowerCase() === E // Helper class to convert routing-specific quote entities to RouterTrade entities // the returned RouterTrade can then be used to build the UniswapTrade entity in this package export class RouterTradeAdapter { + // Generate a RouterTrade using fields from a classic quote response static fromClassicQuote(quote: PartialClassicQuote) { const { route, tokenIn, tokenOut } = quote