You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Display the dollar value they would be able to convert their bonds for. (Call the previewConvert function on the contract then multiple that value * the token price to get the dollar value.
#11
You'll only need to do previewConvert(1 * 10^18) to get the number of collateralTokens that the bond converts into. I wouldn't worry about the price data yet - but there are a few options on how you can get that.
CoinGeko API
That data is accessible via some graphs, like Uniswap. We could use their graph or maybe index the data and add it to our graph for all of our collateral tokens.
It's similar enough that we can close this TBH. I don't think it's worth adding this until the design phase
Difference is that this issue should basically show the user if its WORTH converting their bonds or not based on current prices and ratio, where the other 2 tasks facilitate the conversion itself
No description provided.
The text was updated successfully, but these errors were encountered: