Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LiquidityModule

Implements

  • IModule

Index

Constructors

Properties

_sdk: SDK

Accessors

Methods

  • calculateOutputBurn(params: ICalculateBurnLiquidityParams): Promise<undefined | { withoutSlippage: { x: string; y: string }; x: string; y: string }>
  • Parameters

    • params: ICalculateBurnLiquidityParams

    Returns Promise<undefined | { withoutSlippage: { x: string; y: string }; x: string; y: string }>

  • calculateRateAndMinReceivedLP(params: ICalculateRatesParams): Promise<{ rate: string; receiveLp: string }>
  • calculateSupply(params: ICalculateSupplyParams): string
  • checkPoolExistence(params: TGetResourcesPayload): Promise<boolean>
  • createAddLiquidityPayload(params: TCreateLiquidityPoolTXPayloadParams): Promise<TxPayloadCallFunction>
  • createBurnLiquidityPayload(params: ICreateBurnLiquidityPayload): Promise<{ arguments: string[]; function: string; type: string; type_arguments: string[] }>
  • Parameters

    • params: ICreateBurnLiquidityPayload

    Returns Promise<{ arguments: string[]; function: string; type: string; type_arguments: string[] }>

  • getAmountIn(params: Omit<ICalculateRatesParams, "interactiveToken">): Promise<string>
  • getAmountOut(params: Omit<ICalculateRatesParams, "interactiveToken">): Promise<string>
  • getLiquidityPoolResource(params: TGetResourcesPayload): Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource> }>
  • Parameters

    • params: TGetResourcesPayload

    Returns Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource> }>

  • getLiquiditySupplyResource(params: TGetResourcesPayload): Promise<{ liquidityPoolResource: undefined | AptosResource<AptosCoinInfoResource> }>
  • Parameters

    • params: TGetResourcesPayload

    Returns Promise<{ liquidityPoolResource: undefined | AptosResource<AptosCoinInfoResource> }>

Generated using TypeDoc