cypherstack / stack_wallet

Stack Wallet, a multicoin, cryptocurrency wallet
https://stackwallet.com
GNU General Public License v3.0
198 stars 56 forks source link

Add custom exchange rate for BCH in ARS #545

Open ianblas opened 1 year ago

ianblas commented 1 year ago

Hello!

I have been working in the Bitcoin Cash Argentina community to promote the adoption of Bitcoin Cash as a medium of exchange. We are focusing mainly in brick and mortar shops, but we have plans to reach more users. We promote the usage of various tools, including Stack Wallet.

Due to problems in the exchange rates caused by local restrictions, we had to develop a custom system to enable users (both customers and merchants) to use the Argentine peso as a reference. The price displayed by most websites is incorrect and not the price a normal user would have to pay to acquire Bitcoin Cash.

The rule is the following: We take the US dollar value in ARS from https://yadio.io/simple.html API and then multiply it by the Bitcoin Cash value in dollars. Essentially:

BCH price (in USD) × USD price (in ARS) = BCH price (in ARS)

I know that adding a custom exchange just for Argentina might be not standard. We try to deal with the restrictions the best that we can, and I hope this change might help in the work we are doing.

Thanks in advance!

sandakersmann commented 11 months ago

From Electron Cash:

https://github.com/Electron-Cash/Electron-Cash/pull/2326/files

eloyesp commented 4 months ago

Another alternative is use the CryptoCompare API, that get the right value, and also have other advantages: