Function BorrowersApiAxiosParamCreator

  • BorrowersApi - axios parameter creator

    Parameters

    Returns {
        borrower: ((asset, address, height?, options?) => Promise<RequestArgs>);
        borrowers: ((asset, height?, options?) => Promise<RequestArgs>);
    }

    • borrower: ((asset, address, height?, options?) => Promise<RequestArgs>)

      Returns the borrower position given the pool and address.

      Throws

        • (asset, address, height?, options?): Promise<RequestArgs>
        • Parameters

          • asset: string
          • address: string
          • Optional height: number

            optional block height, defaults to current tip

          • Optional options: AxiosRequestConfig<any> = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • borrowers: ((asset, height?, options?) => Promise<RequestArgs>)

      Returns all borrowers for the given pool.

      Throws

        • (asset, height?, options?): Promise<RequestArgs>
        • Parameters

          • asset: string
          • Optional height: number

            optional block height, defaults to current tip

          • Optional options: AxiosRequestConfig<any> = {}

            Override http request option.

          Returns Promise<RequestArgs>

    Export

Generated using TypeDoc