StaticOracle is a tool developed under Uniswap's grant program that aims to help developers integrate easily and fast with Uniswap's v3 TWAP oracles.
This is done by leveraging already existing WeightedOracleLibrary implemented by Nicolás Chamo.
StaticOracle will allow developers to:
- Prepare a set of pools (for example: by a token pair and a fee tier) to support a certain period of time (for example: 60 seconds).
- Quote a TWAP for a set of pools (for example: by a token pair and a fee tier, or addresses).
The package will contain:
- Artifacts can be found under
@balmy/uniswap-v3-oracles/artifacts - Compatible deployments for hardhat-deploy plugin under the
@balmy/uniswap-v3-oracle/deploymentsfolder. - Typescript smart contract typings under
@balmy/uniswap-v3-oracle/typechained
Everything that you need to know as a developer on how to use StaticOracle can be read in the documented interface.
To install with Hardhat or Truffle:
yarn install @balmy/uniswap-v3-oraclenpm install @balmy/uniswap-v3-oracleContract deployed at the same address 0xB210CE856631EeEB767eFa666EC7C1C57738d438 accross the following networks: