Skip to content

Commit

Permalink
pindexer: actually use min liquidity in indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
cronokirby committed Feb 5, 2025
1 parent 2988b3e commit f97b5aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/bin/pindexer/src/dex_ex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ mod summary {
SELECT asset_start as asset, price
FROM dex_ex_pairs_summary
WHERE asset_end = $1
AND liquidity >= $2
UNION VALUES ($1, 1.0)
),
converted_pairs_summary AS (
Expand Down
2 changes: 1 addition & 1 deletion crates/bin/pindexer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub use cometindex::{AppView, ContextualizedEvent, Indexer, PgPool, PgTransactio

mod indexer_ext;
pub use indexer_ext::IndexerExt;
use penumbra_asset::asset;
use penumbra_sdk_asset::asset;
pub mod block;
pub mod dex_ex;
pub mod ibc;
Expand Down

0 comments on commit f97b5aa

Please sign in to comment.