impermax-sdk 2.1.113 → 2.1.114

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.
@@ -49,7 +49,9 @@ class OnchainInteractionsNftlpUniswapV3 extends onchainInteractionsNftlp_1.defau
49
49
  priceB = yield this.getNftlp().nearestUsableTickPrice(priceB, fee);
50
50
  const result = yield this._getUpdatePositionActions(-1, yield this.getAccountNftlp().createNewPositionObject(fee, priceA, priceB), depositADelta, depositBDelta, borrowADelta, borrowBDelta);
51
51
  // TODO check fee and ticks encoding
52
- result.actions.unshift(yield actionsGetter.methods.getMintUniV3EmptyAction((fee * 10000).toString(), (yield this.getNftlp().priceToTick(priceA, fee)).toString(), (yield this.getNftlp().priceToTick(priceB, fee)).toString()).call());
52
+ result.actions.unshift(yield actionsGetter.methods.getMintUniV3EmptyAction(
53
+ // Convert fee to percentage then to univ3 possible fee (ie. 0.0030 => 3000)
54
+ (fee * 100 * 10000).toString(), (yield this.getNftlp().priceToTick(priceA, fee)).toString(), (yield this.getNftlp().priceToTick(priceB, fee)).toString()).call());
53
55
  return result;
54
56
  });
55
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.113",
3
+ "version": "2.1.114",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",