ProofSuite / OrFeed

DeFi & Distributed Data Service Aggregator
https://www.orfeed.org
Apache License 2.0
241 stars 154 forks source link

Interest Rate Oracle Consumer Contracts #38

Closed mikedeshazer closed 4 years ago

mikedeshazer commented 4 years ago

Recently, there was a post regarding grabbing interest rate data from various smart contracts (dydx, Compound, Fulcrum): https://medium.com/iearn/how-we-built-on-chain-apr-for-ethereum-defi-a8d84b680758

Here is an example of a random number generator oracle that is in the proper format to be an OrFeed-compatible oracle: https://github.com/ProofSuite/OrFeed/blob/master/contracts/examples/ProvideDataExamples/randomNumberOracleExample.sol

We are interested in adding an orfeed-compatible oracle into our oracle registry that allows people to use the getExchangeRate method, providing the "Platform-Side" (Borrow or Lend) as the venue param (e.g. "Fulcrum-borrow", "dxdy-lend"), the currency symbol or ethereum address (as string) as the fromSymbol param, and the amount (ignoring the toSymbol parameter) to return the 1 year return at a given rate. For example, 1000 DAI at an interest rate of 5% would return 50. Ideally, it will use OrFeed data to convert the symbol to a token address using OrFeed's getTokenAddress method.

For any questions or comments, please feel free to drop in the #issues channel on Discord: https://discord.gg/byCPVsY

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.3 ETH (50.52 USD @ $168.4/ETH) attached to it.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 1 month from now. Please review their action plans below:

1) kichjang has been approved to start work.

I've been studying the OrFeed API since the last issue on the random number generator, and I think I have a pretty good grasp on how to implement this by now. This is just a matter of knowing which API to call, and what functions to implement.

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 4 weeks from now. Please review their action plans below:

1) kichjang has been approved to start work.

I've been studying the OrFeed API since the last issue on the random number generator, and I think I have a pretty good grasp on how to implement this by now. This is just a matter of knowing which API to call, and what functions to implement.

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 0.3 ETH (52.73 USD @ $175.76/ETH) has been submitted by:

  1. @kichjang

@mikedeshazer please take a look at the submitted work:


gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 0.3 ETH (51.77 USD @ $172.57/ETH) attached to this issue has been approved & issued to @KiChjang.