Skip to content

Pool APY #25

@TCGV

Description

@TCGV

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions