Skip to content

Commit

Permalink
Merge pull request #253 from balancer-labs/hotfix/4.0.0-beta.4
Browse files Browse the repository at this point in the history
Hotfix/4.0.0 beta.4
  • Loading branch information
John Grant authored May 6, 2022
2 parents cc9adad + 4d95f86 commit 524e8c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer-labs/sor",
"version": "4.0.0-beta.3",
"version": "4.0.0-beta.4",
"license": "GPL-3.0-only",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand Down
3 changes: 2 additions & 1 deletion src/router/sorClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export const optimizeSwapAmounts = (
ONE.minus(newSwapAmount.div(humanTotalSwapAmount))
);
});
swapAmounts.push(newSwapAmount);

if (!newSwapAmount.isZero()) swapAmounts.push(newSwapAmount);
}

const { paths: selectedPaths, swapAmounts: bestAmounts } =
Expand Down

0 comments on commit 524e8c7

Please sign in to comment.