buttonwood-protocol / button-wrappers

Solidity code for the ButtonToken rebasing wrapper protocol
GNU General Public License v3.0
13 stars 10 forks source link

Add caching oracle #18

Closed marktoda closed 2 years ago

marktoda commented 3 years ago

Previously, button-token was caching results and only fetching new ones after some period of time. This functionality was removed so that we could add it to the oracle layer so it is easier to govern

I'm thinking we could have a CachingOracle mixin that oracles can just extend to get this functionality. Alternatively it could be a composed contract but that would add an extra call