[bisq-network/bisq] Add Tether token support via ERC20 and Omni (#4434)
Jelle Besseling
notifications at github.com
Thu Aug 27 13:49:51 UTC 2020
@pingiun commented on this pull request.
> @@ -70,7 +70,12 @@ public PriceProvider(HttpClient httpClient, String baseUrl) {
final double price = (Double) treeMap.get("price");
// json uses double for our timestampSec long value...
final long timestampSec = MathUtils.doubleToLong((Double) treeMap.get("timestampSec"));
- marketPriceMap.put(currencyCode, new MarketPrice(currencyCode, price, timestampSec, true));
+ if (currencyCode.equals("USDT")) {
+ addPrice(marketPriceMap, "USDT-O", price, timestampSec);
+ addPrice(marketPriceMap, "USDT-E", price, timestampSec);
+ addPrice(marketPriceMap, "L-USDT", price, timestampSec);
+ }
+ addPrice(marketPriceMap, currencyCode, price, timestampSec);
On first glance this seems kind of hard because a lot of times currency codes are just passed around as strings instead of objects. But I'll investigate how I can make a nice solution
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4434#discussion_r478433409
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200827/272d48cd/attachment-0001.html>
More information about the bisq-github
mailing list