Skip to content

Add position health factor calculation to reader contract #519

Description

@abayomicornelius

Problem

Users must manually calculate their liquidation risk. No convenient view function for health factor.

Why it matters

Poor UX leads to unexpected liquidations and user frustration.

Suggested fix

Add get_position_health_factor view returning 0-100% health score where <100% means liquidatable.

Acceptance criteria

  • Add health factor calculation
  • Include all fees in calculation
  • Return user-friendly percentage
  • Add to reader contract views

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions