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

@nftperp/sdk

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nftperp/sdk - npm Package Compare versions

Comparing version 3.5.1 to 3.6.0

2

config/index.js

@@ -25,3 +25,3 @@ "use strict";

BETA: {
apiBaseUrl: "https://api2.nftperp.xyz",
apiBaseUrl: "https://api3.nftperp.xyz",
chainId: 42161,

@@ -28,0 +28,0 @@ ch: "0x6fc05B7DFe545cd488E9D47d56CFaCA88F69A2e1",

{
"name": "@nftperp/sdk",
"version": "3.5.1",
"version": "3.6.0",
"description": "SDK for nftperp protocol",

@@ -5,0 +5,0 @@ "main": "sdk.js",

@@ -17,3 +17,3 @@ "use strict";

const toWei = (value, decimals = 18) => {
return (0, exports.big)(value).mul(Math.pow(10, decimals));
return (0, exports.big)(value).mul(Math.pow(10, decimals)).round(0, 0); // wei cannot be in decimal
};

@@ -20,0 +20,0 @@ exports.toWei = toWei;

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