-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The Annual percentage yield of the liquidity pool can be calculated by the following formula:
APY = [pool_yield ^(365 / term_in_days) - 1] * 100
Where pool_yield is the value returned from the liquidity pool function of same name specifying the time since the start of the term period in seconds.
For instance, considering that the pool was deployed 20 days ago, which amounts to 1728000 seconds, the pool yield results in 1.262599536 (equivalent to 26.2599536%):
Then, the APY would be:
APY = [1.262599536 ^(365 / 20) - 1] * 100
APY = 6949 %
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
