Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SwapModule

Implements

  • IModule

Index

Constructors

Properties

_sdk: SDK

Accessors

Methods

  • buildSwapTransaction(params: CreateSwapTXPayloadParams): 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>

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

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

    Returns Decimal

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

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

    Returns Decimal

Generated using TypeDoc