Inspiration

  • When we were building a subgraph for Cow protocol we need something to estimate prices on the tokens swapped.
  • We didn’t have the pairs traded before starting they were defined dynamically while the protocol is used.
  • We needed to handle new possible tokens prices without introducing new changes.
  • We needed to support different chains.

What it does

Given two tokens it solves an address of the chainlink oracle and it solves the current price of the given pair.

How we built it

We started building in remix and after that we moved to hardhat project. We deployed everything in polygon test network (Mumbai)

Challenges we ran into

We needed to learn how to manage a contract factory and how we can use an oracle to solve the price.

Accomplishments that we're proud of

We are a great team working together, it's a simple idea but something like this wasn't implemented. We could manage to build a project from scratch starting form an idea.

What we learned

We learned a lot about solidity, and creating a project with hardhat using Patrick Collins videos we found them very useful

What's next for Chainlink oracle solver

  • Populate all the data coming from the price feed.
  • Enable the possibility to solve paths of trading pairs and show how many steps need to be done to estimate that price.

Built With

Share this project:

Updates