Skip to content

Commit

Permalink
Merge pull request #60 from flashbots/univ2-fix
Browse files Browse the repository at this point in the history
update uniV2 scenario to new spec
  • Loading branch information
zeroXbrock authored Dec 12, 2024
2 parents ac8f299 + 39ebbd2 commit a7b361d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scenarios/univ2ConfigTest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ args = [
"10000000000000"
]

### the spam step will be repeated
## SPAM ########################################################################

[[spam]]

[spam.tx]
kind = "uniswap_v2"
to = "{uniRouterV2}"
from = "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
Expand All @@ -153,13 +156,11 @@ args = [
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"10000000000000" # TODO: implement block-aware variables for dynamic values like `deadline`. For now, this is just so far in the future I won't be alive to hear about it reverting.
]

[[spam.fuzz]]
param = "amountIn"
min = "1"
max = "100000000000000000"
fuzz = [{param = "amountIn", min = "1", max = "100000000000000000"}]

[[spam]]

[spam.tx]
kind = "uniswap_v2"
to = "{uniRouterV2}"
from = "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"
Expand All @@ -172,7 +173,7 @@ args = [
"10000000000000"
]

[[spam.fuzz]]
[[spam.tx.fuzz]]
param = "amountIn"
min = "100000"
max = "10000000000"

0 comments on commit a7b361d

Please sign in to comment.