Skip to content

Commit

Permalink
feat: skip if address is reALT strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
neutiyoo committed Dec 27, 2024
1 parent 8eb7702 commit 0db95d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/strategies/realt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ export async function strategy(
const balanceOfMulticaller = new Multicaller(network, provider, [
'function balanceOf(address account) external view returns (uint256)',
], { blockTag });

addresses.forEach((address) =>
balanceOfMulticaller.call(address, options.address, 'balanceOf', [address])
);
addresses.forEach((address) => {
if (address !== reAltStrategy) {
balanceOfMulticaller.call(address, options.address, 'balanceOf', [address]);
}
});

const sharesMulticaller = new Multicaller(network, provider, [
'function shares(address user) external view returns (uint256)',
Expand Down

0 comments on commit 0db95d3

Please sign in to comment.