Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Issue 1: Aggregation #1

Open
ad3109 opened this issue Sep 18, 2022 · 2 comments
Open

Issue 1: Aggregation #1

ad3109 opened this issue Sep 18, 2022 · 2 comments

Comments

@ad3109
Copy link
Owner

ad3109 commented Sep 18, 2022

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

@ad3109
Copy link
Owner Author

ad3109 commented Sep 23, 2022

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
Copy link
Owner Author

ad3109 commented Sep 23, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant