Skip to content

Commit

Permalink
setting apr IDs per gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Sep 25, 2023
1 parent de96f4f commit 22cde19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/pool/lib/apr-data-sources/ve-bal-gauge-apr.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class GaugeAprService implements PoolAprService {
for (const stake of stakings) {
const { pool, gauge } = stake;

if (!gauge || gauge.status !== 'PREFERRED' || !gauge.rewards || !pool.dynamicData || pool.dynamicData.totalShares === '0') {
if (!gauge || !gauge.rewards || !pool.dynamicData || pool.dynamicData.totalShares === '0') {
continue;
}

Expand Down Expand Up @@ -97,7 +97,7 @@ export class GaugeAprService implements PoolAprService {
const { address, symbol, rewardPerYear } = reward.value;

const itemData: PrismaPoolAprItem = {
id: `${pool.id}-${symbol}-apr`,
id: `${gauge.id}-${symbol}-apr`,
chain: networkContext.chain,
poolId: pool.id,
title: `${symbol} reward APR`,
Expand Down

0 comments on commit 22cde19

Please sign in to comment.