Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zarboq committed Oct 27, 2023
1 parent 2dd8243 commit c46264f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/oracle/interfaces/account.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@ trait IAccount<TContractState> {
fn get_name(self: @TContractState) -> felt252;
fn get_guardian_escape_attempts(self: @TContractState) -> u32;
fn get_owner_escape_attempts(self: @TContractState) -> u32;

}
}
7 changes: 2 additions & 5 deletions src/oracle/oracle_utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ use satoru::event::event_emitter::{IEventEmitterDispatcher, IEventEmitterDispatc
use satoru::bank::bank::{IBankDispatcher, IBankDispatcherTrait};
use satoru::market::market::{Market};
use satoru::oracle::{
oracle::{SetPricesCache, SetPricesInnerCache},
error::OracleError,
oracle::{SetPricesCache, SetPricesInnerCache}, error::OracleError,
interfaces::account::{IAccountDispatcher, IAccountDispatcherTrait}
};
use satoru::price::price::{Price};
use satoru::utils::{
store_arrays::{
StoreContractAddressArray, StorePriceArray, StoreU128Array, StoreFelt252Array
},
store_arrays::{StoreContractAddressArray, StorePriceArray, StoreU128Array, StoreFelt252Array},
arrays::{are_lte_u64, get_uncompacted_value, get_uncompacted_value_u64},
bits::{BITMASK_8, BITMASK_16, BITMASK_32, BITMASK_64}
};
Expand Down
2 changes: 1 addition & 1 deletion src/utils/arrays.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -343,4 +343,4 @@ fn get_uncompacted_value_u64(
let value = (slot_bits / calc::pow_u64(2, offset)) & bit_mask;

value
}
}
2 changes: 1 addition & 1 deletion src/utils/calc.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ fn pow_u64(x: u64, n: usize) -> u64 {
} else {
pow_u64(x * x, n / 2)
}
}
}

0 comments on commit c46264f

Please sign in to comment.