Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Merkle distribution for Sep 1st 24 #154

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,390 changes: 4,390 additions & 0 deletions distributions/2024-09-01/MerkleDist.json

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1,162 changes: 1,162 additions & 0 deletions distributions/2024-09-01/MerkleInputTACoRewards.json

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

3,161 changes: 3,161 additions & 0 deletions distributions/2024-09-01/tBTCv2-rewards-details/1722470400-1725148800.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": "898815353758438805333519149",
"LatestCumulativeAmount": "931834344775667962782954083",
"CumulativeAmountByDistribution": {
"2022-07-15": "124734992091552235627767774",
"2022-09-01": "183365680150625789032093616",
Expand Down Expand Up @@ -28,6 +28,7 @@
"2024-05-01": "800838989173771171687223041",
"2024-06-01": "833229637916686361187662125",
"2024-07-01": "865483306654136779543783768",
"2024-08-01": "898815353758438805333519149"
"2024-08-01": "898815353758438805333519149",
"2024-09-01": "931834344775667962782954083"
}
}
8 changes: 4 additions & 4 deletions src/scripts/gen_rewards_dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ const { getTACoRewards } = require("./utils/taco-rewards.js")
// The following parameters must be modified for each distribution
const tacoWeight = 0.25
const tbtcv2Weight = 0.75
const startTime = new Date("2024-07-01T00:00:00+00:00").getTime() / 1000
const endTime = new Date("2024-08-01T00:00:00+00:00").getTime() / 1000
const lastDistribution = "2024-07-01"
const startTime = new Date("2024-08-01T00:00:00+00:00").getTime() / 1000
const endTime = new Date("2024-09-01T00:00:00+00:00").getTime() / 1000
const lastDistribution = "2024-08-01"
// tBTC valid versions and deadlines (if any) sorted from latests to oldest.
// Example: v2.1.x is the current version, v2.0.x is valid until 2024-06-01:
// v2.1.0|v2.0.0_1717200000
// Note that we only care about major and minor versions, so not updating to a
// new patch version will not disqualify the stake for rewards.
const tbtcValidVersions = "v2.1.0|v2.0.0_1720137600"
const tbtcValidVersions = "v2.1.0"

const etherscanApiKey = process.env.ETHERSCAN_TOKEN
const tbtcv2ScriptPath = "src/scripts/tbtcv2-rewards/"
Expand Down