npm install thorn-protocol-sdk
import {StableSwapInfo} from "thorn-protocol-sdk"
enum StableSwapType {
TwoPool = 2,
ThreePool = 3
}
const poolInfo= new StableSwapInfo(
_rpc: string,
_chainId: number,
type: StableSwapType,
)
const userShare= await poolInfo.getUserShareAmount(
poolAddress: address of a pool,
userAddress: address of a user
)
const userCurrentAmounts= await poolInfo.getUserCurrentAmounts(
poolAddress: address of a pool,
userAddress: address of a user
)