Skip to content

Commit 4397240

Browse files
authored
Merge pull request #2240 from pawell24/feat/accountable
Refactor APY calculation logic in Accountable integration
2 parents e928faa + 8decce5 commit 4397240

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/adaptors/accountable/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ const apy = async() => {
119119
const stats = vaultAddress ? vaultStats[vaultAddress] || {} : {};
120120
const pointBoosts = item?.all_points_apy_boost?.boosts_by_points || [];
121121

122-
const breakdown = breakdowns[item.id] || {};
122+
const breakdown = breakdowns[item.id]?.main || {};
123+
123124
const interestRate = Number(breakdown?.interest_rate);
124125
const perfFeePctRaw = Number(breakdown?.performance_fee_percentage);
125126
const perfFeePct =

0 commit comments

Comments
 (0)