@gainsnetwork/sdk 1.5.0-rc3 → 1.5.0-rc4

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.
@@ -23,17 +23,14 @@ const getTradeOpeningPriceImpact = (input, context) => {
23
23
  // Calculate fixed spread
24
24
  const spreadP = (0, cumulVol_1.getFixedSpreadP)(input.pairSpreadP, input.long, true // opening
25
25
  );
26
- console.log("spreadP", spreadP);
27
26
  // Calculate position size in USD
28
27
  const positionSizeUsd = positionSizeCollateral * context.collateralPriceUsd;
29
- console.log("positionSizeUsd", positionSizeUsd);
30
28
  // Calculate cumulative volume price impact
31
29
  const cumulVolPriceImpactP = (0, cumulVol_1.getTradeCumulVolPriceImpactP)("", // trader - not needed for calculation
32
30
  input.pairIndex, input.long, positionSizeUsd, false, // isPnlPositive - not relevant for opening
33
31
  true, // open
34
32
  0, // lastPosIncreaseBlock - not relevant for opening
35
33
  context.cumulVolContext);
36
- console.log("cumulVolPriceImpactP", cumulVolPriceImpactP);
37
34
  // Calculate price after spread and cumulative volume impact (before skew)
38
35
  const priceAfterSpreadAndCumulVolPriceImpact = (0, __1.getPriceAfterImpact)(input.openPrice, spreadP + cumulVolPriceImpactP);
39
36
  // Calculate position size in tokens using the price after fixed spread and cumul vol impact
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "1.5.0-rc3",
3
+ "version": "1.5.0-rc4",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [