Skip to content

Commit

Permalink
nit: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ts0yu authored Jul 31, 2024
1 parent 9775265 commit 990b473
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
6 changes: 1 addition & 5 deletions src/arbitrageur.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

use super::*;

#[derive(Debug, Default, Deserialize, Serialize, Clone)]
Expand Down Expand Up @@ -149,10 +148,7 @@ impl Behavior<Message> for Arbitrageur {

let id = fetcher.toId(fetcher_key).call().await?.poolId;

let get_slot0_return = fetcher
.getSlot0(*manager.address(), id)
.call()
.await?;
let get_slot0_return = fetcher.getSlot0(*manager.address(), id).call().await?;

let pricex192 = get_slot0_return.sqrtPriceX96.pow(U256::from(2));
let two_pow_192 = U256::from(1u128) << 192;
Expand Down
1 change: 0 additions & 1 deletion src/bindings/fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ interface Fetcher {
pub mod Fetcher {
use alloy::sol_types as alloy_sol_types;


/// The creation / init bytecode of the contract.
///
/// ```text
Expand Down
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use std::{cmp::Ordering, fmt::Debug, sync::Arc};

use alloy::{
primitives::{Address, Bytes, Uint, U256},
};
use alloy::primitives::{Address, Bytes, Uint, U256};
use anyhow::Result;
use futures::stream::StreamExt;
use octane::{
Expand All @@ -23,8 +21,8 @@ use crate::{
},
},
deployer::{DeploymentResponse, PoolParams},
price_changer::{Signal},
types::process::{StochasticProcess},
price_changer::Signal,
types::process::StochasticProcess,
};

pub mod arbitrageur;
Expand Down

0 comments on commit 990b473

Please sign in to comment.