DeepOnion staking guide.

Bykardinal
4 min readOct 9, 2017

I see a lot of questions like “i have weight X and didn't get a stake” , “why I got X reward? where is my 10%”. In this article I want to help these guys with understanding staking process.

1 . DeepOnion network

Deep Onion is a hybrid cryptocurrency that uses proof of stake (PoS) and the X13 proof of work (PoW) algorithm. POW blocks generation time — 4 min, POS blocks generation time — 1min. First year stake reward = 10% per year. Second year stake reward = 5% per year , after this stake reward will be 1% per year. Coins mature time — 24h , Maximum coins mature time — 30 days (1 month here)

so totally we have:

POS BLOCKS per day= 60 * 24 =1440 POS blocks per day

POS BLOCKS per month= 1440 * 30 = 43200 POS blocks per month

POS BLOCKS per year= 1440 * 365 = 525600 POS blocks per year

POW BLOCKS per day = 15 * 24 = 360 POW blocks per day

POW BLOCKS per month = 360 * 30 = 10800 POW blocks per month

POW BLOCKS per year = 360 * 365 = 131400 POW blocks per year

it is very important information for understanding the process of staking works, because wallets don’t know words like “day” , “month” , “year”. Wallets know only block timings. 1440 POS blocks+360 POW blocks= 1800 blocks total =1 day for wallet. 43200 POS blocks+ 10800 POW blocks= 54000 blocks total = 30 days for wallet(1 month). 525600 POS blocks + 131400 POW blocks = 657000 blocks total = 1year for wallet.

First 657000 blocks stake reward = 10% (first year)

657000–1314000 blocks stake reward will be 5% (second year)

1314000 +++ blocks stake reward will be 1% (3rd +++ years)

In debug console you can use commands “getblockcount” ,“getinfo” and you will see how old your wallet is.

Here we can see 137885 blocks . so 137885 \ 54 000 (POS + POW blocks per 30 days) = 2,55 month.

2. Chances for getting stake

for understanding this all what you need to know

  1. how many POS blocks the DeepOnion network generates per day.
  2. Your network weight
  3. Global network weight

My network weight now is 39215 , Global network weight now is 6 550 814.

All DeepOnion network generate 1440 POS blocks per day.

6 550 814 \ 1440 = 4549 (with this network weight someone can generate 1 POS block per day).

But my network weight now is 39215. So for today i can get 39215\4549 = 8 POS blocks. Of course only if my network weight and global network weight will not change (but they are always changing). Anyway here you can understand how to know your chances to get stake rewards. Maybe you have no reason to keep wallet launched, if your network weight is low for now. And global network weight is too high and you will have chances to get some stake only after 2–3 days, when your network weight will be higher.

3. INPUTS AND REWARDS

Money in your wallet is not stored in one place, it is stored in inputs. To see these inputs you need activate coin control feature.

after this we can see “inputs” in send coins section

Your wallet can have different quantity of inputs, even with different addresses. Here are my inputs.

Ok, but what about POS.

When your wallet generates a POS block, only one of this inputs only can give to you a stake reward. After this stake generation, network weight of this input = zero, also this input can’t get stake again for 24H(1800 confirmations) and your network weight becomes less and your chances to get stakes becomes less too.

4. How to calculate stake rewards

It is very easy. All what you need to know here is.

1 INPUT

2 Confirmations

Here I have 1713 coins input with 11852 confirmations. What does it mean. Confirmations it is blocks generated after transaction. So 11852 confirmations are 11852\1800 = 6,58 days

How to calculate stake reward for this input? Very easy.

1713 \ 10 =171,3. /this is 10% yearly reward for this input

171,3 \ 365 = 0,469 /this is daily reward for this input

0,469 * 6,58 = 3,088 / This is how much stake reward I will get if this input (1713 coins with 11852 confirmations) will generate a POS block.

Here is example calculations with days, but wallet have another formula for calculations stake rewards. Calculations with days just more easy to understand.

--

--