Socket
Socket
Sign inDemoInstall

tso-data-models

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tso-data-models - npm Package Compare versions

Comparing version 1.0.135 to 1.0.136

1

lib/models/data-point/PriceEstimator.js

@@ -9,3 +9,2 @@ "use strict";

this.offsetAmount = offsetAmount;
this.getEstimatedPrice();
}

@@ -12,0 +11,0 @@ PriceEstimator.prototype.getEstimatedPrice = function () {

5

lib/models/epoch/AssetSubmission.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc