Skip to content

Commit

Permalink
Merge pull request #662 from bancorprotocol/remove-sei-and-tri-complete
Browse files Browse the repository at this point in the history
removed Sei and multi_triangle_complete - temporarily
  • Loading branch information
zavelevsky authored May 22, 2024
2 parents 719c406 + 4f0b06c commit 4124c58
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 164 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export ETH_PRIVATE_KEY_BE_CAREFUL="0x123-USE-YOUR-OWN-PRIVATE-KEY-HERE"
export WEB3_FANTOM="FANTOM-API-KEY-HERE" // "public" can be used in place of a paid API key
export WEB3_MANTLE="MANTLE-API-KEY-HERE"
export WEB3_LINEA="LINEA-API-KEY-HERE" //
export WEB3_SEI="SEI-API-KEY-HERE" //

#******** For Development - not required to run bot ********#
export ETHERSCAN_TOKEN="ONLY_REQUIRED_IN_DEV"
Expand Down
2 changes: 0 additions & 2 deletions fastlane_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
from .modes.pairwise_multi_pol import FindArbitrageMultiPairwisePol
from .modes.pairwise_single import FindArbitrageSinglePairwise
from .modes.triangle_multi import ArbitrageFinderTriangleMulti
from .modes.triangle_multi_complete import ArbitrageFinderTriangleMultiComplete
from .modes.triangle_single import ArbitrageFinderTriangleSingle
from .modes.triangle_bancor_v3_two_hop import ArbitrageFinderTriangleBancor3TwoHop
from .utils import num_format
Expand Down Expand Up @@ -110,7 +109,6 @@ class CarbonBot:
"b3_two_hop": ArbitrageFinderTriangleBancor3TwoHop,
"multi_pairwise_pol": FindArbitrageMultiPairwisePol,
"multi_pairwise_all": FindArbitrageMultiPairwiseAll,
"multi_triangle_complete": ArbitrageFinderTriangleMultiComplete,
}

class NoArbAvailable(Exception):
Expand Down
1 change: 0 additions & 1 deletion fastlane_bot/config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@
"fantom": 5000,
"mantle": 0,
"linea": 0,
"sei": 0,
}
41 changes: 1 addition & 40 deletions fastlane_bot/config/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ class ConfigNetwork(ConfigBase):
NETWORK_FANTOM = S.NETWORK_FANTOM
NETWORK_MANTLE = S.NETWORK_MANTLE
NETWORK_LINEA = S.NETWORK_LINEA
NETWORK_SEI = S.NETWORK_SEI

# FLAGS
#######################################################################################
Expand Down Expand Up @@ -317,9 +316,7 @@ def new(cls, network=None):
elif network == cls.NETWORK_MANTLE:
return _ConfigNetworkMantle(_direct=False)
elif network == cls.NETWORK_LINEA:
return _ConfigNetworkLinea(_direct=False)
elif network == cls.NETWORK_SEI:
return _ConfigNetworkSei(_direct=False)
return _ConfigNetworkLinea(_direct=False)
elif network == cls.NETWORK_TENDERLY:
return _ConfigNetworkTenderly(_direct=False)
else:
Expand Down Expand Up @@ -785,42 +782,6 @@ class _ConfigNetworkLinea(ConfigNetwork):
# Add any exchanges unique to the chain here
CHAIN_SPECIFIC_EXCHANGES = []

class _ConfigNetworkSei(ConfigNetwork):
"""
Fastlane bot config -- network [Base Mainnet]
"""

NETWORK = S.NETWORK_SEI
NETWORK_ID = "1" # TODO
NETWORK_NAME = "sei"
DEFAULT_PROVIDER = S.PROVIDER_ALCHEMY
RPC_ENDPOINT = "https://evm-rpc.arctic-1.seinetwork.io/" # TODO currently Sei devnet
WEB3_ALCHEMY_PROJECT_ID = os.environ.get("WEB3_SEI")

network_df = get_multichain_addresses(network=NETWORK_NAME)
FASTLANE_CONTRACT_ADDRESS = "0xC7Dd38e64822108446872c5C2105308058c5C55C" #TODO - UPDATE WITH Mainnet
MULTICALL_CONTRACT_ADDRESS = "0xcA11bde05977b3631167028862bE2a173976CA11"

CARBON_CONTROLLER_ADDRESS = "0x59f21012B2E9BA67ce6a7605E74F945D0D4C84EA" #TODO - UPDATE WITH Mainnet
CARBON_CONTROLLER_VOUCHER = "0xe4816658ad10bF215053C533cceAe3f59e1f1087" #TODO - UPDATE WITH Mainnet

NATIVE_GAS_TOKEN_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
WRAPPED_GAS_TOKEN_ADDRESS = "0x57eE725BEeB991c70c53f9642f36755EC6eb2139" # TODO confirm for Mainnet
NATIVE_GAS_TOKEN_SYMBOL = "SEI"
WRAPPED_GAS_TOKEN_SYMBOL = "WSEI"
STABLECOIN_ADDRESS = "0xace5f7Ea93439Af39b46d2748fA1aC19951c8d7C" #TODO USDC on devnet

IS_INJECT_POA_MIDDLEWARE = False
# Balancer
BALANCER_VAULT_ADDRESS = "0x7ccBebeb88696f9c8b061f1112Bb970158e29cA5" # # TODO Jellyswap on devnet

CHAIN_FLASHLOAN_TOKENS = {
"0x57eE725BEeB991c70c53f9642f36755EC6eb2139": "WSEI", #TODO confirm for Mainnet
"0xace5f7Ea93439Af39b46d2748fA1aC19951c8d7C": "USDC", #TODO confirm for Mainnet
}
# Add any exchanges unique to the chain here
CHAIN_SPECIFIC_EXCHANGES = []

