How we calculate the APY

We calculate the APY for each LST/LRT based on:

  1. ratio1 — current exchange ratio for an LST/LRT.

  2. ratio2 — past exchange ratio for the same LST/LRT (day, week, month, date the LST/LRT was created).

  3. timestamp1 — current timepoint in the UNIX format.

  4. timestamp2 — past timepoint (day, week, month, date the LST was created). timestamp2 is obtained from the respective blockchain explorers via their RESTful APIs.

  5. 365 — average year length.

  6. 86400 seconds in a 24-hour day.

Last updated