chore: nightly

This commit is contained in:
TAMARA LIPOWSKI
2025-08-21 17:42:36 -04:00
parent 2c38cf84fc
commit ebcc6c6cf0

View File

@@ -106,20 +106,14 @@ mod tests {
let dai = Bytes::from_str("0x6b175474e89094c44da98b954eedeac495271d0f").unwrap(); let dai = Bytes::from_str("0x6b175474e89094c44da98b954eedeac495271d0f").unwrap();
let swap_weth_wbtc = SwapBuilder::new( let swap_weth_wbtc = SwapBuilder::new(
ProtocolComponent { ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() },
protocol_system: "uniswap_v4".to_string(),
..Default::default()
},
weth.clone(), weth.clone(),
wbtc.clone(), wbtc.clone(),
) )
.build(); .build();
let swap_wbtc_usdc = SwapBuilder::new( let swap_wbtc_usdc = SwapBuilder::new(
ProtocolComponent { ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() },
protocol_system: "uniswap_v4".to_string(),
..Default::default()
},
wbtc.clone(), wbtc.clone(),
usdc.clone(), usdc.clone(),
) )
@@ -171,29 +165,20 @@ mod tests {
let dai = Bytes::from_str("0x6b175474e89094c44da98b954eedeac495271d0f").unwrap(); let dai = Bytes::from_str("0x6b175474e89094c44da98b954eedeac495271d0f").unwrap();
let swap_wbtc_weth = SwapBuilder::new( let swap_wbtc_weth = SwapBuilder::new(
ProtocolComponent { ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() },
protocol_system: "uniswap_v4".to_string(),
..Default::default()
},
wbtc.clone(), wbtc.clone(),
weth.clone(), weth.clone(),
) )
.build(); .build();
let swap_weth_usdc = SwapBuilder::new( let swap_weth_usdc = SwapBuilder::new(
ProtocolComponent { ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() },
protocol_system: "uniswap_v4".to_string(),
..Default::default()
},
weth.clone(), weth.clone(),
usdc.clone(), usdc.clone(),
) )
.split(0.5f64) .split(0.5f64)
.build(); .build();
let swap_weth_dai = SwapBuilder::new( let swap_weth_dai = SwapBuilder::new(
ProtocolComponent { ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() },
protocol_system: "uniswap_v4".to_string(),
..Default::default()
},
weth.clone(), weth.clone(),
dai.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% // 0 to signify "the remainder of the WETH value". It should still be very close to 50%
let swap_dai_usdc = SwapBuilder::new( let swap_dai_usdc = SwapBuilder::new(
ProtocolComponent { ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() },
protocol_system: "uniswap_v4".to_string(),
..Default::default()
},
dai.clone(), dai.clone(),
usdc.clone(), usdc.clone(),
) )
@@ -281,19 +263,13 @@ mod tests {
) )
.build(); .build();
let swap_weth_dai = SwapBuilder::new( let swap_weth_dai = SwapBuilder::new(
ProtocolComponent { ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() },
protocol_system: "uniswap_v4".to_string(),
..Default::default()
},
weth.clone(), weth.clone(),
dai.clone(), dai.clone(),
) )
.build(); .build();
let swap_dai_usdc = SwapBuilder::new( let swap_dai_usdc = SwapBuilder::new(
ProtocolComponent { ProtocolComponent { protocol_system: "uniswap_v4".to_string(), ..Default::default() },
protocol_system: "uniswap_v4".to_string(),
..Default::default()
},
dai.clone(), dai.clone(),
usdc.clone(), usdc.clone(),
) )