Skip to content

Add get_invoice_stats helper returning funded/total/completion_bps #10

Description

@MarcusDavidG

The contract has an InvoiceStats struct defined in types.rs but no public function exposes it. Add a get_invoice_stats(invoice_id) read-only function that returns funded amount, total amount, payer count, and completion percentage in basis points. Useful for dashboard UIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmediumStandard feature or bug fix (150 pts)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions