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

[staking-balance-of-v2] New strategy staking v2 #1489

Merged

Conversation

propchain-development
Copy link
Contributor

@propchain-development propchain-development commented Jun 2, 2024

Changes proposed in this pull request:

adding a custom staking-balance-of-v2 method that allows to track staked tokens for voting power.
Voting power is be weighed by the lockup period of a staking pool

Reasoning:

  • contract_call is not possible, due to the 2 step logic necessary to retrieve the correct amount of staked tokens for a wallet
  • the new strategy allows to track 5 staking pools "in one go" to improve performance and reducing the amount of requests.

EDIT: Differing staking-balance-v1 method was removed from this PR and moved to PR1490 as requested by @ChaituVR for easier review.

LICENSE Outdated Show resolved Hide resolved
src/strategies/index.ts Outdated Show resolved Hide resolved
Tobias Athenstaedt added 2 commits June 2, 2024 18:45
…/snapshot-strategy-vesting-balances into staking-balance-of
@propchain-development propchain-development changed the title staking v1 and v2 staking v2 Jun 2, 2024
@ChaituVR ChaituVR changed the title staking v2 [staking-balance-of-v2] New strategy staking v2 Jun 2, 2024
@ChaituVR ChaituVR merged commit de08ded into snapshot-labs:master Jun 2, 2024
15 checks passed
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.

None yet

2 participants