Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PoolModule

Implements

  • IModule

Index

Constructors

Properties

_sdk: SDK

Accessors

Methods

  • buildAddLiquidTransAction(params: CreateAddLiquidTXPayloadParams): MoveCallTransaction
  • buildRemoveLiquidTransAction(params: CreateRemoveLiquidTXPayloadParams): MoveCallTransaction
  • calculateRate(interactiveToken: string, coin_x: string, coin_y: string, coin_in_value: number): Promise<Decimal>
  • Parameters

    • interactiveToken: string
    • coin_x: string
    • coin_y: string
    • coin_in_value: number

    Returns Promise<Decimal>

  • getCoinIn(coinOutVal: Decimal, reserveOutSize: Decimal, reserveInSize: Decimal): Decimal
  • Parameters

    • coinOutVal: Decimal
    • reserveOutSize: Decimal
    • reserveInSize: Decimal

    Returns Decimal

  • getCoinOut(coinInVal: Decimal, reserveInSize: Decimal, reserveOutSize: Decimal): Decimal
  • Parameters

    • coinInVal: Decimal
    • reserveInSize: Decimal
    • reserveOutSize: Decimal

    Returns Decimal

  • getPoolInfo(coinXType: string, coinYType: string): Promise<PoolInfo>
  • getPoolList(): Promise<Pool[]>

Generated using TypeDoc