@coinify/currency
Advanced tools
Comparing version 1.3.8 to 1.3.9
{ | ||
"name": "@coinify/currency", | ||
"version": "1.3.8", | ||
"version": "1.3.9", | ||
"description": "Helper functions for managing amounts in different currencies", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -38,2 +38,3 @@ { | ||
"CLP": { "name":"Chilean Peso", "decimals":2, "crypto":false }, | ||
"COMP": { "name":"COMPOUND", "decimals":12, "crypto":true }, | ||
"CNY": { "name":"Chinese Yuan", "decimals":2, "crypto":false }, | ||
@@ -106,2 +107,3 @@ "COP": { "name":"Colombian Peso", "decimals":2, "crypto":false }, | ||
"MKD": { "name":"Macedonian Denar", "decimals":2, "crypto":false }, | ||
"MKR": { "name":"MAKER", "decimals":12, "crypto":true }, | ||
"MMK": { "name":"Myanma Kyat", "decimals":2, "crypto":false }, | ||
@@ -173,2 +175,3 @@ "MNT": { "name":"Mongolian Tugrik", "decimals":2, "crypto":false }, | ||
"USDT20": { "name":"Tether ERC-20", "decimals":8, "crypto":true }, | ||
"UNI": { "name":"UNISWAP", "decimals":12, "crypto":true }, | ||
"UYU": { "name":"Uruguayan Peso", "decimals":2, "crypto":false }, | ||
@@ -175,0 +178,0 @@ "UZS": { "name":"Uzbekistan Som", "decimals":2, "crypto":false }, |
@@ -1,2 +0,2 @@ | ||
const _ = require('lodash'); | ||
const round = require('lodash/round'); | ||
@@ -34,3 +34,3 @@ const constants = require('./currencies.json'); | ||
const decimals = getDecimalsForCurrency(currency); | ||
return _.round(amount / Math.pow(10, decimals), decimals); | ||
return round(amount / Math.pow(10, decimals), decimals); | ||
} | ||
@@ -37,0 +37,0 @@ |
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
25857
345