impermax-sdk 2.1.202 → 2.1.203

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.
@@ -63,6 +63,11 @@ class OnchainAccountNftlpUniswapV3 extends onchainAccountNftlp_1.default {
63
63
  const positionData = await this.getPositionData(tokenId);
64
64
  const delta0 = currentFeeGrowthInside0X128 - positionData.feeGrowthInside0LastX128;
65
65
  const delta1 = currentFeeGrowthInside1X128 - positionData.feeGrowthInside1LastX128;
66
+ console.log("DATA");
67
+ console.log(delta0, currentFeeGrowthInside0X128, positionData.feeGrowthInside0LastX128);
68
+ console.log(delta1, currentFeeGrowthInside1X128, positionData.feeGrowthInside1LastX128);
69
+ console.log(positionData.unclaimedFees0, delta0 * positionData.liquidity / Q128, positionData.liquidity, Q128);
70
+ console.log(positionData.unclaimedFees1, delta1 * positionData.liquidity / Q128, positionData.liquidity, Q128);
66
71
  return {
67
72
  unclaimedFees0: positionData.unclaimedFees0 + delta0 * positionData.liquidity / Q128,
68
73
  unclaimedFees1: positionData.unclaimedFees1 + delta1 * positionData.liquidity / Q128,
@@ -70,6 +75,7 @@ class OnchainAccountNftlpUniswapV3 extends onchainAccountNftlp_1.default {
70
75
  }
71
76
  async getCurrentUnclaimedFees(tokenId) {
72
77
  const raw = await this.getCurrentUnclaimedFeesRaw(tokenId);
78
+ console.log("raw", raw);
73
79
  return {
74
80
  unclaimedFees0: await this.getNftlp().getLendingPool().getBorrowableA().normalize(raw.unclaimedFees0),
75
81
  unclaimedFees1: await this.getNftlp().getLendingPool().getBorrowableB().normalize(raw.unclaimedFees1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.202",
3
+ "version": "2.1.203",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",