class _ConfigNetworkTenderly(ConfigNetwork):
"""
Fastlane bot config -- network [Ethereum Tenderly]
Expand Down
1 change: 0 additions & 1 deletion fastlane_bot/config/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
NETWORK_CANTO = "canto"
NETWORK_FANTOM = "fantom"
NETWORK_LINEA = "linea"
NETWORK_SEI = "sei"
NETWORK_MANTLE = "mantle"
NETWORK_SCROLL = "scroll"
NETWORK_BSC = "binance_smart_chain"
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions fastlane_bot/data/blockchain_data/sei/static_pool_data.csv

This file was deleted.

9 changes: 0 additions & 9 deletions fastlane_bot/data/blockchain_data/sei/tokens.csv

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions fastlane_bot/data/multichain_addresses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,3 @@ sushiswap_v3,thundercore,uniswap_v3,0xc35DADB65012eC5796536bD9864eD8773aBc74C4,0
pancakeswap_v3,zkevm,uniswap_v3,0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865,0x1b81D678ffb9C0263b24A97847620C99d213eB14,,,
pancakeswap_v3,zksync,uniswap_v3,0x1BB72E0CbbEA93c08f535fc7856E0338D7F7a8aB,0xD70C70AD87aa8D45b8D59600342FB3AEe76E3c68,,,
xfai_v0,linea,solidly_v2,0xa5136eAd459F0E61C99Cec70fe8F5C24cF3ecA26,0xD538be6e9026C13D130C9e17d509E69C8Bb0eF33,,222864,
carbon_v1,sei,carbon_v1,0x59f21012B2E9BA67ce6a7605E74F945D0D4C84EA,0x59f21012B2E9BA67ce6a7605E74F945D0D4C84EA,,17658678,
dragonswap,sei,uniswap_v2,0x5D370a6189F89603FaB67e9C68383e63F7B6A262,0x2346d3A6fb18Ff3ae590Ea31d9e41E6AB8c9f5EB,0.003,1008775,
jellyswap,sei,balancer,BALANCER_VAULT_ADDRESS,0x7ccBebeb88696f9c8b061f1112Bb970158e29cA5,0,222832,
uniswap_v3,sei,uniswap_v3,0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000,,1,
83 changes: 0 additions & 83 deletions fastlane_bot/modes/triangle_multi_complete.py

This file was deleted.

5 changes: 2 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,7 @@ def run(mgr, args, tenderly_uri=None) -> None:
"multi_triangle",
"b3_two_hop",
"multi_pairwise_pol",
"multi_pairwise_all",
"multi_triangle_complete"
"multi_pairwise_all"
],
)
parser.add_argument(
Expand Down Expand Up @@ -699,7 +698,7 @@ def run(mgr, args, tenderly_uri=None) -> None:
"--blockchain",
default="ethereum",
help="A blockchain from the list. Blockchains not in this list do not have a deployed Fast Lane contract and are not supported.",
choices=["ethereum", "coinbase_base", "fantom", "mantle", "linea", "sei"],
choices=["ethereum", "coinbase_base", "fantom", "mantle", "linea"],
)
parser.add_argument(
"--pool_data_update_frequency",
Expand Down
10 changes: 1 addition & 9 deletions run_blockchain_terraformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ async def gather():
FANTOM = "fantom"
MANTLE = "mantle"
LINEA = "linea"
SEI = "sei"

coingecko_network_map = {
"ethereum": "ethereum",
Expand All @@ -67,7 +66,6 @@ async def gather():
"cosmos": "cosmos",
"kava": "kava",
"mantle": "mantle",
"sei": "sei",
}

BLOCK_CHUNK_SIZE_MAP = {
Expand All @@ -80,7 +78,6 @@ async def gather():
"fantom": 5000,
"mantle": 0,
"linea": 0,
"sei": 0,
}

ALCHEMY_KEY_DICT = {
Expand All @@ -93,7 +90,6 @@ async def gather():
"fantom": "WEB3_FANTOM",
"mantle": "WEB3_MANTLE",
"linea": "WEB3_LINEA",
"sei": "WEB3_SEI",
}

ALCHEMY_RPC_LIST = {
Expand All @@ -106,7 +102,6 @@ async def gather():
"fantom": "https://fantom.blockpi.network/v1/rpc/",
"mantle": "https://rpc.mantle.xyz/",
"linea": "https://rpc.linea.build/",
"sei": "https://evm-rpc.arctic-1.seinetwork.io/", # TODO update with mainnet
}

BALANCER_SUBGRAPH_CHAIN_URL = {
Expand All @@ -117,9 +112,7 @@ async def gather():
"optimism": "https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-optimism-v2",
"coinbase_base": "https://api.studio.thegraph.com/query/24660/balancer-base-v2/version/latest",
"avalanche": "https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-avalanche-v2",
"fantom": "https://api.thegraph.com/subgraphs/name/beethovenxfi/beethovenx",
"sei": "https://thegraph.dev.mvpworkshop.co/subgraphs/name/jelly" # TODO verify this for mainnet

"fantom": "https://api.thegraph.com/subgraphs/name/beethovenxfi/beethovenx"
}

BANCOR_V2_NAME = "bancor_v2"
Expand Down Expand Up @@ -1082,4 +1075,3 @@ def terraform_blockchain(network_name: str):
#terraform_blockchain(network_name=FANTOM)
#terraform_blockchain(network_name=MANTLE)
#terraform_blockchain(network_name=LINEA)
#terraform_blockchain(network_name=SEI)

0 comments on commit 4124c58

Please sign in to comment.