impermax-sdk 2.1.499 → 2.1.500

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.
@@ -50,7 +50,9 @@ class OffchainAccountNftlpAeroCL extends offchainAccountNftlpGenericCL_1.default
50
50
  }
51
51
  async getTotalRewardEarned(tokenId) {
52
52
  const storedTotalRewardEarned = await this.getStoredTotalRewardEarned(tokenId);
53
- const newlyEarnedReward = await this.getNewlyEarnedReward(tokenId);
53
+ // NOTE: Temporary fix
54
+ //const newlyEarnedReward = await this.getNewlyEarnedReward(tokenId);
55
+ const newlyEarnedReward = await this.getUnclaimedReward(tokenId);
54
56
  return storedTotalRewardEarned + newlyEarnedReward;
55
57
  }
56
58
  }
@@ -53,7 +53,9 @@ class OffchainAccountNftlpUniswapV3 extends offchainAccountNftlpGenericCL_1.defa
53
53
  }
54
54
  async getTotalFeesEarned(tokenId) {
55
55
  const storedTotalFeesEarned = await this.getStoredTotalFeesEarned(tokenId);
56
- const newlyEarnedFees = await this.getNewlyEarnedFees(tokenId);
56
+ // NOTE: Temporary fix
57
+ //const newlyEarnedFees = await this.getNewlyEarnedFees(tokenId);
58
+ const newlyEarnedFees = await this.getUnclaimedFees(tokenId);
57
59
  return {
58
60
  amountX: storedTotalFeesEarned.amountX + newlyEarnedFees.amountX,
59
61
  amountY: storedTotalFeesEarned.amountY + newlyEarnedFees.amountY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.499",
3
+ "version": "2.1.500",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",