adding a custom staking-balance-of-v1 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.
differs from 'staking-balance-v2' in the way underlying smart contracts provide interfaces for input and return values, though idea is similar.
ℹ️ This PR was created to move staking-balance-of-v1 to a dedicated PR as requested by @ChaituVR. It was originally shared in PR1489.
Changes proposed in this pull request:
adding a custom staking-balance-of-v1 method that allows to track staked tokens for voting power. Voting power is be weighed by the lockup period of a staking pool
Reasoning:
ℹ️ This PR was created to move
staking-balance-of-v1
to a dedicated PR as requested by @ChaituVR. It was originally shared in PR1489.