Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coinify/currency

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coinify/currency - npm Package Compare versions

Comparing version 1.3.8 to 1.3.9

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc