Skip to content

Commit

Permalink
Merge pull request #10 from valory-xyz/feat/add-metrics
Browse files Browse the repository at this point in the history
add risk metrics
  • Loading branch information
Divya-Solulab authored Jan 7, 2025
2 parents d0e26bc + a701be1 commit 76bc33c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
}
ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"
DEFAULT_MAX_FEE = 20000000
use_default_max_fee = True
use_default_max_fee = False

class Strategy(Enum):
"""Strategy type"""
Expand Down Expand Up @@ -400,7 +400,7 @@ def configure_local_config() -> OptimusConfig:
print()

if optimus_config.selected_strategies is None:
optimus_config.selected_strategies = [Strategy.MerklPoolSearchStrategy.value, Strategy.BalancerPoolSearchStrategy.value, Strategy.SturdyLendingStrategy.value]
optimus_config.selected_strategies = [Strategy.BalancerPoolSearchStrategy.value, Strategy.SturdyLendingStrategy.value]

optimus_config.store()
return optimus_config
Expand Down Expand Up @@ -436,7 +436,7 @@ def get_service_template(config: OptimusConfig) -> ServiceTemplate:
home_chain_id = "34443"
return ServiceTemplate({
"name": "Optimus",
"hash": "bafybeihqho73he6mirkodg4ubom6ngf2nkgebhmxr435yxpsxgsthu5nvy",
"hash": "bafybeiecfjuj3s34wsn2tavzblkvqow43oj3ljmtfueikkyql7r5e3gl7m",

"description": "Optimus",
"image": "https://gateway.autonolas.tech/ipfs/bafybeiaakdeconw7j5z76fgghfdjmsr6tzejotxcwnvmp3nroaw3glgyve",
Expand Down
1 change: 0 additions & 1 deletion wallet_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def get_usdc_balance(web3, address, chain_name):

def get_olas_balance(web3, address, chain_name):
try:
olas_address = OLAS_ADDRESS[chain_name]
olas_contract = web3.eth.contract(address=OLAS_ADDRESS, abi=TOKEN_ABI)
balance = olas_contract.functions.balanceOf(address).call()
return Decimal(balance) / Decimal(1e18) # OLAS has 18 decimal places
Expand Down

0 comments on commit 76bc33c

Please sign in to comment.