tso-data-models
Advanced tools
Comparing version 1.0.135 to 1.0.136
@@ -9,3 +9,2 @@ "use strict"; | ||
this.offsetAmount = offsetAmount; | ||
this.getEstimatedPrice(); | ||
} | ||
@@ -12,0 +11,0 @@ PriceEstimator.prototype.getEstimatedPrice = function () { |
@@ -11,4 +11,5 @@ "use strict"; | ||
this.assetIndex = assetIndex; | ||
this.price = ethers_1.BigNumber.from((price).toFixed(5)); | ||
this.random = Math.floor(Math.random() * 100000); | ||
var initialFormat = Number.parseFloat(price.toString()).toFixed(5); | ||
this.price = ethers_1.BigNumber.from(initialFormat); | ||
this.random = Math.floor(Math.random()); | ||
} | ||
@@ -15,0 +16,0 @@ AssetSubmission.prototype.saveObject = function () { |
{ | ||
"name": "tso-data-models", | ||
"version": "1.0.135", | ||
"version": "1.0.136", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -14,3 +14,2 @@ import DataPoint from "./DataPoint"; | ||
this.offsetAmount = offsetAmount; | ||
this.getEstimatedPrice(); | ||
} | ||
@@ -17,0 +16,0 @@ |
@@ -18,4 +18,5 @@ import { BigNumber, ethers } from "ethers"; | ||
this.assetIndex = assetIndex; | ||
this.price = BigNumber.from((price).toFixed(5)); | ||
this.random = Math.floor(Math.random() * 100000); | ||
const initialFormat: string = Number.parseFloat(price.toString()).toFixed(5); | ||
this.price = BigNumber.from(initialFormat); | ||
this.random = Math.floor(Math.random()); | ||
} | ||
@@ -22,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
144401