Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Apr 25, 2024
1 parent 6243d64 commit 5607344
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/uniswap_v2_usdc_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ async fn main() -> anyhow::Result<()> {
let pair_acc_info = alloydb.basic(usdc_weth_pair_address).unwrap().unwrap();
cache_db.insert_account_info(usdc_weth_pair_address, pair_acc_info);

let pair_slots = [6, 7, 8, 12];

for i in pair_slots {
for i in [6, 7, 8, 12] {
let storage_slot = U256::from(i);
let value = alloydb
.storage(usdc_weth_pair_address, storage_slot)
Expand All @@ -124,7 +122,7 @@ async fn main() -> anyhow::Result<()> {
// transfer WETH to USDC-WETH pair
transfer(account, usdc_weth_pair, amount_in, weth, &mut cache_db).await?;

// exeucte low-level swap without using UniswapV2 router
// execute low-level swap without using UniswapV2 router
swap(
account,
usdc_weth_pair,
Expand Down

0 comments on commit 5607344

Please sign in to comment.