threshold-network / merkle-distribution

Threshold Network rewards generation and distribution
https://threshold.network
1 stars 6 forks source link

Dec 8th 2023 distribution: legacy Nu stakers transition rewards #114

Closed manumonti closed 9 months ago

manumonti commented 9 months ago

Release a distribution that includes legacy Nu stakes. The transition process deadline for legacy Nu stakes ends 7th Dec, so to distribute the rewards earned since Nov 22nd we are going to distribute a rewards batch that will include those earned by

(a) legacy Nu stakes that completed the transition process. The period of these rewards is Nov 22nd to Dec 7th. Note: check if the amount of T that the legacy staker have topped up and authorized is the same that it was unstaked/deauthorized. If the staker authorize a lower amount, the earned rewards must be lower also. (b) stakes that haven't legacy tokens (i.e. regular stakes). The period of these rewards is Dec 1st to Dec 7th.

The last distribution was made on Dec 1st: #111

In this distribution, we have the following cases for each stake:

  1. Stake didn't have legacy Nu: it will earn their regular stake rewards. No actions are needed for this since the script will calculate it.
  2. Stake had legacy Nu, but it didn't stake it again (i.e., it didn't do a top-up in the Threshold staking contract): the stake will receive its regular stake rewards, but it won't receive legacy stake rewards.
  3. Stake had legacy Nu, and it staked it again (i.e., it did a top-up in the Threshold staking contract + authorized RB and tBTC applications with the full amount): the stake will receive legacy stake rewards from Nov 22nd until the moment this restake was made. Also, it will receive regular stake rewards from the restake moment until Dec 8th.
  4. Stake had legacy Nu, and it partially staked it (i.e., it did a top-up in the Threshold staking contract + authorized RB and tBTC application but only with part of the legacy stake): the stake will receive legacy stake rewards from Nov 22nd until the restake moment but only for the restaked amount. Also, it will receive regular stake rewards from the restake moment until Dec 8th.