Skip to content

Commit

Permalink
New Merkle Distribution for Jan 1st 24
Browse files Browse the repository at this point in the history
As this is a cumulative Merkle distribution, the rewards here collected
are the sum of the rewards distributed in previous Merkle distributions
plus the rewards earned in the period between the last and the current
distribution.

The rewards earned in this distribution are determined for the period
between Dec 8th 2023 and Jan 1st 2023 and include:

- tBTCv2 rewards for the stakes who comply with the tBTCv2 requirements
for the period Dec 8th 23 - Jan 1st 24. Note that stakes with legacy
Keep staking will not be included in this distribution. See note below.

- TACo/PRE rewards for those that have a PRE or TACo operator confirmed
and were staking T for the period Dec 8th 23 - Jan 1st 24. This is the
TACo operator transition period, so for the calculation of this
distribution rewards both PRE and TACo operators are valid [3]. Stakes
that updated their PRE operator to TACo are earning rewards since the
confirmation of the PRE operator, so no rewards are lost in the
migration.

Note: Since the deadline for the legacy tokens transtion has not yet
ended for legacy Keep staking, and considering that stakes that
completed the process will earn the complete amount of rewards for their
legacy tokens, but those that won't complete the process in time won't,
it is not possible to know how much rewards have been calculated for
those stakes with legacy tokens. For this reason, no rewards have been
calculated for legacy stakes in this distribution period. In future
distributions after the transition deadline, the remaining rewards will
be distributed. Info: [1] [2].

[1] https://forum.threshold.network/t/transition-guide-for-legacy-stakers/719
[2] #112
[3] #113
  • Loading branch information
manumonti committed Jan 2, 2024
1 parent be1c1ac commit b418a67
Show file tree
Hide file tree
Showing 8 changed files with 10,827 additions and 5 deletions.
4,022 changes: 4,022 additions & 0 deletions distributions/2024-01-01/MerkleDist.json

Large diffs are not rendered by default.

658 changes: 658 additions & 0 deletions distributions/2024-01-01/MerkleInputBonusRewards.json

Large diffs are not rendered by default.

1,062 changes: 1,062 additions & 0 deletions distributions/2024-01-01/MerkleInputPreRewards.json

Large diffs are not rendered by default.

626 changes: 626 additions & 0 deletions distributions/2024-01-01/MerkleInputTbtcv2Rewards.json

Large diffs are not rendered by default.

1,090 changes: 1,090 additions & 0 deletions distributions/2024-01-01/MerkleInputTotalRewards.json

Large diffs are not rendered by default.

3,363 changes: 3,363 additions & 0 deletions distributions/2024-01-01/tBTCv2-rewards-details/1701993600-1704067200.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions distributions/distributions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"LatestCumulativeAmount": "665214635800154191882903509",
"LatestCumulativeAmount": "687886608859233439480873711",
"CumulativeAmountByDistribution": {
"2022-07-15": "124734992091552235627767774",
"2022-09-01": "183365680150625789032093616",
Expand All @@ -19,6 +19,7 @@
"2023-11-01": "629110104280766546988133843",
"2023-11-22": "650469442934220952184301762",
"2023-12-01": "658532485099719945522079260",
"2023-12-08": "665214635800154191882903509"
"2023-12-08": "665214635800154191882903509",
"2024-01-01": "687886608859233439480873711"
}
}
6 changes: 3 additions & 3 deletions src/scripts/gen_rewards_dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const MerkleDist = require("./merkle_dist/merkle_dist.js")
const bonusWeight = 0.0
const preWeight = 0.25
const tbtcv2Weight = 0.75
const startTime = new Date("2023-12-01T00:00:00+00:00").getTime() / 1000
const endTime = new Date("2023-12-08T00:00:00+00:00").getTime() / 1000
const lastDistribution = "2023-12-01"
const startTime = new Date("2023-12-08T00:00:00+00:00").getTime() / 1000
const endTime = new Date("2024-01-01T00:00:00+00:00").getTime() / 1000
const lastDistribution = "2023-12-08"

const etherscanApiKey = process.env.ETHERSCAN_TOKEN
const subgraphApiKey = process.env.SUBGRAPH_API_KEY
Expand Down

0 comments on commit b418a67

Please sign in to comment.