Documentation

    FlashLoanContract class for managing flash loans.

    Index

    Constructors

    Methods

    • Parameters

      • poolKey: string

        The key to identify the pool

      • borrowAmount: number

        The amount to borrow

      Returns (
          tx: Transaction,
      ) => readonly [
          { $kind: "NestedResult"; NestedResult: [number, number] },
          { $kind: "NestedResult"; NestedResult: [number, number] },
      ]

      A function that takes a Transaction object

      Borrow base asset from the pool

    • Parameters

      • poolKey: string

        The key to identify the pool

      • borrowAmount: number

        The amount to borrow

      Returns (
          tx: Transaction,
      ) => readonly [
          { $kind: "NestedResult"; NestedResult: [number, number] },
          { $kind: "NestedResult"; NestedResult: [number, number] },
      ]

      A function that takes a Transaction object

      Borrow quote asset from the pool

    MMNEPVFCICPMFPCPTTAAATR