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

    Type Alias PositionValue

    One valued hub-asset leg of an account.

    type PositionValue = {
        amountBase: string;
        amountShort: number;
        asset: string;
        decimals: number;
        entryLiquidationBonusBps: number;
        entryLiquidationFeesBps: number;
        entryLiquidationThresholdBps: number;
        entryLtvBps: number;
        gateUsdWad: string;
        hubId: number;
        indexRay: string;
        liquidationWeightedUsdWad: string;
        liveDataUsed: boolean;
        ltvWeightedUsdWad: string;
        scaledRay: string;
        side: PositionSide;
        usd: number;
        usdPrice: number;
        usdPriceWad: string;
        usdWad: string;
    }
    Index

    Properties

    amountBase: string

    Token base units: supply = unscale_supply_floor, borrow = unscale_borrow_ceil.

    amountShort: number
    asset: string
    decimals: number
    entryLiquidationBonusBps: number
    entryLiquidationFeesBps: number
    entryLiquidationThresholdBps: number
    entryLtvBps: number
    gateUsdWad: string

    USD (WAD) the risk gates weight: supply = position_value_floor; borrow = same as usdWad.

    hubId: number
    indexRay: string

    Index (RAY) applied to the shares.

    liquidationWeightedUsdWad: string

    Supplies: floor(gateUsd * entryThreshold / BPS); borrows: "0".

    liveDataUsed: boolean

    Both the index and the price came from an accepted live-state row.

    ltvWeightedUsdWad: string

    Supplies: floor(gateUsd * min(entryLtv, entryThreshold) / BPS); borrows: "0".

    scaledRay: string

    Scaled shares (RAY) the valuation started from.

    usd: number
    usdPrice: number
    usdPriceWad: string

    USD price per whole token (WAD) applied.

    usdWad: string

    USD (WAD): supply = half-up position_value (feeds total_collateral); borrow = position_value_ceil (risk debt).