@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.
- package/dist/open-auction.js +1 -1
- package/dist/start-rebalance.js +1 -1
- package/package.json +1 -1
- package/src/open-auction.ts +1 -1
- package/src/start-rebalance.ts +1 -1
package/dist/open-auction.js
CHANGED
@@ -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
|
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
|
}
|
package/dist/start-rebalance.js
CHANGED
@@ -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
|
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
package/src/open-auction.ts
CHANGED
@@ -111,7 +111,7 @@ export const getOpenAuction = (
|
|
111
111
|
_prices: number[],
|
112
112
|
_priceError: number[],
|
113
113
|
_finalStageAt: number,
|
114
|
-
logging
|
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)
|
package/src/start-rebalance.ts
CHANGED
@@ -37,7 +37,7 @@ export const getStartRebalance = (
|
|
37
37
|
_priceError: number[],
|
38
38
|
_dtfPrice: number,
|
39
39
|
weightControl: boolean,
|
40
|
-
logging
|
40
|
+
logging?: boolean
|
41
41
|
): StartRebalanceArgsPartial => {
|
42
42
|
if (logging) {
|
43
43
|
console.log('getStartRebalance', _supply, tokens, decimals, _targetBasket, _prices, _priceError, _dtfPrice, weightControl)
|