Skip to content

Commit

Permalink
fix: update name of chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya-Solulab committed Nov 20, 2024
1 parent e392022 commit e1eabbd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
OPERATE_HOME = Path.cwd() / ".optimus"
DEFAULT_MIN_SWAP_AMOUNT_THRESHOLD = 15
DEFAULT_CHAINS = ["Optimism","Base","Mode"]
DEFAULT_STAKING_CHAIN = "mode"
DEFAULT_STAKING_CHAIN = "Mode"
DEFAULT_FEE_HISTORY_PERCENTILE = 50
CHAIN_ID_TO_METADATA = {
10: {
Expand Down Expand Up @@ -400,11 +400,14 @@ def configure_local_config() -> OptimusConfig:
if chain not in allowed_chains:
allowed_chains.append(chain)

allowed_chains = [chain.lower() for chain in allowed_chains]
target_investment_chains = [chain.lower() for chain in target_investment_chains]

if optimus_config.principal_chain not in allowed_chains:
allowed_chains.append(optimus_config.principal_chain)

optimus_config.allowed_chains = [chain.lower() for chain in allowed_chains]
optimus_config.target_investment_chains = [chain.lower() for chain in target_investment_chains]
optimus_config.allowed_chains = allowed_chains
optimus_config.target_investment_chains = target_investment_chains

if optimus_config.allowed_chains is None:
optimus_config.allowed_chains = [optimus_config.principal_chain]
Expand Down

0 comments on commit e1eabbd

Please sign in to comment.