Skip to content

Commit

Permalink
yarn fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Jan 29, 2025
1 parent 3aa3242 commit 0679f60
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions sdks/router-sdk/src/utils/encodeMixedRouteToPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,19 @@ export function encodeMixedRouteToPath(route: MixedRouteSDK<Currency, Currency>)

if (shouldSkip) {
const v0SpecialEncoding = 0
path.push(
v0SpecialEncoding,
currencyIn.isNative ? ADDRESS_ZERO : currencyIn.wrapped.address
)
path.push(v0SpecialEncoding, currencyIn.isNative ? ADDRESS_ZERO : currencyIn.wrapped.address)
types.push('uint8', 'address')
}
}

if (!shouldSkip) {
if (pool instanceof V4Pool) {
const v4Fee = pool.fee + MIXED_QUOTER_V2_V4_FEE_PATH_PLACEHOLDER
path.push(
v4Fee,
pool.tickSpacing,
pool.hooks,
currencyOut.isNative ? ADDRESS_ZERO : currencyOut.wrapped.address
v4Fee,
pool.tickSpacing,
pool.hooks,
currencyOut.isNative ? ADDRESS_ZERO : currencyOut.wrapped.address
)
types.push('uint24', 'uint24', 'address', 'address')
} else if (pool instanceof V3Pool) {
Expand Down

0 comments on commit 0679f60

Please sign in to comment.