Skip to content

Commit

Permalink
pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Oct 25, 2024
1 parent ed84304 commit 3cefefa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/ain-ocean/src/indexer/loan_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ pub fn invalidate_active_price(services: &Arc<Services>, block: &BlockContext) -
.flatten()
.collect::<Vec<_>>();

for pt in price_tickers {
let token = pt.0 .0;
let currency = pt.0 .1;
for ((token, currency), _) in price_tickers {
services
.oracle_price_active
.by_id
Expand Down
2 changes: 1 addition & 1 deletion lib/ain-ocean/src/indexer/oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl Index for UpdateOracle {
fn map_price_aggregated(
services: &Arc<Services>,
context: &Context,
pair: &(String, String),
pair: &(Token, Currency),
) -> Result<Option<OraclePriceAggregated>> {
let (token, currency) = pair;
let oracle_repo = &services.oracle_token_currency;
Expand Down

0 comments on commit 3cefefa

Please sign in to comment.