[bisq-network/bisq] Add Tether token support via ERC20 and Omni (#4434)

chimp1984 notifications at github.com
Mon Aug 31 19:33:17 UTC 2020


@chimp1984 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);

I will have a look into it.

-- 
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_r480352932
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200831/eced5ba7/attachment-0001.html>


More information about the bisq-github mailing list