-
Notifications
You must be signed in to change notification settings - Fork 809
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
[plearn] Add plearn strategy #1357
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also some of test cases are failing, can take a look at them plz? :)
src/strategies/plearn/index.ts
Outdated
options.lockedPoolAddresses.map((item) => | ||
multicall( | ||
network, | ||
provider, | ||
lockedPoolabi, | ||
addresses.map((address: any) => [ | ||
item.address, | ||
'userInfo', | ||
[address], | ||
{ blockTag } | ||
]), | ||
{ blockTag } | ||
) | ||
) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to limit the number of lockedPoolAddresses
foundingInvestorPoolAddresses
, pendingWithdrawalAddresses
and make sure number of requests doesn't cross 5 https://github.com/snapshot-labs/snapshot-strategies#code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChaituVR
I've implemented the changes as you suggested. Now, I've limited the arrays for lockedPoolAddresses, foundingInvestorPoolAddresses, and pendingWithdrawalAddresses to have no more than 5 addresses each. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But that will max 15 network calls, we can only allow upto max 5 network calls https://github.com/snapshot-labs/snapshot-strategies#code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChaituVR I've updated code, could you please take another look at it?
Tiakun refactor 1
Refactor code
@jeeraponnnnnnnn could you resolve conflicts please :) |
Changes proposed in this pull request: