Skip to content

borrowLendUserState: widen health states and healthFactor #101

Description

@joeblau

Problem

src/api/info/_methods/borrowLendUserState.ts:67,73 types health as only "healthy" and healthFactor as null only.

Upstream (nktkas#174) widened this to:

  • health: "healthy" | "atRisk" | "marketLiquidatable" | "backstopLiquidatable"
  • healthFactor: string | null

Fix

Widen the schema and add a parse test for each new health state.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-syncSync with latest Hyperliquid API surface/schemas

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions