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.136 to 1.0.137

3

lib/models/epoch/AssetSubmission.js

@@ -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());

2

package.json
{
"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

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