Skip to content

Commit

Permalink
fix order of args when calling get_pragma_median_price within get_cur…
Browse files Browse the repository at this point in the history
…rent_price
  • Loading branch information
nikanor.goreglyad committed Jul 29, 2024
1 parent 9fd4f8e commit 2e230b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amm_core/oracles/agg.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod OracleAgg {
if last_price_block_num == curr_block {
last_price
} else {
let price_pragma = get_pragma_median_price(base_token_addr, quote_token_addr);
let price_pragma = get_pragma_median_price(quote_token_addr, base_token_addr);
write_latest_oracle_price(base_token_addr, quote_token_addr, price_pragma, curr_block);

price_pragma
Expand Down

0 comments on commit 2e230b5

Please sign in to comment.