Skip to content

Commit

Permalink
Fix incorrect refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoguerios committed Oct 16, 2023
1 parent 4e64197 commit 3ab481d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entities/nestedJoin/parseNestedJoinCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3ab481d

Please sign in to comment.