Skip to content

Commit

Permalink
Update synapse strategy to handle network-specific requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Defi-Moses committed Jan 20, 2025
1 parent 5b669cd commit 8c6d3e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/strategies/synapse/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { formatUnits } from '@ethersproject/units';
import { BigNumber } from '@ethersproject/bignumber';
import { getAddress } from '@ethersproject/address';
import { Multicaller } from '../../utils';
import { getSnapshots } from '../../utils';

export const author = 'defi-moses';
export const version = '0.2.0';
Expand Down Expand Up @@ -153,13 +152,12 @@ export async function strategy(
throw new Error(`Network ${network} not supported`);
}

const block = await getSnapshots(network, snapshot, provider, [network]);
const result = await getChainBalance(
network,
provider,
addresses,
options,
block[network]
snapshot
);

return result;
Expand Down

0 comments on commit 8c6d3e5

Please sign in to comment.