Documentation
    Preparing search index...

    Function getSimulatedHealthFactor

    • Calculates the health factor after performing lending operations

      This function simulates the health factor that would result after performing a series of supply, withdraw, borrow, or repay operations.

      Parameters

      • address: string

        User wallet address or account cap

      • identifier: AssetIdentifier

        Asset identifier

      • operations: { amount: number; type: PoolOperator }[]

        Array of operations to simulate

      • Optionaloptions: Partial<SuiClientOption & EnvOption>

        Options for client and environment

      Returns Promise<number>

      Promise - Projected health factor