@xoxno/sdk-js
    Preparing search index...

    Type Alias AccountRisk

    type AccountRisk = {
        accountId: string;
        availableBorrowUsd: number;
        availableBorrowUsdWad: string;
        borrowLimitUsd: number;
        borrowLimitUsdWad: string;
        borrows: PositionValue[];
        healthFactor: number | null;
        healthFactorWad: string | null;
        healthPercent: number;
        isLiquidatable: boolean;
        liquidationWeightedCollateralUsd: number;
        liquidationWeightedCollateralUsdWad: string;
        liveDataValid: boolean;
        ltvWeightedCollateralUsd: number;
        ltvWeightedCollateralUsdWad: string;
        minBorrowCollateralUsd: number;
        minBorrowCollateralUsdWad: string;
        mode: number;
        owner: string;
        spokeId: number;
        supplies: PositionValue[];
        totalCollateralUsd: number;
        totalCollateralUsdWad: string;
        totalDebtUsd: number;
        totalDebtUsdWad: string;
    }
    Index

    Properties

    accountId: string
    availableBorrowUsd: number
    availableBorrowUsdWad: string

    max(0, borrowLimit - debt); 0 when ltv_collateral is below the min-collateral floor.

    borrowLimitUsd: number
    borrowLimitUsdWad: string

    Debt the LTV gate admits: ltv_collateral (require_post_pool_risk_gates).

    borrows: PositionValue[]
    healthFactor: number | null
    healthFactorWad: string | null

    Contract convention floor(weighted_collateral * WAD / debt); null when debt-free (the contract returns i128::MAX).

    healthPercent: number

    UI convention: debt / threshold-weighted collateral × 100; higher is riskier, 0 without collateral.

    isLiquidatable: boolean

    Debt > 0 and health factor < 1 WAD.

    liquidationWeightedCollateralUsd: number
    liquidationWeightedCollateralUsdWad: string

    Floor-valued collateral weighted by stored liquidation threshold (weighted_collateral).

    liveDataValid: boolean

    liveState was supplied and every position was valued from an accepted live row.

    ltvWeightedCollateralUsd: number
    ltvWeightedCollateralUsdWad: string

    Floor-valued collateral weighted by stored min(LTV, threshold) (ltv_collateral).

    minBorrowCollateralUsd: number
    minBorrowCollateralUsdWad: string

    Floor applied while debt remains (get_min_borrow_collateral_usd).

    mode: number

    AccountPositionDto.positionMode: 0 normal, 1 multiply, 2 long, 3 short.

    owner: string
    spokeId: number
    supplies: PositionValue[]
    totalCollateralUsd: number
    totalCollateralUsdWad: string

    Unweighted collateral, half-up (AccountRiskTotals.total_collateral).

    totalDebtUsd: number
    totalDebtUsdWad: string

    Ceil-valued debt (total_debt).