From 3ab481d29f28c7ab03d01a649a4cc6f83e7a8659 Mon Sep 17 00:00:00 2001 From: Bruno Eidam Guerios Date: Mon, 16 Oct 2023 14:43:07 -0300 Subject: [PATCH] Fix incorrect refactor --- src/entities/nestedJoin/parseNestedJoinCall.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/nestedJoin/parseNestedJoinCall.ts b/src/entities/nestedJoin/parseNestedJoinCall.ts index 9504bbeb..c2e328ee 100644 --- a/src/entities/nestedJoin/parseNestedJoinCall.ts +++ b/src/entities/nestedJoin/parseNestedJoinCall.ts @@ -37,8 +37,8 @@ export const parseNestedJoinCall = ({ const _maxAmountsIn = maxAmountsIn.map((a) => a.isRef ? Relayer.toChainedReference(a.amount) : a.amount, ); - const amountsInWithoutBpt = _maxAmountsIn.filter((_, i) => - sortedTokens[i].isSameAddress(poolAddress), + const amountsInWithoutBpt = _maxAmountsIn.filter( + (_, i) => !sortedTokens[i].isSameAddress(poolAddress), ); let userData: Hex; switch (poolType) {