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.144 to 1.0.145

11

lib/models/epoch/AssetSubmission.js

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

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