Description
The reserve site so far has been hardcoding USDC and DAI prices to 1. This PR adds the functionality to use actual prices, since USDC and DAI recently depegged.
Usually, prices have two sources:
For DAI I chose Coinmarketcap and Coinbase, the only two existing adapters for general asset prices.
For USDC, Coinbase halted withdrawals and the price is not up to date. So not adding Coinbase as USDC source for now, but this should be added later. USDC is here only using Coinmarketcap.
This is the first time I work with this codebase and with a website in general, I couldn't build or test it, only went by logic. I hope Vercel pre-deploys and it looks ok 🙏
Description The reserve site so far has been hardcoding USDC and DAI prices to 1. This PR adds the functionality to use actual prices, since USDC and DAI recently depegged.
Usually, prices have two sources:
This is the first time I work with this codebase and with a website in general, I couldn't build or test it, only went by logic. I hope Vercel pre-deploys and it looks ok 🙏