Calculations for Total dETH Earned
Total dETH earned is tracked using the cumulative earnings after each epoch. As discussed earlier, at each epoch we look at the previous epoch and see the difference in balance in order to determine the earnings for that epoch. If the balance is positive, we know that the validator has earned rewards and we add the dETH Rewards. If the balance is negative, we slash the SLOT tokens and don’t add the dETH rewards. A more detailed explanation can be found in transforming the data section
We utilize swagger to list all of the endpoints and provide a description for each. All of this information is available at the API Specifications