APY
How Yield Is Generated
How APY Is Calculated
currentReport = oracle.getReport(ETH) # current block
initialReport = oracle.getReport(ETH) # 1 day old block
apy := (
(currentReport.priceD18 / initialReport.priceD18)
** (365 * 24 * 3600 / (currentReport.timestamp - initialReport.timestamp))
- 1
) * 100Claiming Receipt Tokens
Important Disclaimer
Last updated