Skip to content

Commit

Permalink
update uniV2 scenario to new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Dec 12, 2024
1 parent ac8f299 commit 39ebbd2
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 39ebbd2

Please sign in to comment.