Example of calculating rewards for staking stage 2
Bob staked 500 000 TYZ on the first day for the entire period (for 150 days).
Jack invested 300 000 TYZ 50 days after the start of the staking phase, and added another 700 000 TYZ 50 days later.
Alice invested 1 200 000 TYZ 50 days before the end of the staking stage.
Also, for example, let's set a conditional profit aimed at staking rewards:
First 50 days – 70 000 TYZ;
Days 51 to 100 – 120 000 TYZ;
Days 101 to 150 – 90 000 TYZ.
First 50 days
Bob gets the whole reward:
50 days×2 333.3 TYZ+70 000 TYZ=186 666.7 TYZ Days 51 to 100:
Bob (500,000 TYZ in stake) and Jack (300,000 TYZ in stake) share the reward in proportion to their balance.
Bob's Reward:
800 000 TYZ500 000 TYZ(50 days×2 333.3 TYZ+120 000 TYZ)=146 916.7 TYZ Jack's Reward:
800 000 TYZ300 000 TYZ(50 days×2 333.3 TYZ+120 000 TYZ)=88 750 TYZ Days 101 to 150:
Jack's steak balance has increased to 300,000 TYZ, respectively, his share of the reward will also increase.
Bob's Reward:
2 700 000 TYZ500 000 TYZ(50 days×2 333.3 TYZ+120 000 TYZ)=38 271.6 TYZ Jack's Reward:
2 700 000 TYZ1 000 000 TYZ(50 days×2 333.3 TYZ+120 000 TYZ)=76 543.2 TYZ Alice's Reward:
2 700 000 TYZ1 200 000 TYZ(50 days×2 333.3 TYZ+120 000 TYZ)=91 851.9 TYZ Total