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

added: local currency conversion options #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tansawit
Copy link

This adds the ability for users to see the currently chosen trading pair's prices in their preferred local currency. The conversion rate is retrieved using Band's decentralized oracle.

This aims to help users whose preferred trading currency is not USD better make their trading decisions. Currently, the available currency options are:

"USD", "CNY", "EUR","GBP","KRW","JPY","INR","RUB","CHF","AUD","BRL","CAD","HKD", "SGD"

photo_2563-10-20 16 38 11

@tansawit tansawit changed the title added: band oracle for local currency options added: local currency conversion options Oct 20, 2020


const CurrencyContext = React.createContext<null | any>(null);
const bandchain = new BandChain("http://poa-api.bandchain.org")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a reliable source of fx data?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This data is from Band Protocol's decentralized oracle be on our proof-of-authority mainnet

https://bandprotocol.com
https://guanyu-poa.cosmoscan.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants