diff --git a/src/encoding/evm/group_swaps.rs b/src/encoding/evm/group_swaps.rs index 1d00574..d78ccff 100644 --- a/src/encoding/evm/group_swaps.rs +++ b/src/encoding/evm/group_swaps.rs @@ -106,20 +106,14 @@ mod tests { let dai = Bytes::from_str("0x6b175474e89094c44da98b954eedeac495271d0f").unwrap(); let swap_weth_wbtc = SwapBuilder::new( - ProtocolComponent { - protocol_system: "uniswap_v4".to_string(), - ..Default::default() - }, + ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() }, weth.clone(), wbtc.clone(), ) .build(); let swap_wbtc_usdc = SwapBuilder::new( - ProtocolComponent { - protocol_system: "uniswap_v4".to_string(), - ..Default::default() - }, + ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() }, wbtc.clone(), usdc.clone(), ) @@ -171,29 +165,20 @@ mod tests { let dai = Bytes::from_str("0x6b175474e89094c44da98b954eedeac495271d0f").unwrap(); let swap_wbtc_weth = SwapBuilder::new( - ProtocolComponent { - protocol_system: "uniswap_v4".to_string(), - ..Default::default() - }, + ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() }, wbtc.clone(), weth.clone(), ) .build(); let swap_weth_usdc = SwapBuilder::new( - ProtocolComponent { - protocol_system: "uniswap_v4".to_string(), - ..Default::default() - }, + ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() }, weth.clone(), usdc.clone(), ) .split(0.5f64) .build(); let swap_weth_dai = SwapBuilder::new( - ProtocolComponent { - protocol_system: "uniswap_v4".to_string(), - ..Default::default() - }, + ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() }, weth.clone(), dai.clone(), ) @@ -202,10 +187,7 @@ mod tests { // 0 to signify "the remainder of the WETH value". It should still be very close to 50% let swap_dai_usdc = SwapBuilder::new( - ProtocolComponent { - protocol_system: "uniswap_v4".to_string(), - ..Default::default() - }, + ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() }, dai.clone(), usdc.clone(), ) @@ -281,19 +263,13 @@ mod tests { ) .build(); let swap_weth_dai = SwapBuilder::new( - ProtocolComponent { - protocol_system: "uniswap_v4".to_string(), - ..Default::default() - }, + ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() }, weth.clone(), dai.clone(), ) .build(); let swap_dai_usdc = SwapBuilder::new( - ProtocolComponent { - protocol_system: "uniswap_v4".to_string(), - ..Default::default() - }, + ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() }, dai.clone(), usdc.clone(), )