New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@equilab/marginly-sdk

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equilab/marginly-sdk - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

6

dist/marginlyPoolMath.js

@@ -137,4 +137,6 @@ "use strict";

const { whole, fraction } = extractFractionAndWhole(price);
const baseDecimalsNext = baseDecimal.sub(Math.max(fraction?.length || 0, 0));
const priceNext = ethers_1.BigNumber.from(`${whole}${fraction || ''}`);
const baseDecimalsNext = fraction
? ethers_1.BigNumber.from(Math.min(baseDecimal.sub(quoteDecimal).toNumber(), fraction.length))
: baseDecimal;
const priceNext = ethers_1.BigNumber.from(fraction ? `${whole}${fraction.slice(0, baseDecimalsNext.toNumber())}` : price);
const power = baseDecimalsNext.sub(quoteDecimal);

@@ -141,0 +143,0 @@ return priceNext.mul(consts_1.FP96_ONE).div(ethers_1.BigNumber.from(10).pow(power));

{
"name": "@equilab/marginly-sdk",
"version": "1.0.10",
"version": "1.0.11",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

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