Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@saberhq/stableswap-sdk

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saberhq/stableswap-sdk - npm Package Compare versions

Comparing version 1.0.0-alpha.26 to 1.0.0-alpha.27

8

lib/calculator/amounts.js

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

const swapFee = new token_math_1.Fraction(dy_0.toString(), 1).subtract(dy);
const withdrawFee = dy.multiply(fees.withdraw);
const withdrawFee = dy.multiply(fees.withdraw.asFraction);
// admin fees
const adminSwapFee = swapFee.multiply(fees.adminTrade);
const adminWithdrawFee = withdrawFee.multiply(fees.adminWithdraw);
const adminSwapFee = swapFee.multiply(fees.adminTrade.asFraction);
const adminWithdrawFee = withdrawFee.multiply(fees.adminWithdraw.asFraction);
// final LP fees

@@ -148,3 +148,3 @@ const lpSwapFee = adminSwapFee.subtract(swapFee);

const baseAmount = share.multiply(amount.raw);
const fee = baseAmount.multiply(fees.withdraw);
const fee = baseAmount.multiply(fees.withdraw.asFraction);
return [

@@ -151,0 +151,0 @@ new spl_token_1.TokenAmount(amount.token, jsbi_1.default.BigInt(baseAmount.subtract(fee).toFixed(0))),

@@ -1,3 +0,2 @@

export * from "./bigint";
export * from "./exchange";
//# sourceMappingURL=index.d.ts.map

@@ -13,4 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./bigint"), exports);
__exportStar(require("./exchange"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@saberhq/stableswap-sdk",
"version": "1.0.0-alpha.26",
"version": "1.0.0-alpha.27",
"main": "lib/index.js",

@@ -24,6 +24,6 @@ "types": "lib/index.d.ts",

"devDependencies": {
"@babel/preset-env": "^7.14.4",
"@babel/preset-env": "^7.14.5",
"@babel/preset-typescript": "^7.13.0",
"@solana/spl-token": "^0.1.5",
"@solana/web3.js": "^1.17.0",
"@solana/web3.js": "^1.18.0",
"@types/bs58": "^4.0.1",

@@ -52,6 +52,6 @@ "@types/jest": "^26.0.23",

"dependencies": {
"@saberhq/spl-token": "^0.1.0-beta.4",
"@saberhq/spl-token": "^0.1.0-beta.7",
"@types/bn.js": "^5.1.0",
"@types/yargs": "^17.0.0",
"@ubeswap/token-math": "^0.1.0",
"@ubeswap/token-math": "^0.1.3",
"bn.js": "^5.2.0",

@@ -58,0 +58,0 @@ "buffer-layout": "^1.2.1",

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