Outblock / Lilico-iOS

Apache License 2.0
3 stars 1 forks source link

Token Price Display Issue for $BR 🇧🇷 #77

Open diegofornalha opened 1 year ago

diegofornalha commented 1 year ago

In the main tab where we add the token flow, when we view the token price for $BR, there is no displayed value in dollars or in another currency.

The problem here is that the token price for the Brazilian token ($BR) is not being displayed in any currency, which makes it challenging to evaluate its value.

To address this issue, we suggest implementing a solution that involves a simple JavaScript script to query the pool balance of the $BR-$USDC pair and, optionally, the balance of another currency of your choice. You can use the smart contract API available here: Smart Contract API. With this API, you can calculate the real-time price of $BR in USD or any other currency by using the formula: balanceOf(desiredCurrency) / balanceOf(br). This will ensure that the token price is accurately displayed in the selected currency.

Assignees: [@lmcmz]