Skip to content

Commit

Permalink
Merge pull request #563 from balancer/quick-fix
Browse files Browse the repository at this point in the history
fix: incentivized category syncing
  • Loading branch information
gmbronco authored Jul 9, 2024
2 parents 7a4efa5 + be1bd93 commit 165c79b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions modules/actions/pool/sync-incentivized-category.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Chain, Prisma } from '@prisma/client';
import { prisma } from '../../../prisma/prisma-client';

export const syncIncentivizedCategory = async (chain?: Chain) => {
export const syncIncentivizedCategory = async () => {
const poolsWithReward = await prisma.prismaPoolAprItem.findMany({
select: { poolId: true },
where: {
Expand All @@ -11,7 +11,6 @@ export const syncIncentivizedCategory = async (chain?: Chain) => {
apr: {
gt: 0,
},
chain,
},
});

Expand Down
1 change: 0 additions & 1 deletion modules/controllers/jobs-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { getVaultClient } from '../sources/contracts';
import { getV2SubgraphClient } from '../subgraphs/balancer-subgraph';
import { updateLiquidity24hAgo } from '../actions/pool/update-liquidity-24h-ago';
import { syncTokenPairs } from '../actions/pool/sync-tokenpairs';
import { syncCategories } from '../actions/content/sync-categories';

/**
* Controller responsible for configuring and executing ETL actions, usually in the form of jobs.
Expand Down
4 changes: 2 additions & 2 deletions modules/pool/pool.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export class PoolService {

public async updatePoolAprs(chain: Chain) {
await this.poolAprUpdaterService.updatePoolAprs(chain);
await syncIncentivizedCategory(chain);
await syncIncentivizedCategory();
}

public async syncChangedPools() {
Expand All @@ -300,7 +300,7 @@ export class PoolService {

public async reloadAllPoolAprs(chain: Chain) {
await this.poolAprUpdaterService.reloadAllPoolAprs(chain);
await syncIncentivizedCategory(chain);
await syncIncentivizedCategory();
}

public async updateLiquidity24hAgoForAllPools() {
Expand Down

0 comments on commit 165c79b

Please sign in to comment.