Skip to content

Commit

Permalink
lqt(dex): more explicit invariant message
Browse files Browse the repository at this point in the history
Co-authored-by: Lúcás Meier <[email protected]>
Signed-off-by: Erwan Or <[email protected]>
  • Loading branch information
erwanor and cronokirby authored Jan 29, 2025
1 parent 1eef064 commit 756a6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/component/dex/src/component/lqt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})
Expand Down

0 comments on commit 756a6bf

Please sign in to comment.