Skip to content

Commit

Permalink
dont store scaling factor yet
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Oct 9, 2024
1 parent 9d8e6de commit 97c7068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions modules/pool/pool-debug.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { prisma } from '../../prisma/prisma-client';
import { CowAmmController } from '../controllers/cow-amm-controller';
import { ContentController } from '../controllers/content-controller';
import { chainToIdMap } from '../network/network-config';
import { PoolsController } from '../controllers/v2';
import { PoolController } from '../controllers';
describe('pool debugging', () => {
it('sync pools', async () => {
initRequestScopedContext();
Expand All @@ -17,14 +17,9 @@ describe('pool debugging', () => {
// await poolService.syncAllPoolsFromSubgraph();
// await poolService.syncChangedPools();
// await tokenService.updateTokenPrices(['MAINNET']);
await PoolsController().syncOnchainDataForPoolsV2('OPTIMISM', [
'0x408e11ec9b1751c3d00589b61cae484e07fb9e44000000000000000000000141',
]);
await PoolController().reloadPoolsV3('SEPOLIA');

const poolAfterNewSync = await poolService.getGqlPool(
'0x408e11ec9b1751c3d00589b61cae484e07fb9e44000000000000000000000141',
'OPTIMISM',
);
const poolAfterNewSync = await poolService.getGqlPool('0x8fc07bcf9b88ace84c7523248dc4a85f638c9536', 'SEPOLIA');

expect(poolAfterNewSync.dynamicData.isPaused).toBe(true);
}, 5000000);
Expand Down
2 changes: 1 addition & 1 deletion modules/sources/transformers/pool-tokens-transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function poolTokensDynamicDataTransformer(
blockNumber: Number(poolData.blockNumber),
balance: formatUnits(balance, subgraphToken.decimals),
priceRate: String(rate),
scalingFactor: scalingFactor ? String(scalingFactor) : null,
// scalingFactor: scalingFactor ? String(scalingFactor) : null,
weight: poolData.weights ? poolData.weights[token.index] ?? null : null,
};
});
Expand Down

0 comments on commit 97c7068

Please sign in to comment.