Skip to content

Commit

Permalink
Update Carbon fork map creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesigh-3100 committed Nov 14, 2023
1 parent 6301e6f commit cca8aa0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fastlane_bot/config/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_fork_map(df: pd.DataFrame, fork_name: str) -> Dict:
fork = row[1][2]
contract_name = row[1][3]
address = row[1][4]
if fork in fork_name and contract_name == S.ROUTER_ADDRESS:
if fork in fork_name and contract_name in [S.ROUTER_ADDRESS, S.CARBON_CONTROLLER]:
fork_map[exchange_name] = address
return fork_map

Expand Down
1 change: 1 addition & 0 deletions fastlane_bot/config/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
FACTORY_ADDRESS = "FACTORY_ADDRESS"
ROUTER_ADDRESS = "ROUTER_ADDRESS"
CARBON_CONTROLLER_ADDRESS = "CARBON_CONTROLLER_ADDRESS"
CARBON_CONTROLLER = "CARBON_CONTROLLER"
BALANCER_VAULT_ADDRESS = "BALANCER_VAULT_ADDRESS"
UNISWAP_V2 = "uniswap_v2"
UNISWAP_V3 = "uniswap_v3"
Expand Down
3 changes: 3 additions & 0 deletions fastlane_bot/data/multichain_addresses.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
exchange_name,chain,fork,contract_name,address,fee,start_block
carbon_v1,ethereum,carbon_v1,CARBON_CONTROLLER,0xC537e898CD774e2dCBa3B14Ea6f34C93d5eA45e1,NA,17087375
carbon_v1,coinbase_base,carbon_v1,CARBON_CONTROLLER,0xfbF069Dbbf453C1ab23042083CFa980B3a672BbA,NA,17087375
graphene_v1,coinbase_base,carbon_v1,CARBON_CONTROLLER,0xfbF069Dbbf453C1ab23042083CFa980B3a672BbA,NA,17087375
uniswap_v2,ethereum,uniswap_v2,FACTORY_ADDRESS,0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f,0.003,10000835
uniswap_v2,ethereum,uniswap_v2,ROUTER_ADDRESS,0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D,0.003,
uniswap_v3,ethereum,uniswap_v3,FACTORY_ADDRESS,0x1F98431c8aD98523631AE4a59f267346ea31F984,NA,12369621
Expand Down

0 comments on commit cca8aa0

Please sign in to comment.