(networkizedCode, currency)
| 2668 | return this.safeString(types, type, type); |
| 2669 | } |
| 2670 | getCurrencyFromChaincode(networkizedCode, currency) { |
| 2671 | if (currency !== undefined) { |
| 2672 | return currency; |
| 2673 | } |
| 2674 | else { |
| 2675 | const parts = networkizedCode.split('_'); |
| 2676 | const partsLength = parts.length; |
| 2677 | const firstPart = this.safeString(parts, 0); |
| 2678 | let currencyId = this.safeString(parts, 1, firstPart); |
| 2679 | if (partsLength > 2) { |
| 2680 | currencyId += '_' + this.safeString(parts, 2); |
| 2681 | } |
| 2682 | currency = this.safeCurrency(currencyId); |
| 2683 | } |
| 2684 | return currency; |
| 2685 | } |
| 2686 | /** |
| 2687 | * @method |
| 2688 | * @name woo#fetchDeposits |
no test coverage detected