Skip to content

Commit

Permalink
fix requested change
Browse files Browse the repository at this point in the history
  • Loading branch information
aburkut committed Nov 4, 2024
1 parent 74734aa commit 2da50d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
5 changes: 0 additions & 5 deletions src/dex/fluid-dex/fluid-dex-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import { DummyDexHelper } from '../../dex-helper/index';
import { Network, SwapSide } from '../../constants';
import { BI_POWS } from '../../bigint-constants';
import { FluidDex } from './fluid-dex';
import {
checkPoolPrices,
checkPoolsLiquidity,
checkConstantPoolPrices,
} from '../../../tests/utils';
import { Tokens } from '../../../tests/constants-e2e';
import ResolverABI from '../../abi/fluid-dex/resolver.abi.json';
import { Contract } from 'ethers';
Expand Down
15 changes: 1 addition & 14 deletions src/dex/fluid-dex/fluid-dex-liquidity-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,7 @@ export class FluidDexLiquidityProxy extends StatefulEventSubscriber<FluidDexLiqu
state: DeepReadonly<FluidDexLiquidityProxyState>,
log: Readonly<Log>,
): Promise<DeepReadonly<FluidDexLiquidityProxyState> | null> {
const resolverContract = new Contract(
this.commonAddresses.resolver,
ResolverABI,
this.dexHelper.provider,
);

const rawResult =
await resolverContract.callStatic.getAllPoolsReservesAdjusted({
blockTag: log.blockNumber,
});

const generatedState = this.convertToFluidDexPoolState(rawResult);

return generatedState;
return this.generateState(log.blockNumber);
}

/**
Expand Down

0 comments on commit 2da50d5

Please sign in to comment.