Releases: pontem-network/liquidswap-sdk
Releases · pontem-network/liquidswap-sdk
Release v
Pools v0.5
In order to work with pools version v.0.5 it is necessary to provide two additional parameters to 'networkOptions' in SDK init:
resourceAccountV05 - resource account for v.0.5 pools
moduleAccountV05 - module account for v.0.5 pools
Also added new parameter 'version' for functions like calculateRates, getAmountIn, getAmountOut, and createSwapTransactionPayload.
'version' could be only 0 or 0.5 as number;
This parameter optional. if not provided - it treats like version is 0.
If provided version 0.5 - resourceAccountV05 and moduleAccountV05 will be used for calculations of reserves and curves.
v0.5.7
v0.5.4
v0.5.3
What's Changed
- Updated readme.
- Added usage examples with Aptos SDK.
- Updated Swap module.
- Added Liquidity and Pools modules.
- Added methods to calculate getAmountOut and getAmountIn, which are shortcuts for calculateRateAndMinReceivedLP.
- Renamed typeArguments to type_arguments.
Full Changelog: v0.4.0...v0.5.3
v0.4.0
- Amount fields in function parameters
calculateRates()
andcreateSwapTransactionPayload()
are refactored. Now this functions accepts numbers without decimal part. (Accepts number | Decimal) calculateRates()
returns string value without decimal part.- Updated Readme and expanded with more examples.
- More test cases with more examples. Covered errors cases.
- Added useful
convertValueToDecimal()
function with import from main.ts