Skip to content

Commit

Permalink
addresses comment #399 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewcasale committed Mar 28, 2024
1 parent 85e1feb commit dea43d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions fastlane_bot/tests/deterministic/dtest_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
)
ETH_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
SUPPORTED_EXCHANGES = ["uniswap_v2", "uniswap_v3", "pancakeswap_v2", "pancakeswap_v3"]
CARBON_V1_FORKS = ["carbon_v1"] # See usage in dtest_tx_helper.py if developing multi-carbon tenderly tests
BNT_ADDRESS = "0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C"
USDC_ADDRESS = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
USDT_ADDRESS = "0xdAC17F958D2ee523a2206206994597C13D831ec7"
Expand Down
2 changes: 1 addition & 1 deletion fastlane_bot/tests/deterministic/dtest_tx_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def clean_tx_data(tx_data: Dict) -> Dict:
return tx_data

for trade in tx_data["trades"]:
if trade["exchange"] == "carbon_v1" and "cid0" in trade:
if trade["exchange"] in constants.CARBON_V1_FORKS and "cid0" in trade:
del trade["cid0"]
return tx_data

Expand Down

0 comments on commit dea43d9

Please sign in to comment.