Skip to content

Commit 4dfb4ca

Browse files
committed
nit
1 parent 87c1b2e commit 4dfb4ca

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/open-auction.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,7 @@ export const getOpenAuction = (
272272
// {1} = {USD/wholeShare} / {USD/wholeShare}
273273
let progression = folio
274274
.map((actualBalance, i) => {
275-
if (!rebalance.inRebalance[i]) {
276-
return ZERO;
277-
}
278-
279-
if (expectedBalances[i].eq(ZERO)) {
275+
if (!rebalance.inRebalance[i] || expectedBalances[i].eq(ZERO)) {
280276
return ONE;
281277
}
282278

@@ -292,11 +288,7 @@ export const getOpenAuction = (
292288
// {1} = {USD/wholeShare} / {USD/wholeShare}
293289
const initialProgression = initialFolio
294290
.map((initialBalance, i) => {
295-
if (!rebalance.inRebalance[i]) {
296-
return ZERO;
297-
}
298-
299-
if (expectedBalances[i].eq(ZERO)) {
291+
if (!rebalance.inRebalance[i] || expectedBalances[i].eq(ZERO)) {
300292
return ONE;
301293
}
302294

0 commit comments

Comments
 (0)