@defisaver/positions-sdk 2.1.128 → 2.1.129

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,7 @@ const getUniswapRewards = (provider, network, walletAddresses) => __awaiter(void
50
50
  const data = apiDataArray[i];
51
51
  const cumulative = cumulativeResults[i];
52
52
  const amountToClaim = new decimal_js_1.default(data.amount);
53
- if (amountToClaim.lessThanOrEqualTo('0')) {
53
+ if (amountToClaim.lessThanOrEqualTo('0') || cumulative) {
54
54
  results[walletAddress.toLowerCase()] = [];
55
55
  }
56
56
  else {
@@ -43,7 +43,7 @@ export const getUniswapRewards = (provider, network, walletAddresses) => __await
43
43
  const data = apiDataArray[i];
44
44
  const cumulative = cumulativeResults[i];
45
45
  const amountToClaim = new Dec(data.amount);
46
- if (amountToClaim.lessThanOrEqualTo('0')) {
46
+ if (amountToClaim.lessThanOrEqualTo('0') || cumulative) {
47
47
  results[walletAddress.toLowerCase()] = [];
48
48
  }
49
49
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "2.1.128",
3
+ "version": "2.1.129",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -46,7 +46,7 @@ export const getUniswapRewards = async (provider: Client, network: NetworkNumber
46
46
 
47
47
  const amountToClaim = new Dec(data.amount);
48
48
 
49
- if (amountToClaim.lessThanOrEqualTo('0')) {
49
+ if (amountToClaim.lessThanOrEqualTo('0') || cumulative) {
50
50
  results[walletAddress.toLowerCase() as EthAddress] = [];
51
51
  } else {
52
52
  results[walletAddress.toLowerCase() as EthAddress] = [{