Honor mint filters in TVL and recognise payment failures #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/analytics-filters-attribution"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
/api/tvlignoredfrom_url/to_url:Filters::where_snapshotsemitted only date bounds, so the filtered TVL still carried every mint.lightning payment failed, but CDK surfaces wallet melt failures asPayment failed. On the live data, 117 of 122 errors fell through toOther/ categoryunknown, making the error donut and blamed-mint categories uninformative.Fix
Filters::where_snapshotsnow restricts the joinedmints.url, sotvl_seriesrespects the selected mints. The caller must joinmintsasm(the snapshot table only storesmint_id); documented on the method.(lightning )?payment (failed|unsuccessful); these errors now classify asMint: payment failed/ categorymint.Tests
analytics::tests::tvl_respects_mint_filters- afrom_url-filtered TVL only carries the selected mint.filters::tests::snapshot_url_filters_reference_the_joined_mints_alias.classify::tests::classifies_cdk_payment_failures- coverspaying the invoice - wallet error: Payment failed.Full suite:
cargo test --no-default-features --features=ssr-> 98 passed;cargo clippy --no-default-features --features=ssrandcargo fmt --checkclean.Pull request closed