Skip to content

Commit 13c1a94

Browse files
committed
fmt
1 parent 388601c commit 13c1a94

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

contracts/auction/price_oracle/src/contract.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,8 @@ pub fn execute(
139139
let avg_price = get_avg_price(local_prices);
140140

141141
// Save price
142-
PRICES.save(
143-
deps.storage,
144-
pair.clone(),
145-
&avg_price,
146-
)?;
147-
142+
PRICES.save(deps.storage, pair.clone(), &avg_price)?;
143+
148144
let event = ValenceEvent::OracleUpdatePrice {
149145
pair,
150146
price: price.price,
@@ -263,7 +259,11 @@ fn can_update_price_from_auction(
263259
true
264260
}
265261

266-
fn update_local_price(deps: DepsMut, pair: Pair, price: Price) -> Result<VecDeque<Price>, cosmwasm_std::StdError> {
262+
fn update_local_price(
263+
deps: DepsMut,
264+
pair: Pair,
265+
price: Price,
266+
) -> Result<VecDeque<Price>, cosmwasm_std::StdError> {
267267
// Update the oracle local prices and add last price
268268
let mut local_prices = match LOCAL_PRICES.load(deps.storage, pair.clone()) {
269269
Ok(prices) => prices,

0 commit comments

Comments
 (0)