-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Blindex integration #83
base: master
Are you sure you want to change the base?
feat: Blindex integration #83
Conversation
Added blindex tokens to rsk tokens
src/assets/erc20/rsk-tokens.json
Outdated
"code": "ETHs", | ||
"decimals": 18, | ||
"contractAddress": "0x1d931bf8656d795e50ef6d639562c5bd8ac2b78f", | ||
"color": "#333333" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichalSzreder let's add our new tokens: bXAU and bGBP on both PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If some of these tokens is listed on coingecko, can you add the property
"coinGeckoId".
If coinGeckoId is not available, because the tokens are not listed on coingecko, you can also use
"matchingAsset": - (it links the price of your token to the price of some other token. e.g you can link the price of your stable $ token to USDC)
example for other token
"PUSDC": {
"name": "Polygon USD Coin",
"code": "USDC",
"decimals": 6,
"contractAddress": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"color": "#5b31b9",
"coinGeckoId": "usd-coin",
"matchingAsset": "USDC"
},
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I'm not sure if matchingAsset is what we want since the prices can, and will differ slightly, which could make a difference for bigger swaps and confuse users. @tkeidar WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree @MichalSzreder.
@tima-t can you elaborate on what this price is used for?
basically, the actual token price is determined by our AMM, which is a Uniswap V2, can we use it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can see it is used only for displaying token price in USD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, coingeckoId is used to display the price in USD.
I was trying to say that if the price of your BUSD and XUSD is always equal to approx. 1 dollar.
You can link your tokens to the price feed of coingeckoId and the price of USD. That way it will be more user friendly.
This will work in case the price of you token is stable and the price range is between than 0.99 to 1.01.
It is only for informational purposes (this usd price), but we do not want to show wrong price.
Same thing I am proposing for ETHs if the price of ETHs is always equal to the price of ETH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichalSzreder For XUSD we can use the price of USDT and ETH for ETHs.
The other tokens we will keep empty for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tokens are stable but the price is not always between that range for BDUS nor USDC @tkeidar WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added these for XUSD and ETHs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For our tokens lets keep it as is (without the coingecko id) and once our tokens will be live on coingecko we will add it
…toassets into feat/blindex-integration
e17df2d
to
adaf3cb
Compare
…toassets into feat/blindex-integration
Description
Add Blindex tokens (BDX and stablecoins) with XUSD and ETHs to RSK tokens list.
Submission Checklist 📝