Giter Club home page Giter Club logo

oraclepricefetcher's Introduction

OraclePriceFetch aka PriceFeed v2

It's used by Vesta Protocol V1, this is our wrapper system that allows us to support multiple types of oracles easily.

Structure

The logic behind OraclePriceFetch is based on three major contracts

  1. PriceFeedV2
  2. OracleWrappers
  3. OracleVerificatorV1

System Flow

Flow

PriceFeedV2

Is the request handler, The protocol will ask this contract to get the price value of a token

OracleWrappers

Each wrapper are an extentions of BaseWrapper. This is where the magic happens, we create a Oracle Wrapper to support a specific type of External Oracle.

OracleVerificatorV1

Our security contract. It will verify the response of the primary and secondary oracles. Then define the "valid" price based on our check.

Requirements

To be eligible to our system, your oracle should have the following functions / datas [VIEW ONLY]

  1. [Requried] Current Price
  2. [Required] Last Price
  3. [Optional but highly recommended] Last Update Time: When was the last update on the oracle.
  4. [Optional] Decimals: What decimals are you using for the oracle.

oraclepricefetcher's People

Contributors

0xatum avatar intelmin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

1anyway

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.