mouseless-eth/rusty-sando

[huffsando: REVERT] frontrun

Closed this issue · 2 comments

e7172 commented

Ive try to run this code using:
cargo run --release --features debug

And always get:
[huffsando: REVERT] frontrun

Sometimes with this error also:
[ERROR] error receiving event: channel lagged by X

The issue is duplicated because mouseless-eth closed it, I don't understand why.

Any idea?

Thanks,

e7172 commented

Again closing witouth leaving an explanation..

Again closing witouth leaving an explanation..

Worth double checking that the pk in ur dotenv is correlated to the address in the huff sando contract (if not then all frontruns auto revert because the simulated tx wont pass the auth checks).

If this isnt the case, the issue can be quickly diagnosed by using forge (with cheat codes) to quickly recreate the failed simulated sando (frontrun + victim + backrun) and by inspecting the output call trace / stepping through debugger