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

[babywealthyclub-multi] Add babywealthyclub-multi strategy #1126

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

claibornej
Copy link

Fixes # .
add babywealthyclub-multi strategy

Changes proposed in this pull request:

image

@claibornej claibornej changed the title Add babywealthyclub-multi strategy [babywealthyclub-multi] Add babywealthyclub-multi strategy Apr 10, 2023
Comment on lines +44 to +52
const results = await Promise.all(promises);
const resp = results.reduce((finalResults: any, strategyResult: any) => {
for (const [address, value] of Object.entries(strategyResult)) {
if (!finalResults[address]) {
finalResults[address] = 0;
}
finalResults[address] += value;
}
return finalResults;
Copy link
Member

Choose a reason for hiding this comment

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

Hi @claibornej I think you can use multiple strategies in your space than a separate strategy, the result of multiple strategies will be sum of them

Copy link
Author

Choose a reason for hiding this comment

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

I need to query the nft quantity of multiple chains

Copy link
Member

Choose a reason for hiding this comment

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

@claibornej You can do same from your space settings, you can select different network for different strategy

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