tso-data-models
Advanced tools
Comparing version 1.0.136 to 1.0.137
@@ -12,2 +12,5 @@ "use strict"; | ||
var initialFormat = Number.parseFloat(price.toString()).toFixed(5); | ||
if (initialFormat.includes('.')) { | ||
initialFormat = initialFormat.replace('.', ''); | ||
} | ||
this.price = ethers_1.BigNumber.from(initialFormat); | ||
@@ -14,0 +17,0 @@ this.random = Math.floor(Math.random()); |
{ | ||
"name": "tso-data-models", | ||
"version": "1.0.136", | ||
"version": "1.0.137", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -18,3 +18,7 @@ import { BigNumber, ethers } from "ethers"; | ||
this.assetIndex = assetIndex; | ||
const initialFormat: string = Number.parseFloat(price.toString()).toFixed(5); | ||
let initialFormat: string = Number.parseFloat(price.toString()).toFixed(5); | ||
if (initialFormat.includes('.')) { | ||
initialFormat = initialFormat.replace('.', '') | ||
} | ||
this.price = BigNumber.from(initialFormat); | ||
@@ -21,0 +25,0 @@ this.random = Math.floor(Math.random()); |
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
144730
2128