Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Jun 4, 2024
1 parent 98619d0 commit ab7ed9a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/server/src/queries/complex/pools/incentives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ export function getCachedPoolIncentivesMap(): Promise<
const aprs = await queryPoolAprs();
const astroport_aprs = await queryAstroportPoolAprs();

// TODO: Remove this once astroport apr return format is fixed
astroport_aprs.forEach((apr) => {
apr.pool_id = String(apr.pool_id);
apr.swap_fees = apr.swap_fees * 100;
apr.superfluid = apr.superfluid * 100;
apr.osmosis = apr.osmosis * 100;
apr.boost = apr.boost * 100;
apr.total_apr = apr.total_apr * 100;
});

aprs.push(...astroport_aprs);

return aprs.reduce((map, apr) => {
Expand Down

0 comments on commit ab7ed9a

Please sign in to comment.