Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Feb 14, 2025
1 parent 52b0c59 commit 752fb07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"scripts": {
"build": "rm -rf lib && tsc -p tsconfig.build.json",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"tsc": "tsc -w"
},
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/pools/mixins/depositBalancedAmountsMixins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function _depositBalancedAmounts(poolBalances: string[], walletBalances: string[
const firstCoinBalanceForEachScenarioBN = balancedAmountsForEachScenarioBN.map(([a]) => a);

// get the scenario with the lowest balances, ignoring scenarios where the wallet balance is zero
const min = BigNumber.min(...firstCoinBalanceForEachScenarioBN.filter(b => !b.isZero()));
const min = BigNumber.min(...firstCoinBalanceForEachScenarioBN.filter((b) => !b.isZero()));
const scenarioWithLowestBalancesBN = firstCoinBalanceForEachScenarioBN.map(String).indexOf(min.toString());
const bestScenario = balancedAmountsForEachScenarioBN[scenarioWithLowestBalancesBN];
return bestScenario.map((a, i) => walletBalancesBN[i].isZero() ? "0" : a.toFixed(decimals[i]))
Expand Down

0 comments on commit 752fb07

Please sign in to comment.