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.
The contract has an
InvoiceStatsstruct defined in types.rs but no public function exposes it. Add aget_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.