@nftperp/sdk
Advanced tools
Comparing version 3.5.1 to 3.6.0
@@ -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; |
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
1083617