Comments (2)
Hey @sirbeefalot, did an investigation and that's quite a refactoring, so I want to align with you on the plan first.
Idea is to enrich lpTokenPrices
with BNB price data and extrapolate the rest of the prices based on LP balances, considering LP token wage is always 50/50. If there will be another wage at some point, we would need to make this data part of *Pools.json
. It will be something like getNyanswopTokenPrices
but reusable. Such approach will allow to get rid of both issues (this and #37) and would make adding new AMM oracles a breeze. WDYT?
from beefy-api.
Looking forward for a review @sirbeefalot
from beefy-api.
Related Issues (20)
- `GLP` flaky integration
- Smart Web3 client HOT 1
- Use seconds per year when annualizing balRewardRate during aura-bal apy calc
- Add trading fees to the APY calcs of a vault. ($2000 Bounty) HOT 2
- /apy api details HOT 2
- Subgraph endpoint update required
- Invalid assets via /apy HOT 1
- Unable to run HOT 1
- /apy/breakdown vaultApr should include performance fee HOT 1
- Wrong APY calculations due to skipped `compund` parameter
- Get more recent trading APR data from sushiswap (if subgraph is not lagging)
- Add Last-Modified header to /vaults endpoint
- Remove beets-fidelio-duetto from fetchAmmPrices
- Curve LP token price HOT 2
- Refactor getStrategies & getLastHarvests removing custom multicall contract HOT 1
- APY code does not align with what actually happens in the contract for lend/borrow's HOT 1
- 2 WBTCs on moonbeam HOT 1
- tvl endpoint is missing in docs (README) HOT 2
- how to host the api on server
- Trading Apr for pancake vaults are higher than expected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beefy-api.