yearn / yearn-vaults-descriptions

Home Page:https://vaults.yearn.finance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FRP: Update to new API yDaemon

DarkGhost7 opened this issue Β· comments

What is your proposal πŸš€

Update the site to use the new API yDaemon (https://github.com/Majorfi/ydaemon)

What does this solve ? πŸ› 

This is a more consolidated API and has better features than the old one

More πŸ”Ž

Docs can be found here http://ydaemon.ycorpo.com/
API is hosted here

I'm going to give this a shot. At a glance this seems to be a matter of updating the endpoint urls which currently fetch data from https://api.yearn.finance/v1/chains/${network}/vaults/all to instead fetch from to https://api.ycorpo.com/${network}/vaults/all and then update functional logic to ensure consistency in how the returned data is locally organized for display to the user. Those are the assumptions I'm starting with anyway (let me know if I'm missing something)

I also see calls that get data stored on IPFS from the Yearn Meta API but my understanding is that no changes should be made to the Meta API requests, but again let me know if that's incorrect.