osmosis-labs / isotonic

Smart Contracts for the Lendex Protocol
MIT License
1 stars 0 forks source link

lendex-oracle: set up the oracle contract #37

Closed uint closed 2 years ago

uint commented 2 years ago

Closes #20

uint commented 2 years ago

Since we don't know where we're headed long-term and for now this is a very simple contract "standalone" contract, I'm not doing multitests. We can always change this in the future.

uint commented 2 years ago

@ethanfrey BTW, I made it store an expiration along with each exchange rate record rather than the "updated at" suggested in the ticket - is that okay? It let me reuse the Duration/Expiration stuff we already had.

ethanfrey commented 2 years ago

@ethanfrey BTW, I made it store an expiration along with each exchange rate record rather than the "updated at" suggested in the ticket - is that okay? It let me reuse the Duration/Expiration stuff we already had.

Great change. You solve the same requirement in a better way.