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.
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 poolReasoning:
EDIT: Differing
staking-balance-v1
method was removed from this PR and moved to PR1490 as requested by @ChaituVR for easier review.