@reserve-protocol/dtf-rebalance-lib 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/open-auction.js +1 -1
- package/package.json +1 -1
package/dist/open-auction.js
CHANGED
@@ -150,7 +150,7 @@ const getOpenAuction = (rebalance, _supply, _initialFolio = [], _targetBasket =
|
|
150
150
|
// calculate progressions
|
151
151
|
// {wholeBU/wholeShare} = D18{BU/share} / D18
|
152
152
|
const prevSpotLimit = new decimal_js_light_1.default(rebalance.limits.spot.toString()).div(numbers_1.D18d);
|
153
|
-
// {wholeTok/
|
153
|
+
// {wholeTok/wholeBU} = {wholeTok/wholeBU} * {wholeBU/wholeShare}
|
154
154
|
const expectedBalances = weightRanges.map((weightRange) => weightRange.spot.mul(prevSpotLimit));
|
155
155
|
// {1} = {USD/wholeShare} / {USD/wholeShare}
|
156
156
|
let progression = folio
|