@owney/sdk 0.7.13 → 0.7.14-beta.0

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.
package/dist/index.cjs CHANGED
@@ -484,9 +484,10 @@ function mapApyByStrategy(raw) {
484
484
  const chainKey = supported.chainId;
485
485
  const symbolKey = supported.symbol;
486
486
  const bucket = apyPerAsset[chainKey] ?? {};
487
- bucket[symbolKey] = entry.average_apy;
487
+ const apy = entry.average_apy_with_fee ?? entry.average_apy;
488
+ bucket[symbolKey] = apy;
488
489
  apyPerAsset[chainKey] = bucket;
489
- apySum += entry.average_apy;
490
+ apySum += apy;
490
491
  apyCount += 1;
491
492
  }
492
493
  const averageApy = apyCount > 0 ? apySum / apyCount : 0;
package/dist/index.js CHANGED
@@ -451,9 +451,10 @@ function mapApyByStrategy(raw) {
451
451
  const chainKey = supported.chainId;
452
452
  const symbolKey = supported.symbol;
453
453
  const bucket = apyPerAsset[chainKey] ?? {};
454
- bucket[symbolKey] = entry.average_apy;
454
+ const apy = entry.average_apy_with_fee ?? entry.average_apy;
455
+ bucket[symbolKey] = apy;
455
456
  apyPerAsset[chainKey] = bucket;
456
- apySum += entry.average_apy;
457
+ apySum += apy;
457
458
  apyCount += 1;
458
459
  }
459
460
  const averageApy = apyCount > 0 ? apySum / apyCount : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owney/sdk",
3
- "version": "0.7.13",
3
+ "version": "0.7.14-beta.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",