Skip to content
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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

MichalSzreder
Copy link

Description

Add Blindex tokens (BDX and stablecoins) with XUSD and ETHs to RSK tokens list.

Submission Checklist 📝

  • Add Blindex tokens, XUSD and ETHs to RSK tokens list
  • Add app.blindex.io as available dapp

@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Mar 31, 2022
@MichalSzreder MichalSzreder changed the title Feat/blindex integration feat: Blindex integration Mar 31, 2022
"code": "ETHs",
"decimals": 18,
"contractAddress": "0x1d931bf8656d795e50ef6d639562c5bd8ac2b78f",
"color": "#333333"
Copy link

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

Copy link
Collaborator

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"
},

Copy link
Author

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?

Copy link

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?

Copy link
Author

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

Copy link
Collaborator

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

Copy link

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

Copy link
Author

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?

Copy link
Author

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

Copy link

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

@MichalSzreder MichalSzreder requested a review from tima-t May 11, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔍 Ready for Review Pull Request is not reviewed yet size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants