galacticcouncil / sdk

Galactic SDK
Apache License 2.0
9 stars 15 forks source link

Add APR API #42

Closed green-jay closed 3 months ago

green-jay commented 5 months ago

Goal: Get listed on Yield aggregators like DefiLlama and showcase our APR prior to starting Liquidity Incentive campaign

E.g.: https://defillama.com/yields

Todo: Reuse existing logic to calculate APR and export it

Required: Highest possible APR per asset (Fee + Farm)

Optionally: Low+High Fee APR & APY per asset Low+High Farm APR & APY per asset

green-jay commented 3 months ago

const farmClient = new FarmClient(api); farmClient.getFarmApr(id, 'omnipool')