Open ad3109 opened 2 years ago
Solidity is super dysfunctional at math & is terrible at using imports from other versions. LINK commodity testnet ID's work in a version level too low for OZ SafeMath.sol so aggregation is basically a manual function, but the code is in one contract (Demo2). Closing this issue to add a new one in the oracle repository. Ref: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol
Closing as the only resolution is a DIY oracle that can use Solidity 0.8.0 and up.
Getting all commodities inputs working simultaneously & aggregating to a common USD price. Right now the data is raw.