From 0679f604a2e89c89e3a3b58816bb36c7b246ad7f Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:02:15 -0800 Subject: [PATCH] yarn fix lint --- .../src/utils/encodeMixedRouteToPath.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/sdks/router-sdk/src/utils/encodeMixedRouteToPath.ts b/sdks/router-sdk/src/utils/encodeMixedRouteToPath.ts index 16e965a52..06a78dad5 100644 --- a/sdks/router-sdk/src/utils/encodeMixedRouteToPath.ts +++ b/sdks/router-sdk/src/utils/encodeMixedRouteToPath.ts @@ -44,22 +44,19 @@ export function encodeMixedRouteToPath(route: MixedRouteSDK) 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) {