Skip to content

Commit b5c3888

Browse files
authored
Merge pull request #2577 from balancer/v3-canary
publish to prod
2 parents 8e78e2c + 29fa778 commit b5c3888

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

modules/pricing/handlers/lbp-price-handler.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ interface LbpDB {
2323
type: PrismaPoolType;
2424
protocolVersion: number;
2525
chain: { in: Chain[] };
26+
NOT: { categories: { has: 'BLACK_LISTED' } };
2627
};
2728
include: { tokens: true };
2829
}): Promise<PoolWithTokens[]>;
@@ -68,7 +69,12 @@ export class LbpPriceHandler implements PriceHandler {
6869

6970
// Fetch LBP pools
7071
const lbps = await this.db.prismaPool.findMany({
71-
where: { type: 'LIQUIDITY_BOOTSTRAPPING', protocolVersion: 3, chain: { in: chains } },
72+
where: {
73+
type: 'LIQUIDITY_BOOTSTRAPPING',
74+
protocolVersion: 3,
75+
chain: { in: chains },
76+
NOT: { categories: { has: 'BLACK_LISTED' } },
77+
},
7278
include: { tokens: true },
7379
});
7480

modules/protocol/protocol.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,11 @@ export class ProtocolService {
5858
}
5959

6060
public async cacheProtocolMetrics(chain: Chain): Promise<GqlProtocolMetricsChain> {
61-
const oneDayAgo = moment().subtract(24, 'hours').unix();
62-
6361
const [dbPools, dynamicData] = await Promise.all([
6462
prisma.prismaPool.findMany({
6563
where: {
6664
NOT: { categories: { has: 'BLACK_LISTED' } },
65+
type: { not: 'LIQUIDITY_BOOTSTRAPPING' },
6766
dynamicData: {
6867
totalSharesNum: {
6968
gt: 0.000000000001,

0 commit comments

Comments
 (0)