@psychedelic/sonic-js
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
609332
175