Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJepsen committed Apr 19, 2024
1 parent 2a50abb commit ad00a7f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion kit/src/behaviors/allocate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ where
P: PoolType + Debug + Send + Sync + 'static,
E: Debug + Send + Sync + 'static,
{
async fn process(&mut self, event: E) -> Result<ControlFlow> {
async fn process(&mut self, _event: E) -> Result<ControlFlow> {
Ok(ControlFlow::Halt)
}
}
4 changes: 1 addition & 3 deletions kit/src/behaviors/creator.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use futures_util::StreamExt;

use super::*;
use crate::behaviors::{deploy::DeploymentData, token::Response};
use crate::behaviors::token::Response;

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Create<S: State> {
Expand Down
2 changes: 1 addition & 1 deletion kit/src/behaviors/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use bindings::{
use super::*;
use crate::bindings::{
n_token_geometric_mean::NTokenGeometricMean,
n_token_geometric_mean_solver::{self, NTokenGeometricMeanSolver},
n_token_geometric_mean_solver::NTokenGeometricMeanSolver,
};

#[derive(Debug, Deserialize, Serialize)]
Expand Down
2 changes: 1 addition & 1 deletion kit/src/behaviors/swap.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use self::{
bindings::erc20::ERC20, creator::PoolCreation, deploy::DeploymentData, pool::InputToken,
bindings::erc20::ERC20, creator::PoolCreation, pool::InputToken,
update::UpdatoorQuerry,
};
use super::*;
Expand Down
3 changes: 0 additions & 3 deletions kit/src/behaviors/update.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use std::collections::VecDeque;

use bindings::idfmm::IDFMM;
use tracing::warn;

use super::*;
use crate::bindings::erc20::ERC20;

Expand Down
3 changes: 1 addition & 2 deletions kit/src/pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::sync::Arc;

use arbiter_core::middleware::ArbiterMiddleware;
use ethers::{abi::AbiDecode, types::Bytes};
use futures_util::future::err;
use serde::{Deserialize, Serialize};
use tracing::warn;

Expand Down Expand Up @@ -266,7 +265,7 @@ impl<P: PoolType> Pool<P> {
match tx_result {
Ok(_) => {}
Err(er) => match er.as_middleware_error().unwrap() {
arbiter_core::errors::ArbiterCoreError::ExecutionRevert { gas_used, output } => {
arbiter_core::errors::ArbiterCoreError::ExecutionRevert { gas_used: _, output } => {
let error = dfmm::DFMMErrors::decode(output);
warn!("Contract reverted with error: {:?}", error);
}
Expand Down

0 comments on commit ad00a7f

Please sign in to comment.