@xchainjs/xchain-util
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,1 +1,7 @@ | ||
# v.0.3.1 (2021-07-14) | ||
### Fix | ||
- Fix `formatAssetAmountCurrency` for `XRUNE` | ||
# v.0.3.0 (2021-07-07) | ||
@@ -2,0 +8,0 @@ |
@@ -535,7 +535,6 @@ import BigNumber from 'bignumber.js'; | ||
// RUNE | ||
var regex = new RegExp(AssetRune67C.ticker + "|" + AssetRuneB1A.ticker + "|" + AssetRuneNative.ticker, 'i'); | ||
if (ticker.match(regex)) | ||
if (ticker === RUNE_TICKER) | ||
return AssetCurrencySymbol.RUNE + " " + amountFormatted; | ||
// BTC | ||
regex = new RegExp(AssetBTC.ticker, 'i'); | ||
var regex = new RegExp(AssetBTC.ticker, 'i'); | ||
if (ticker.match(new RegExp(AssetBTC.ticker, 'i'))) { | ||
@@ -542,0 +541,0 @@ var base = assetToBase(amount); |
@@ -537,7 +537,6 @@ 'use strict'; | ||
// RUNE | ||
var regex = new RegExp(AssetRune67C.ticker + "|" + AssetRuneB1A.ticker + "|" + AssetRuneNative.ticker, 'i'); | ||
if (ticker.match(regex)) | ||
if (ticker === RUNE_TICKER) | ||
return exports.AssetCurrencySymbol.RUNE + " " + amountFormatted; | ||
// BTC | ||
regex = new RegExp(AssetBTC.ticker, 'i'); | ||
var regex = new RegExp(AssetBTC.ticker, 'i'); | ||
if (ticker.match(new RegExp(AssetBTC.ticker, 'i'))) { | ||
@@ -544,0 +543,0 @@ var base = assetToBase(amount); |
{ | ||
"name": "@xchainjs/xchain-util", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Helper utilities for XChain clients", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130304
1614