-
Notifications
You must be signed in to change notification settings - Fork 26
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
Rewards- threshold lib updates #307
base: staking-threshold-lib
Are you sure you want to change the base?
Commits on Nov 14, 2022
-
Move some date utils to the threshold ts lib
These utils functions/variables will be useful in the threshold ts lib eg for calculating staking bonus rewards.
Configuration menu - View commit details
-
Copy full SHA for fad0ea1 - Browse repository at this point
Copy the full SHA fad0ea1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfe1044 - Browse repository at this point
Copy the full SHA cfe1044View commit details -
Create a wrapper for merkle drop contract
In the future we should create a contract wrapper for each contract the threshold lib integrates to keep the same interface. In some cases multiple services need the same contract data like deployment block or address. So to avoid duplicating the creation of each contract in each service can create one contract instance and pass to the service in constructor.
Configuration menu - View commit details
-
Copy full SHA for 7fede35 - Browse repository at this point
Copy the full SHA 7fede35View commit details -
Add staking bonus service to the thrershold ts lib
Move fetching the staking bonus rewards to the threshold lib. Also add a function to the staking and pre service to fetch necessary events to calculate rewards.
Configuration menu - View commit details
-
Copy full SHA for b7f49e9 - Browse repository at this point
Copy the full SHA b7f49e9View commit details -
Add interim staking rewards to threshold ts lib
Move fetching the interim staking rewards to the threshold ts lib and update hooks to use the services from threshold lib.
Configuration menu - View commit details
-
Copy full SHA for a018db7 - Browse repository at this point
Copy the full SHA a018db7View commit details -
Add rewards to the threshold ts lib
Rewards is a wrapper for all type of rewards in the threshold network. Currently there are 2 types of rewards: staking bonus and interim staking rewards. We should keep in mind that calculated reward from interim rewards service may include the staking bonus reward.
Configuration menu - View commit details
-
Copy full SHA for 6295153 - Browse repository at this point
Copy the full SHA 6295153View commit details -
We keep the abi for `ComulativeMerkleDrop` contract in the threshold ts lib.
Configuration menu - View commit details
-
Copy full SHA for a8d8ff8 - Browse repository at this point
Copy the full SHA a8d8ff8View commit details
Commits on Nov 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1458fbc - Browse repository at this point
Copy the full SHA 1458fbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58cc3c5 - Browse repository at this point
Copy the full SHA 58cc3c5View commit details
Commits on Nov 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for de000cd - Browse repository at this point
Copy the full SHA de000cdView commit details