Skip to content

vesperfi/one-oracle

Repository files navigation

One Oracle

This repository contains set of smart contracts and test cases of One-Oracle. One-Oracle has wrapper contracts to query the price from third party price providers like Chainlink, Uniswap-V3, UniswapV2Like. Price provider contract wrap third party price provider's oracle methods into common interface. UniswapV2Like price provider will provide outdated price if update() is not called in regular interval.

Setup

  1. Install

    npm i
  2. set NODE_URL in env

    export NODE_URL=<eth mainnet url>

    or by creating a .env file (use .env.template as reference)

  3. Test

npm t

Run test with coverage

npm run coverage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published