Skip to content

Pools v0.5

Compare
Choose a tag to compare
@lusd lusd released this 18 Mar 10:12
· 18 commits to master since this release
9f9c329

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.