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

@psychedelic/sonic-js

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@psychedelic/sonic-js - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

docs/interfaces/Liquidity.GetMinimalAmountInParams.md

2

dist/declarations/did/token.js

@@ -40,3 +40,3 @@ "use strict";

approve: IDL.Func([IDL.Principal, IDL.Nat], [Result], []),
balanceOf: IDL.Func([IDL.Principal], [IDL.Nat], ['query']),
balanceOf: IDL.Func([IDL.Principal], [IDL.Nat], []),
decimals: IDL.Func([], [IDL.Nat8], ['query']),

@@ -43,0 +43,0 @@ getAllowanceSize: IDL.Func([], [IDL.Nat64], ['query']),

@@ -14,2 +14,3 @@ # Class: Liquidity

- [getMinimalAmountIn](Liquidity.md#getminimalamountin)
- [getOppositeAmount](Liquidity.md#getoppositeamount)

@@ -41,2 +42,20 @@ - [getPosition](Liquidity.md#getposition)

### getMinimalAmountIn
▸ `Static` **getMinimalAmountIn**(`params`): `BigNumber`
Calculate the minimal amount to be input for a given token of a pair.
#### Parameters
| Name | Type |
| :------ | :------ |
| `params` | [`GetMinimalAmountInParams`](../interfaces/Liquidity.GetMinimalAmountInParams.md) |
#### Returns
`BigNumber`
___
### getOppositeAmount

@@ -43,0 +62,0 @@

@@ -9,2 +9,3 @@ # Namespace: Liquidity

- [GetMinimalAmountInParams](../interfaces/Liquidity.GetMinimalAmountInParams.md)
- [GetOppositeAmountParams](../interfaces/Liquidity.GetOppositeAmountParams.md)

@@ -11,0 +12,0 @@ - [GetPositionParams](../interfaces/Liquidity.GetPositionParams.md)

{
"name": "@psychedelic/sonic-js",
"version": "0.3.1",
"version": "0.3.2",
"description": "Sonic-js is a library that holds an API for interacting with Swap Canister",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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