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

[derpdex-xderp-yield-booster]Added derpdex-xderp-yield-booster strategy #1375

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

Conversation

geckocoding
Copy link

Fixes # .

Changes proposed in this pull request:

  • Create new strategy for DerpDEX for yield booster with xDERP token holders to vote on the snapshot

@ChaituVR ChaituVR changed the title Added derpdex-xderp-yield-booster strategy [derpdex-xderp-yield-booster]Added derpdex-xderp-yield-booster strategy Dec 17, 2023
Comment on lines +19 to +32
): 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, 'userTotalAllocations', [address])
);
const result: Record<string, BigNumberish> = await multi.execute();

return Object.fromEntries(
Object.entries(result).map(([address, balance]) => [
address,
parseFloat(formatUnits(balance, 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 @geckocoding You can directly use contract-call strategy in your space, no need to create a seperate one. :) let me know

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

Successfully merging this pull request may close these issues.

2 participants