@reserve-protocol/dtf-rebalance-lib 0.2.11 → 0.2.12
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
@@ -393,7 +393,7 @@ const getOpenAuction = (rebalance, _supply, _initialFolio = [], _targetBasket =
|
|
393
393
|
}
|
394
394
|
else if (folio[i].gt(sellDownTo)) {
|
395
395
|
// {USD} = {wholeTok/wholeShare} * {USD/wholeTok} * {wholeShare}
|
396
|
-
const tokenSurplusValue =
|
396
|
+
const tokenSurplusValue = folio[i].sub(sellDownTo).mul(prices[i]).mul(supply);
|
397
397
|
// $1 minimum
|
398
398
|
if (tokenSurplusValue.gte(numbers_1.ONE)) {
|
399
399
|
surplusValue = surplusValue.add(tokenSurplusValue);
|