@reserve-protocol/dtf-rebalance-lib 0.0.12 → 0.0.13

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.
@@ -59,7 +59,7 @@ exports.getTargetBasket = getTargetBasket;
59
59
  * @param _priceError {1} Price error to use for each token during auction pricing; should be smaller than price error during startRebalance
60
60
  * @param _finalStageAt {1} The % rebalanced from the initial Folio to determine when is the final stage of the rebalance
61
61
  */
62
- const getOpenAuction = (rebalance, _supply, _initialFolio = [], _targetBasket = [], _folio, _decimals, _prices, _priceError, _finalStageAt, logging = false) => {
62
+ const getOpenAuction = (rebalance, _supply, _initialFolio = [], _targetBasket = [], _folio, _decimals, _prices, _priceError, _finalStageAt, logging) => {
63
63
  if (logging) {
64
64
  console.log('getOpenAuction', rebalance, _supply, _initialFolio, _targetBasket, _folio, _decimals, _prices, _priceError, _finalStageAt);
65
65
  }
@@ -20,7 +20,7 @@ const numbers_1 = require("./numbers");
20
20
  * @param _dtfPrice {USD/wholeShare} DTF price
21
21
  * @param weightControl TRACKING=false, NATIVE=true
22
22
  */
23
- const getStartRebalance = (_supply, tokens, decimals, _targetBasket, _prices, _priceError, _dtfPrice, weightControl, logging = false) => {
23
+ const getStartRebalance = (_supply, tokens, decimals, _targetBasket, _prices, _priceError, _dtfPrice, weightControl, logging) => {
24
24
  if (logging) {
25
25
  console.log('getStartRebalance', _supply, tokens, decimals, _targetBasket, _prices, _priceError, _dtfPrice, weightControl);
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reserve-protocol/dtf-rebalance-lib",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Rebalancing library for DTFs in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -111,7 +111,7 @@ export const getOpenAuction = (
111
111
  _prices: number[],
112
112
  _priceError: number[],
113
113
  _finalStageAt: number,
114
- logging: boolean = false
114
+ logging?: boolean
115
115
  ): [OpenAuctionArgs, AuctionMetrics] => {
116
116
  if (logging) {
117
117
  console.log('getOpenAuction', rebalance, _supply, _initialFolio, _targetBasket, _folio, _decimals, _prices, _priceError, _finalStageAt)
@@ -37,7 +37,7 @@ export const getStartRebalance = (
37
37
  _priceError: number[],
38
38
  _dtfPrice: number,
39
39
  weightControl: boolean,
40
- logging: boolean = false
40
+ logging?: boolean
41
41
  ): StartRebalanceArgsPartial => {
42
42
  if (logging) {
43
43
  console.log('getStartRebalance', _supply, tokens, decimals, _targetBasket, _prices, _priceError, _dtfPrice, weightControl)