• Returns information regarding the given loans. Must pass the token pair info, collateral pool info and conversion that you are using.

    Returns

    Promise<{ loans: LoanInfo[], nextToken?: string}> object containing loan infos and next token

    Parameters

    • indexerClient: default

      Algorand indexer client to query

    • tokenPair: TokenPair

      token pair of the loan

    • tokenPairInfo: TokenPairInfo

      token pair info

    • collateralPoolInfo: lendV1.PoolInfo

      collateral pool info

    • borrowPoolInfo: lendV1.PoolInfo

      borrow pool info

    • conversionRate: ConversionRate

      conversion rate from collateral to borrow asset

    • Optional nextToken: string

      token for retrieving next escrows

    • Optional round: number

      results for specified round

    Returns Promise<{
        loans: lendV1.LoanInfo[];
        nextToken?: string;
    }>

Generated using TypeDoc