(Object network)
| 7836 | } |
| 7837 | |
| 7838 | public Object safeNetwork(Object network) |
| 7839 | { |
| 7840 | Object withdrawEnabled = this.safeBool(network, "withdraw"); |
| 7841 | Object depositEnabled = this.safeBool(network, "deposit"); |
| 7842 | Object limits = this.safeDict(network, "limits"); |
| 7843 | Object withdraw = this.safeDict(limits, "withdraw"); |
| 7844 | Object deposit = this.safeDict(limits, "deposit"); |
| 7845 | Object isEnabled = (Helpers.isTrue(withdrawEnabled) && Helpers.isTrue(depositEnabled)); |
| 7846 | final Object finalWithdrawEnabled = withdrawEnabled; |
| 7847 | return new java.util.HashMap<String, Object>() {{ |
| 7848 | put( "info", Helpers.GetValue(network, "info") ); |
| 7849 | put( "id", Exchange.this.safeString(network, "id") ); |
| 7850 | put( "name", Exchange.this.safeString(network, "name") ); |
| 7851 | put( "network", Exchange.this.safeString(network, "network") ); |
| 7852 | put( "active", Exchange.this.safeBool(network, "active", isEnabled) ); |
| 7853 | put( "deposit", depositEnabled ); |
| 7854 | put( "withdraw", finalWithdrawEnabled ); |
| 7855 | put( "fee", Exchange.this.safeNumber(network, "fee") ); |
| 7856 | put( "precision", Exchange.this.safeNumber(network, "precision") ); |
| 7857 | put( "limits", new java.util.HashMap<String, Object>() {{ |
| 7858 | put( "withdraw", new java.util.HashMap<String, Object>() {{ |
| 7859 | put( "min", Exchange.this.safeNumber(withdraw, "min") ); |
| 7860 | put( "max", Exchange.this.safeNumber(withdraw, "max") ); |
| 7861 | }} ); |
| 7862 | put( "deposit", new java.util.HashMap<String, Object>() {{ |
| 7863 | put( "min", Exchange.this.safeNumber(deposit, "min") ); |
| 7864 | put( "max", Exchange.this.safeNumber(deposit, "max") ); |
| 7865 | }} ); |
| 7866 | }} ); |
| 7867 | }}; |
| 7868 | } |
| 7869 | |
| 7870 | public Object prioritizedNetworkAliases(Object... optionalArgs) |
| 7871 | { |
no test coverage detected