Comments (6)
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.
from frontend.
To be clear - you can cut out
multiple that value * the token price to get the dollar value
from frontend.
is this the same as the two remaining tasks in:
from frontend.
is this the same as the two remaining tasks in:
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
from frontend.
ignore the other 2 tasks too until design, or required?
from frontend.
ignore the other 2 tasks too until design, or required?
Required now
from frontend.
Related Issues (20)
- 4 issues
- Disallow app on mobile HOT 5
- Weird Rounding HOT 4
- Bugs when on wrong network HOT 2
- Change "offering" header to "product"
- Future Bond Addresses HOT 2
- Clean up / fix Sentry errors
- Weird tooltip padding
- Minimum bid size error
- Payment Token warning inaccurate HOT 1
- setup sentry <> github integration HOT 1
- fix claim preview on wrong chain id HOT 1
- Make Prettier Formatting Warning not Error? HOT 7
- No order shown in gnosis safe HOT 2
- Wrong network is opened with looking at bids on wrong network
- Get tokens from Subgraph
- Bond Management
- Orders cancel button cut off at certain resolutions
- Gnosis safe transactions do not complete
- Bond Management bugs 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 frontend.