Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Art3miX committed Dec 2, 2024
1 parent 388601c commit 13c1a94
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions contracts/auction/price_oracle/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,8 @@ pub fn execute(
let avg_price = get_avg_price(local_prices);

// Save price
PRICES.save(
deps.storage,
pair.clone(),
&avg_price,
)?;

PRICES.save(deps.storage, pair.clone(), &avg_price)?;

let event = ValenceEvent::OracleUpdatePrice {
pair,
price: price.price,
Expand Down Expand Up @@ -263,7 +259,11 @@ fn can_update_price_from_auction(
true
}

fn update_local_price(deps: DepsMut, pair: Pair, price: Price) -> Result<VecDeque<Price>, cosmwasm_std::StdError> {
fn update_local_price(
deps: DepsMut,
pair: Pair,
price: Price,
) -> Result<VecDeque<Price>, cosmwasm_std::StdError> {
// Update the oracle local prices and add last price
let mut local_prices = match LOCAL_PRICES.load(deps.storage, pair.clone()) {
Ok(prices) => prices,
Expand Down

0 comments on commit 13c1a94

Please sign in to comment.