tso-data-models
Advanced tools
Comparing version 1.0.144 to 1.0.145
@@ -11,7 +11,8 @@ "use strict"; | ||
this.assetIndex = assetIndex; | ||
var initialFormat = Number.parseFloat(price.toString()).toFixed(5); | ||
if (initialFormat.includes('.')) { | ||
initialFormat = initialFormat.replace('.', ''); | ||
} | ||
this.price = ethers_1.BigNumber.from(initialFormat); | ||
// let initialFormat: string = Number.parseFloat(price.toString()).toFixed(5); | ||
// if (initialFormat.includes('.')) { | ||
// initialFormat = initialFormat.replace('.', '') | ||
// } | ||
// this.price = BigNumber.from(initialFormat); | ||
this.price = ethers_1.BigNumber.from(price); | ||
this.random = this.getRandomInt(); | ||
@@ -18,0 +19,0 @@ } |
{ | ||
"name": "tso-data-models", | ||
"version": "1.0.144", | ||
"version": "1.0.145", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -19,7 +19,8 @@ import { BigNumber, ethers } from "ethers"; | ||
this.assetIndex = assetIndex; | ||
let initialFormat: string = Number.parseFloat(price.toString()).toFixed(5); | ||
if (initialFormat.includes('.')) { | ||
initialFormat = initialFormat.replace('.', '') | ||
} | ||
this.price = BigNumber.from(initialFormat); | ||
// let initialFormat: string = Number.parseFloat(price.toString()).toFixed(5); | ||
// if (initialFormat.includes('.')) { | ||
// initialFormat = initialFormat.replace('.', '') | ||
// } | ||
// this.price = BigNumber.from(initialFormat); | ||
this.price = BigNumber.from(price); | ||
this.random = this.getRandomInt(); | ||
@@ -26,0 +27,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
2186
147799