@gainsnetwork/sdk 0.0.25-rc1 → 0.0.25-rc2

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.
@@ -7,8 +7,8 @@ const getLiquidationPrice = (trade, tradeInfo, initialAccFees, context) => {
7
7
  const liqPriceDistance = (trade.openPrice *
8
8
  (posDai * 0.9 -
9
9
  (0, fees_1.getRolloverFee)(posDai, initialAccFees.rollover, initialAccFees.openedAfterUpdate, Object.assign(Object.assign({}, context), { currentBlock: context.currentL1Block })) -
10
- (0, fees_1.getBorrowingFee)(posDai * trade.leverage, trade.pairIndex, trade.buy, initialAccFees.borrowing, Object.assign(Object.assign({}, context), { currentBlock: context.currentL1Block })) -
11
- (0, fees_1.getFundingFee)(posDai * trade.leverage, initialAccFees.funding, trade.buy, initialAccFees.openedAfterUpdate, context))) /
10
+ (0, fees_1.getBorrowingFee)(posDai * trade.leverage, trade.pairIndex, trade.buy, initialAccFees.borrowing, context) -
11
+ (0, fees_1.getFundingFee)(posDai * trade.leverage, initialAccFees.funding, trade.buy, initialAccFees.openedAfterUpdate, Object.assign(Object.assign({}, context), { currentBlock: context.currentL1Block })))) /
12
12
  posDai /
13
13
  trade.leverage;
14
14
  return trade.buy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.0.25-rc1",
3
+ "version": "0.0.25-rc2",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [