graphprotocol / mission-control-indexer

Technical indexer documentation and infrastructure templates for the Mission Control testnet
21 stars 4 forks source link

Add a global variable setting for the cost models #158

Open Pete-LunaNova opened 3 years ago

Pete-LunaNova commented 3 years ago

There are plenty of circumstances where the cost models for each of the subgraphs indexed may reference the same variable, eg. usd_to_grt or system_under_load.

It would be useful if there was just one place we needed to update these variables on a regular basis (eg. via a script run every x minutes) rather than have to apply them individually to each subgraph.

koen84 commented 3 years ago

The system_under_load might be different per nodeid ? Would be an interesting distinction if that link can be made automatically.