Skip to content

Commit 86a25d7

Browse files
committed
morpho-v1, show OP rewards
1 parent 0b87f3a commit 86a25d7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/adaptors/morpho-v1/index.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,17 @@ const apy = async () => {
165165
// net = including rewards, apy = baseApy
166166
const rewardsApy = Math.max(vault.state.netApy - vault.state.apy, 0);
167167
const isNegligibleApy = isNegligible(rewardsApy, vault.state.netApy);
168-
const rewardTokens = isNegligibleApy ? [] : [...additionalRewardTokens];
169-
const apyReward = rewardTokens.length === 0 ? 0 : rewardsApy * 100;
168+
let rewardTokens = isNegligibleApy ? [] : [...additionalRewardTokens];
169+
let apyReward = rewardTokens.length === 0 ? 0 : rewardsApy * 100;
170+
171+
// override and add OP rewards to this pool
172+
if (
173+
vault.address.toLowerCase() ===
174+
'0xc30ce6a5758786e0f640cc5f881dd96e9a1c5c59'
175+
) {
176+
rewardTokens = ['0x4200000000000000000000000000000000000042'];
177+
apyReward = rewardsApy * 100;
178+
}
170179

171180
return {
172181
pool: `morpho-blue-${vault.address}-${chain}`,

0 commit comments

Comments
 (0)