Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongeric committed Mar 20, 2024
1 parent 2b4ffea commit 2c7987b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/routerTradeAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 2c7987b

Please sign in to comment.