@owney/sdk 0.7.13 → 0.7.14
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 +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
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
|
-
|
|
487
|
+
const apy = entry.average_apy_with_fee ?? entry.average_apy;
|
|
488
|
+
bucket[symbolKey] = apy;
|
|
488
489
|
apyPerAsset[chainKey] = bucket;
|
|
489
|
-
apySum +=
|
|
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
|
-
|
|
454
|
+
const apy = entry.average_apy_with_fee ?? entry.average_apy;
|
|
455
|
+
bucket[symbolKey] = apy;
|
|
455
456
|
apyPerAsset[chainKey] = bucket;
|
|
456
|
-
apySum +=
|
|
457
|
+
apySum += apy;
|
|
457
458
|
apyCount += 1;
|
|
458
459
|
}
|
|
459
460
|
const averageApy = apyCount > 0 ? apySum / apyCount : 0;
|