[bisq-network/bisq] Dao ui improvements (#1751)

Manfred Karrer notifications at github.com
Mon Oct 8 16:24:29 UTC 2018


ManfredKarrer commented on this pull request.



> @@ -114,4 +116,101 @@ public Coin parseSatoshiToBtc(String satoshi) {
             return Coin.ZERO;
         }
     }
+
+
+    public String formatParamValue(Param param, long value) {
+        switch (param) {
+            case UNDEFINED:
+                return Res.get("shared.na");
+
+            case BSQ_MAKER_FEE_IN_PERCENT:
+            case BSQ_TAKER_FEE_IN_PERCENT:
+            case BTC_MAKER_FEE_IN_PERCENT:
+            case BTC_TAKER_FEE_IN_PERCENT:
+                return formatToPercentWithSymbol(value / 10000d);

Because we want to support 2 decimal places (e.g. 12.34%) so its 100 * 100 = 10 000

-- 
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/1751#discussion_r223424257
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20181008/8835dcbf/attachment.html>


More information about the bisq-github mailing list