graphprotocol / allocation-optimizer

Agents and algorithms for optimizing Indexer decision problems.
MIT License
14 stars 13 forks source link

[Bug] Actions queue not being sent to the agent #53

Open trader-payne opened 3 months ago

trader-payne commented 3 months ago

As title suggests, the actions queue isn't propagated to the indexer agent

root@77ce1a92c513:~/scripts# graph indexer actions get   
✔ Processed input parameters
✔ Actions query returned
No actions found
root@77ce1a92c513:~/scripts# cd ...
bash: cd: ...: No such file or directory
root@77ce1a92c513:~/scripts# cd ..
root@77ce1a92c513:~# cd optimizer/
root@77ce1a92c513:~/optimizer# cd bin/
root@77ce1a92c513:~/optimizer/bin# nano config.toml 
root@77ce1a92c513:~/optimizer/bin# ./AllocationOpt config.toml 
[ Info: Querying data from https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum
[ Info: Writing table to ./indexer.csv
[ Info: Writing table to ./allocation.csv
[ Info: Writing table to ./subgraph.csv
[ Info: Writing table to ./network.csv
[ Info: Optimizing
[ Info: Writing results report
[ Info: Executing best strategy
root@77ce1a92c513:~/optimizer/bin# graph indexer actions get
✔ Processed input parameters
✔ Actions query returned
No actions found
root@77ce1a92c513:~/optimizer/bin# 

Config:

id = "0xaA988dcb035518bc0e20082a3148a5d3dFD1776D"
network_subgraph_endpoint = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum"
protocol_network = "arbitrum"
max_allocations = 10
whitelist = []
blacklist = []
frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 1
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "rules"
opt_mode = "optimal"
syncing_networks = ["mainnet", "gnosis", "arbitrum-one", "matic", "fantom", "celo", "avalanche"]
indexer_url = "http://indexer-agent-arbititan:8000"

The report does indeed have the actions, but they're simply not propagated to the agent