tso-data-models
Advanced tools
Comparing version 1.0.125 to 1.0.127
@@ -11,4 +11,3 @@ export declare class AssetSubmission { | ||
formatPrice(): void; | ||
isInt(n: any): boolean; | ||
} | ||
//# sourceMappingURL=AssetSubmission.d.ts.map |
@@ -33,3 +33,5 @@ "use strict"; | ||
var rightSide; | ||
if (this.isInt(this.price)) { | ||
if (this.price === 0) { | ||
} | ||
else if (Number.isInteger(this.price)) { | ||
this.price = parseInt(this.price + "00000"); | ||
@@ -39,3 +41,2 @@ } | ||
if ((afterDecimal === null || afterDecimal === void 0 ? void 0 : afterDecimal.length) > 5) { | ||
console.log('666 '); | ||
rightSide = afterDecimal === null || afterDecimal === void 0 ? void 0 : afterDecimal.substring(0, 5); | ||
@@ -56,5 +57,2 @@ } | ||
}; | ||
AssetSubmission.prototype.isInt = function (n) { | ||
return n % 1 === 0; | ||
}; | ||
return AssetSubmission; | ||
@@ -61,0 +59,0 @@ }()); |
{ | ||
"name": "tso-data-models", | ||
"version": "1.0.125", | ||
"version": "1.0.127", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -41,9 +41,9 @@ import { BigNumber, ethers } from "ethers"; | ||
let rightSide; | ||
if (this.isInt(this.price)) { | ||
if (this.price === 0) { | ||
} else if (Number.isInteger(this.price)) { | ||
this.price = parseInt(`${this.price}00000`); | ||
} else { | ||
if (afterDecimal?.length > 5) { | ||
console.log('666 ') | ||
rightSide = afterDecimal?.substring(0, 5); | ||
@@ -63,5 +63,3 @@ } else if (afterDecimal.length < 5) { | ||
isInt(n) { | ||
return n % 1 === 0; | ||
} | ||
} |
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
147660
2185