Questions tagged [staking]

Questions about Proof-of-Stake systems built on top of Substrate.

Filter by
Sorted by
Tagged with
1 vote
1 answer
13 views

Need help with Token Economics Design for Substrate based blockchain (without any Parachains)

What are some very optimal tokenomics for a substrate based blockchain without any parachains that can be easily implemented using substrate's default framework ? The documentation on W3 research says ...
user avatar
  • 11
5 votes
1 answer
56 views

The purpose of epochs in staking

What problem do epochs in staking solve? Why don't stakers win stakes by something as simple as generating data from history + the latest block (so that precomputing stakes is not possible), and then ...
user avatar
2 votes
0 answers
22 views

Testing Moonbeam parachain staking

I have added Moonbeam parachain staking in our code.Can anyone please provide the full step to test it. I'm following this tutorial: https://docs.moonbeam.network/tokens/staking/stake/#staking-your-...
user avatar
0 votes
2 answers
38 views

How to recover to normal election from `staking.StakingElectionFailed` with `Fallback = BoundedExecution`?

We're running the NPoS chain with Aura, Grandpa instead of Babe. We've just upgraded our solochain. In this upgrade, we changed pallet_election_provider_multi_phase::Config::Fallback=BoundedExecution ...
user avatar
1 vote
1 answer
35 views

Where can I find minimum active stake for a certain era?

I'm writing a script using the polkadot.js API. I want to find the minimum active stake for a certain era. I.e. the minimum amount of DOTs staked by a nominator that also got a reward for that era. ...
user avatar
  • 13
2 votes
1 answer
64 views

Pallets needed for staking

Can anyone please explain what are the different types of pallets we need to add to a runtime in order to integrate staking into our runtime?
user avatar
1 vote
1 answer
46 views

Staking rewards for collator services

How to add Staking rewards for collator services for Node operators ?
user avatar
0 votes
1 answer
32 views

Want support in polkadot.js/api

I am trying to call api.query.staking.erasTotalStake in polkadot.js. Docs: https://polkadot.js.org/docs/substrate/storage/#erastotalstakeu32-u128 Which value can be parameter? Docs says u32. Is it ...
user avatar
0 votes
1 answer
20 views

Staking Pools, How do they work? what are their machanics?

How do nomination pools work in the system, what are the mechanics and who controls the direction of those nominations? what are their mechanics?
user avatar
  • 11
3 votes
1 answer
150 views

Local network does not change validator set

Currently, we have a local test net with 4 substrate nodes using this runtime which has the staking and session pallets. 2 nodes (Alice and Bob) are validators, placed in the chain spec json file and ...
user avatar
2 votes
1 answer
20 views

How to query the active nominators of X validator in past eras?

I need to be able to query the addresses of the active nominators of a validator in a past era (eg 695). Thanks in advance.
user avatar
0 votes
2 answers
46 views

Are validators elected at the end of each Era or Epoch?

I am trying to debug my network, and since the epoch times are quite large (4 hours) and eras (1 day), are waiting validators considered for election at the end of an epoch or at the end of an era?
user avatar
2 votes
1 answer
54 views

How to obtain the staking amount for non-active validators?

Using substrate-interface I'm trying to get the amount of DOT in staking for non-active validators, those that are waiting. I can get the active validators' amount by using the storage_function ...
user avatar
3 votes
1 answer
20 views

Access The Unbonding Amount With Substrate Query

I'm trying to measure the unbonding amount directly from a substrate-interface query. Here's the amount I'm interested in: I can get some account information with this query: value = self....
user avatar
1 vote
3 answers
47 views

0x02000000 Being Returned in Extrinsic Receipt and Failing Error Module Indexing

