Skip to content

APY calculation differs from webapp #67

@varanauskas

Description

@varanauskas

The APY calculation in the webapp has been updated with epoch_period

(Anchor-Protocol/anchor-web-app#353)

https://github.com/Anchor-Protocol/anchor-web-app/blob/d43ab70b8e85dfa144e506160d904d897fcbb27d/app/src/%40anchor-protocol/app-fns/logics/earn/computeApy.ts#L10

This logic is not replicated in earn.getAPY

return new Dec(epochState.deposit_rate).mul(BLOCKS_PER_YEAR).toNumber();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions