mento-protocol / simulation

Apache License 2.0
1 stars 1 forks source link

Oracle does not work for multiple pairs #90

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? oracles=[ [ OracleConfig(count=1, type=OracleType.SINGLE_SOURCE, aggregation=None, delay=10, price_threshold=0.02, reporting_interval=6, pairs={ Pair(CryptoAsset.CELO, Fiat.USD) }) ] ]