Skip to content

Commit

Permalink
fixup: auto format Rust code
Browse files Browse the repository at this point in the history
  • Loading branch information
oak-code-formatter committed Oct 12, 2023
1 parent b43bc0a commit 5dff442
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pallets/automation-price/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ pub mod pallet {
#[derive(Debug, Encode, Eq, PartialEq, Decode, TypeInfo, Clone)]
pub enum TaskCondition {
TargetPriceMatched {
// record the state of the asset at the time the task is triggered
// when debugging we can use this to reason about why did the task is trigger
chain: ChainName,
// record the state of the asset at the time the task is triggered
// when debugging we can use this to reason about why did the task is trigger
chain: ChainName,
exchange: Exchange,
asset_pair: AssetPair,
price: u128,
Expand Down Expand Up @@ -1123,9 +1123,9 @@ pub mod pallet {
if price_matched_target_condtion {
return (
Some(TaskCondition::TargetPriceMatched {
chain: task.chain.clone(),
exchange: task.exchange.clone(),
asset_pair: task.asset_pair.clone(),
chain: task.chain.clone(),
exchange: task.exchange.clone(),
asset_pair: task.asset_pair.clone(),
price: this_task_asset_price.amount,
}),
consumed_weight,
Expand Down

0 comments on commit 5dff442

Please sign in to comment.