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.6 to 1.0.7

8

dist/index.d.ts

@@ -1,4 +0,4 @@

export * from './marginlyPoolExecute';
export * from './marginlyPoolMath';
export * from './marginlyPosition';
export * from './consts';
export * from './marginlyPoolExecute.js';
export * from './marginlyPoolMath.js';
export * from './marginlyPosition.js';
export * from './consts.js';

@@ -17,5 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./marginlyPoolExecute"), exports);
__exportStar(require("./marginlyPoolMath"), exports);
__exportStar(require("./marginlyPosition"), exports);
__exportStar(require("./consts"), exports);
__exportStar(require("./marginlyPoolExecute.js"), exports);
__exportStar(require("./marginlyPoolMath.js"), exports);
__exportStar(require("./marginlyPosition.js"), exports);
__exportStar(require("./consts.js"), exports);

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

const ethers_1 = require("ethers");
const consts_1 = require("./consts");
const consts_js_1 = require("./consts.js");
/** @returns multiplication result with at least one of the multipliers in X96 format */
function mulFP96(multiplier, multiplicand) {
return multiplier.mul(multiplicand).div(consts_1.FP96_ONE);
return multiplier.mul(multiplicand).div(consts_js_1.FP96_ONE);
}

@@ -18,3 +18,3 @@ exports.mulFP96 = mulFP96;

function divFP96(numerator, denominator) {
return numerator.mul(consts_1.FP96_ONE).div(denominator);
return numerator.mul(consts_js_1.FP96_ONE).div(denominator);
}

@@ -106,3 +106,3 @@ exports.divFP96 = divFP96;

const power = baseDecimal.sub(quoteDecimal);
return priceX96.div(ethers_1.BigNumber.from(10).pow(power)).div(consts_1.FP96_ONE);
return priceX96.div(ethers_1.BigNumber.from(10).pow(power)).div(consts_js_1.FP96_ONE);
}

@@ -118,4 +118,4 @@ exports.convertPriceX96ToHuman = convertPriceX96ToHuman;

const power = baseDecimal.sub(quoteDecimal);
return price.mul(consts_1.FP96_ONE).mul(ethers_1.BigNumber.from(10).pow(power));
return price.mul(consts_js_1.FP96_ONE).mul(ethers_1.BigNumber.from(10).pow(power));
}
exports.convertPriceHumanToX96 = convertPriceHumanToX96;
{
"name": "@equilab/marginly-sdk",
"version": "1.0.6",
"version": "1.0.7",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"license": "GPL-2.0-or-later",

@@ -8,0 +7,0 @@ "files": [

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