Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoguerios committed Dec 17, 2024
1 parent a243ca3 commit b215556
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/actions/token/sync-erc4626-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const syncErc4626Tokens = async (viemClient: ViemClient, chain: Chain) =>
},
});

const erc4626AndUnderlying = await fetchErc4626AndUnderlyingTokenData(allTokens, viemClient);
const { enrichedTokensWithErc4626Data } = await fetchErc4626AndUnderlyingTokenData(allTokens, viemClient);

for (const token of erc4626AndUnderlying) {
for (const token of enrichedTokensWithErc4626Data) {
await prisma.prismaToken.upsert({
where: {
address_chain: {
Expand Down
1 change: 1 addition & 0 deletions modules/pool/lib/pool-gql-loader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ export class PoolGqlLoaderService {
tradable: !poolToken.token.types.find((type) => type.type === 'PHANTOM_BPT' || type.type === 'BPT'),
chain: poolToken.chain,
chainId: Number(chainToIdMap[poolToken.chain]),
unwrapRate: poolToken.unwrapRate,
};
}

Expand Down
1 change: 1 addition & 0 deletions test/factories/prismaToken.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const prismaPoolTokenFactory = Factory.define<PrismaPoolTokenWithDynamicD
balanceUSD: 10,
weight: '0.5',
priceRate: '1',
unwrapRate: '1',
latestFxPrice: null,
scalingFactor: null,
};
Expand Down

0 comments on commit b215556

Please sign in to comment.