ad3109 / CAT

4 stars 2 forks source link

Issue 1: Aggregation #1

Open ad3109 opened 2 years ago

ad3109 commented 2 years ago

Getting all commodities inputs working simultaneously & aggregating to a common USD price. Right now the data is raw.

ad3109 commented 1 year 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

ad3109 commented 1 year ago

Closing as the only resolution is a DIY oracle that can use Solidity 0.8.0 and up.