Skip to content

0xlazykitty/gearbox-cooking-oracles

Repository files navigation

Overview

The script aims to update all lower bounds within the system according to the Gearbox Protocol. It targets LP capped oracles, which extend LPPriceFeed.sol. The process involves fetching the current lower bound value and adjusting it by setting the new center for the range to be 1% lower than the current value. This ensures the lower bound remains updated and aligned with the protocol requirements.

Steps

  1. Extract a list of oracles from the PriceOracle contract by listening to SetPriceFeed events.
  2. Retrieve the price feed types from the events.
  3. Get the current price using the Chainlink latestRoundData() method, then subtract 1% from it.
  4. Update the lower bound via setLimiter method.

How to run

  1. Install all dependencies using yarn install.
  2. Set environment variables from .env.example.
  3. yarn start will start the script, the script launches a cron job to run every 2 weeks.

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published