delvtech / agent0

Analysis & simulation repo for Delv
https://agent0.readthedocs.io/en/latest/
Apache License 2.0
45 stars 18 forks source link

Rejected transaction with successful preview #1593

Closed slundqui closed 2 days ago

slundqui commented 2 days ago

There seems to be an issue with openLong on steth pools where a preview is successful, but the transaction itself is rejected with status == 0. To reproduce, run python scripts/local_fuzz_bots.py --steth --rng-seed 2405590. On this seed, here is the series of events that happened:

We expect the preview on block 36 to fail.

Note that while this was tested with an explicit seed, this issue persists in fuzz testing regardless of seed.

slundqui commented 2 days ago

Solved, the issue is that the preview on block 36 should be a preview to the pending block, as the preview technically is lagging behind a block.