From 756a6bf57936637dddb4e7501a484b5ad0341e0e Mon Sep 17 00:00:00 2001 From: Erwan Or Date: Wed, 29 Jan 2025 13:42:47 -0500 Subject: [PATCH] lqt(dex): more explicit invariant message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lúcás Meier Signed-off-by: Erwan Or --- crates/core/component/dex/src/component/lqt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/component/dex/src/component/lqt.rs b/crates/core/component/dex/src/component/lqt.rs index 7f921a067f..1b26ef93d2 100644 --- a/crates/core/component/dex/src/component/lqt.rs +++ b/crates/core/component/dex/src/component/lqt.rs @@ -56,7 +56,7 @@ pub trait LqtRead: StateRead { .map(|res| { res.map(|(raw_entry, _)| { let (asset, volume, position_id) = - lqt::v1::lp::by_volume::parse_key(&raw_entry).expect("TODO"); + lqt::v1::lp::by_volume::parse_key(&raw_entry).expect("internal invariant failed: failed to parse state key for lqt::v1::lp::by_volume"); (asset, position_id, volume) }) })