Skip to content

Commit

Permalink
generically parse apr group
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Nov 14, 2023
1 parent 8e571a5 commit c6ce462
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions modules/pool/lib/pool-gql-loader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,18 +751,7 @@ export class PoolGqlLoaderService {
}),
);
const apr = _.sumBy(items, 'apr');
let title = '';

switch (group) {
case 'YEARN':
title = 'Yearn boosted APR';
break;
case 'REAPER':
title = 'Reaper boosted APR';
break;
case 'OVERNIGHT':
title = 'Overnight boosted APR';
}
const title = `${group.charAt(0) + group.slice(1).toLowerCase()} boosted APR`;

return {
id: `${pool.id}-${group}`,
Expand Down

0 comments on commit c6ce462

Please sign in to comment.