Compound integration with Omen Markets. Archived in favor of https://github.com/protofire/omen-exchange/pull/1570 - #1466
Closed
pRoy24 wants to merge 59 commits into
Closed
Compound integration with Omen Markets. Archived in favor of https://github.com/protofire/omen-exchange/pull/1570 #1466pRoy24 wants to merge 59 commits into
pRoy24 wants to merge 59 commits into
Conversation
pRoy24
marked this pull request as draft
January 1, 2021 11:33
pRoy24
marked this pull request as ready for review
January 5, 2021 04:28
Contributor
Contributor
Author
Contributor
|
Hey @pRoy24 , once I enable compound the pool number is jumping around: |
Contributor
|
Every market info component here has a svg in 24x24. The compound svg you included is 16x16: please use this svg: |
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
…as to transforming tokens as opposed to transforming prices
Mi-Lan
suggested changes
Jan 20, 2021
Comment on lines
+72
to
+78
| const ServiceTextWrapper = styled.div` | ||
| width: 90%; | ||
| ` | ||
|
|
||
| const ServiceCheckWrapper = styled.div` | ||
| width: 10%; | ||
| color: transparent; |
Contributor
There was a problem hiding this comment.
I dont think defining static values to width here is neccesary. I would suggest just adding
justify-content: space-between; to the parent element that is 100% and omitting width for these two values. The reason for this is because 10% is slightly more than 40px and creates this unnecessary margin...

Comment on lines
261
to
-263
| cdai: { | ||
| symbol: 'cDAI', | ||
| decimals: 18, |
Contributor
Contributor
Author
There was a problem hiding this comment.
Yup, makes sense refactored to include the change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.














Fixed the previous round of comments.
Added badge as defined in the mockup.
Refactored to make it work with ETH as the base and cETH as the underlying collateral.
Tested on Rinkeby with ETH -> cETH and dai -> cDAI pairs.
Please note that you need to run yarn install since this feature uses Big.js version 6.0.0