Skip to content

Implement auto-compounding for claimable funding fees #520

Description

@abayomicornelius

Problem

Users must manually claim funding fees. Small accruals stay unclaimed wasting storage.

Why it matters

Gas costs of claiming small amounts often exceed the fee value.

Suggested fix

Add auto-claim option that automatically adds funding credits to position collateral.

Acceptance criteria

  • Add auto_compound flag to position
  • Apply funding credits to collateral automatically
  • Add opt-in/opt-out function
  • Test compounding math

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