Skip to content

Chi-AnTai/Sandwich-Attack-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sandwich Attack example

To complete the task, you should

  1. npm install
  2. Paste your Alchemy key in hardhat.config.ts.
  3. Go to test/sandwich.ts.
  4. Look into the victim tx, figure out how much USDC the victim should receive without sandwich attack.
  5. Calculate the victim tx's slippage tolerance based on previous answer.
  6. Calculate how much ETH can you frontrun the victim tx.
  7. Paste your answer as frontrunAmount and run the command below
FORK=true npx hardhat test test/sandwich.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published