Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[staked-daomaker-bsc] New strategy #1419

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iHux3
Copy link

@iHux3 iHux3 commented Mar 4, 2024

Fixes # .

Changes proposed in this pull request:

@ChaituVR ChaituVR changed the title staked-daomaker-bsc [staked-daomaker-bsc] New strategy Mar 4, 2024
Comment on lines +19 to +34
): Promise<Record<string, number>> {
const blockTag = typeof snapshot === 'number' ? snapshot : 'latest';

const multi = new Multicaller(network, provider, abi, { blockTag });
addresses.forEach((address) =>
multi.call(address, options.address, 'users', [address])
);

const result: Record<string, BigNumberish> = await multi.execute();

return Object.fromEntries(
Object.entries(result).map(([address, data]) => [
address,
parseFloat(formatUnits(data[0], options.decimals))
])
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @iHux3 You can use contract-call strategy here instead of a new strategy, let me know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants