Function prepareBorrowTransactions

  • Returns a group transaction to borrow.

    Returns

    Transaction[] borrow group transaction

    Parameters

    • tokenPair: TokenPair

      token pair to use for borrow

    • oracle: lendV1.Oracle

      oracle price source

    • senderAddr: string

      account address for the sender

    • escrowAddr: string

      escrow address that will hold the collateral

    • collateralAmount: number | bigint

      collateral amount to send

    • borrowAmount: undefined | number | bigint

      borrow amount to receive (max amount if undefined)

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    Returns Transaction[]

Generated using TypeDoc