Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit c006b5d

Browse files
committed
refactor: remove manual chunking, use multicall batching
1 parent b55e4dc commit c006b5d

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

  • src/strategies/xaqua-vaults-treasury

src/strategies/xaqua-vaults-treasury/index.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { multicall } from '../../utils';
44
export const author = 'pepperati224';
55
export const version = '0.1.0';
66

7+
8+
79
export async function strategy(
810
space,
911
network,
@@ -28,9 +30,15 @@ export async function strategy(
2830
callData.push([options.treasury, 'usersAllocation', [address]]);
2931
}
3032

31-
const response = await multicall(network, provider, abi, callData, {
33+
const response: any[] = await multicall(
34+
network,
35+
provider,
36+
abi,
37+
callData,
38+
{
3239
blockTag
33-
});
40+
}
41+
);
3442

3543
// Aggregate scores
3644
const scores: Record<string, number> = {};

0 commit comments

Comments
 (0)