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
- https://api.ycorpo.com/[chainID]/vaults/[address] to get the info for one specific vault
- new route https://api.ycorpo.com/info/chains to list the supported chainID
examplehttps://api.ycorpo.com/1/vaults/all
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.