How we calculate the APY
We calculate the APY for each LST/LRT based on:
ratio1 — current exchange ratio for an LST/LRT.
ratio2 — past exchange ratio for the same LST/LRT (day, week, month, date the LST/LRT was created).
timestamp1 — current timepoint in the UNIX format.
timestamp2 — past timepoint (day, week, month, date the LST was created). timestamp2 is obtained from the respective blockchain explorers via their RESTful APIs.
365 — average year length.
86400 — seconds in a 24-hour day.
Last updated