When submitting a stake request through the Python substrate-interface library, the extrinsic receipt comes back with the following parameters: ({'Module': {'index': 6, 'error': '0x02000000'}}, {'...
user avatar
1 vote
1 answer
24 views

Possible to claim Payouts for very old Era?

In payoutStakers() I see that Era argument needs to between current_era and history_depth. So are unclaimed payouts for very old eras effectively lost? If they are unclaimable, then are those funds ...
user avatar
1 vote
0 answers
29 views

Retrieving all validator accounts with the golang client

My goal is to get a list of the stash account addresses of all validators using the golang substrate client. Context My approach so far is to take inspiration from the polkadotjs application and other ...
user avatar
  • 11
3 votes
1 answer
37 views

What happens if validator count < minimum_validator_count?

I am using the staking pallet and it has an item known as minimum_validator_count. I'd like to learn what would happen if the actual validators in the network is less than this entity. Would the ...
user avatar
4 votes
1 answer
69 views

How do I check the status of nominations for a staking account?

I've used await api.query.staking.nominators(address) but that just returns something like: { "result": { "targets": [ "{nominatorId1}", ...
user avatar
  • 57
8 votes
2 answers
61 views

Why stakers tend to stake more on DOT than KSM? [closed]

right now there is no oversubscribed validator on Kusama but a lot of validators on Polkadot are already oversubscribed, why stakers do not stake Kusama instead and insist nominating oversubscribes?
user avatar
  • 397
2 votes
1 answer
28 views

How get the starting Time of a an EraIndex?

I would like to have the start of an era by eraIndex like: const startingTime = getStartTimeOf( eraIndex ); Thank you.
user avatar
  • 397
3 votes
1 answer
60 views

How can I fetch the bagsList?

I need to find my account's rank in the semi sorted bagsList hence I look for an API to do fetch that. why is it SEMIsorted that then needs to a rebag call that cost a fee? why it is not sorted at ...
user avatar
  • 397
3 votes
2 answers
58 views

Using unspent funds from Treasury as staking rewards

I am trying to build something that will allow me to use unspent treasury funds as I don't understand the proposal system yet, but I won't be overloading this question with that. Here's the scenario: ...
user avatar
2 votes
1 answer
26 views

what is the formula to calculate minNominated dynamic value in Polkadot staking?

As illustrated in Polkadot.js.org staking page which is added below, users who staked more than "min nominated" will receive rewards. minNominated is a dynamic value. I found the code in ...
user avatar
  • 397
8 votes
1 answer
59 views

Why only top 256 nominators are rewarded for an oversubscribed validator on Polkadot?

According to the Wiki article - https://wiki.polkadot.network/docs/learn-nominator#oversubscribed-validators only the top 256 nominators of an oversubscribed validator receive rewards. It also ...
user avatar
  • 665
3 votes
1 answer
56 views

How do the Staking Rewards payouts work?

I've added Staking to substrate-node-template and just explored the feature. I've managed to add validators and nominators and it looks like everything is working well. One thing I'm not able to ...
user avatar
  • 361
5 votes
1 answer
47 views

How to programmatically get current unbonding information on the Polkadot relay chain?

Using either a Rust or JavaScript client library I would like to get the amount of DOT that is currently being unbonded on the relay chain. Some staking information is available in the Polkadot JS ...
user avatar
  • 329
2 votes
1 answer
30 views

Writing a test to call staking.chill() so as to remove Charlie as a Validator

I am trying to write a test on PolkadotJS to chill Charlie Account so as to remove Charlie as a validator and then ascertain that Charlie has been removed. But, Charlie does not seem to have been ...
user avatar
  • 137
4 votes
1 answer
51 views

Cannot find macro `vec` in this scope when using pallet-staking

I am trying to implement the prebuilt pallet-staking using 4.0.0-dev and tag devhub/latest. I am getting a compilation error on npos-elections. Should I be able to add the staking pallet into the ...
user avatar
  • 215
0 votes
1 answer
37 views

What does the Staking.EraPaid event mean?

According to Polkadot's events description page, the Staking.EraPaid event means the following: The era payout has been set; the first balance is the validator-payout; the second is the remainder ...
user avatar
1 vote
1 answer
25 views

Is it possible to specify minimum tokens for staking elections?

I would like to know if pallet-staking has any mechanism that facilitates constraints upon the amount of tokens that can be staked. I think polkadot initially came with no particular requirement for ...
user avatar
1 vote
2 answers
43 views

What are these items in ElectionProviderMultiPhase?

type SignedRewardBase: Get<BalanceOf<Self>> Base reward for a signed solution type SignedDepositBase: Get<BalanceOf<Self>> Base deposit for a signed solution. type ...
user avatar
1 vote
1 answer
32 views

Constant `MaxNominations` is removed from the Kusama runtime starting from 9170

I just noticed that staking.MaxNominations constant is removed from Kusama's runtime metadata starting from 9170. However, I did not find any proper replacement neither in constants nor in storage. ...
user avatar
1 vote
1 answer
42 views

Runtime panic when peering with node:

I require some insight into how to troubleshoot the following runtime error which only occurs when I try to peer with my running node. Using substrate v3.0.0 monthly-10-2021 I should also add that if ...
user avatar
2 votes
2 answers
60 views

For staking pallet, what options do I have for ElectionProvider?

I want to implement a simple PoS consensus mechanism where validator sets are chosen proportional to their stake. Do I need to write my own pallet implementing ElectionProviders trait or is there a ...
user avatar
3 votes
1 answer
48 views

Customising staker reward payment

I am looking at customising how we pay rewards for stakers. Instead of the default "minting" behaviour I would like to pay rewards out of some pot I will setup. Looking at the staking pallet,...
user avatar
  • 217
4 votes
1 answer
40 views

Is it possible to disable new validators from joining?

I am experimenting with the staking pallet on substrate V3.0 and I was trying to disable the functionality that allows new validators from joining. I would like to keep the staking functionality but ...
user avatar
  • 217