mento-protocol / simulation

Apache License 2.0
1 stars 1 forks source link

Oracle does not work for multiple pairs #138

Closed bowd closed 2 years ago

bowd commented 2 years ago

"Currently only the celo_usd oracle is configured. When I try to add more pairs to the config in system_parameters.py it fails. Also it's weird that oracle config is a list of list and dicts inside the nested list, not just a list of dicts. Is that intended? \n\n\noracles=[\n [\n OracleConfig(count=1,\n type=OracleType.SINGLE_SOURCE,\n aggregation=None,\n delay=10,\n price_threshold=0.02,\n reporting_interval=6,\n pairs={\n Pair(CryptoAsset.CELO, Fiat.USD)\n })\n ]\n ]\n"