Skip to content

Commit 2559faf

Browse files
Merge pull request #376 from propeller-heads/cluster-test/dc/increase-eth-overwrite
fix: Increase ETH balance overwrite
2 parents 147db81 + 45e3bea commit 2559faf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tycho-integration-test/src/swap_simulation.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ async fn setup_user_overwrites(
254254
let mut overwrites = AddressHashMap::default();
255255
let mut metadata = tenderly::OverwriteMetadata::new();
256256
let token_address = Address::from_slice(&solution.given_token[..20]);
257-
// If given token is ETH, add the given amount + 1 ETH for gas
257+
// If given token is ETH, add the given amount + 10 ETH for gas
258258
if solution.given_token == Bytes::zero(20) {
259259
let eth_balance = biguint_to_u256(&solution.given_amount) +
260-
U256::from_str("1000000000000000000").unwrap(); // given_amount + 1 ETH for gas
260+
U256::from_str("10000000000000000000").unwrap(); // given_amount + 1 ETH for gas
261261
overwrites.insert(user_address, AccountOverride::default().with_balance(eth_balance));
262262
// if the given token is not ETH, do balance and allowance slots overwrites
263263
} else {
@@ -364,8 +364,8 @@ async fn setup_user_overwrites(
364364
);
365365
}
366366

367-
// Add 1 ETH for gas for non-ETH token swaps
368-
let eth_balance = U256::from_str("1000000000000000000").unwrap(); // 1 ETH for gas
367+
// Add 10 ETH for gas for non-ETH token swaps
368+
let eth_balance = U256::from_str("10000000000000000000").unwrap(); // 1 ETH for gas
369369
overwrites.insert(user_address, AccountOverride::default().with_balance(eth_balance));
370370
info!("Setting ETH balance override for user {user_address}: {eth_balance} (for gas)");
371371
}

0 commit comments

Comments
 (0)