Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compound oracles #135

Merged
merged 4 commits into from
Apr 16, 2021
Merged

Compound oracles #135

merged 4 commits into from
Apr 16, 2021

Conversation

alcueca
Copy link
Contributor

@alcueca alcueca commented Apr 16, 2021

Implemented rate and chi oracles with data from Compound, assuming that borrowIndex is a rate accumulator we can use, and that exchangeRateStored is a rate accumulator we can use.

The mock sources and oracle contracts are separate contracts for rate and chi oracles, even if the real source of the data would be the same CToken for rate and chi. It makes everything simpler.

@alcueca alcueca requested review from aniemerg and dmihal April 16, 2021 12:26
@alcueca alcueca changed the base branch from feat/usmfum-oracles to dev April 16, 2021 14:19
@alcueca alcueca merged commit 7facffb into dev Apr 16, 2021
@alcueca alcueca deleted the feat/compound-oracles branch April 22, 2021 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants