Skip to content

Commit

Permalink
Merge pull request #376 from balancer/develop
Browse files Browse the repository at this point in the history
Release 4.1.1-beta.6
  • Loading branch information
John Grant authored Mar 15, 2023
2 parents 0b8612d + e882905 commit c1432fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.1.1-beta.5",
"version": "4.1.1-beta.6",
"license": "GPL-3.0-only",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand Down
4 changes: 2 additions & 2 deletions src/pools/linearPool/linearMath.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MathSol } from '../../utils/basicOperations';
import { MathSol, BZERO } from '../../utils/basicOperations';

type Params = {
fee: bigint;
Expand Down Expand Up @@ -395,7 +395,7 @@ export function _calcTokensOutGivenExactBptIn(
// multiplication and division.

const bptRatio = MathSol.divDownFixed(bptAmountIn, bptTotalSupply);
const amountsOut: bigint[] = new Array(balances.length);
const amountsOut: bigint[] = new Array(balances.length).fill(BZERO);
for (let i = 0; i < balances.length; i++) {
// BPT is skipped as those tokens are not the LPs, but rather the preminted and undistributed amount.
if (i != bptIndex) {
Expand Down

0 comments on commit c1432fd

Please sign in to comment.