We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5081e3 commit 996ecb2Copy full SHA for 996ecb2
apps/lite/src/hooks/use-merkl-opportunities.ts
@@ -74,11 +74,9 @@ export function useMerklOpportunities({
74
return;
75
}
76
77
- const reportedApr = opportunity.apr;
78
- const computedApr = (100 * (opportunity.dailyRewards * 365)) / opportunity.tvl;
79
- if (computedApr * 1.0001 < reportedApr) {
+ if ("hooks" in campaign || "computeScoreParameters" in campaign) {
80
console.warn(
81
- `Skipping opportunity ${opportunity.id} because reported APR doesn't apply to full deposit amount.`,
+ `Skipping opportunity ${opportunity.id} (campaign ${campaignId}) because it has hooks or computeScoreParameters.`,
82
opportunity,
83
);
84
0 commit comments