Skip to content

Added oracles for RZR/USD and lstRZR/USD #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drecronye
Copy link

@drecronye drecronye commented Jul 25, 2025

We have created an on-chain oracle that takes the price of RZR/USD from Shadow which is where we have one of the deepest liquidity

The on-chain oracle has a few safety checks to avoid price manipulations.

  • A gated updater: Only gated participants can update the oracle. Updates happen every 5 minutes
  • 4hr TWAP with 5 minute observations: The TWAP helps prevent price manipulation from flashloans and makes it economically expensive for attackers to manipulate the market
  • Lower and upper bound restrictions: A hard cap and floor which is updated by an off-chain oracle is set to add further protection.

Onchain TWAP oracle can be found here https://sonicscan.org/address/0x81707a5Ce2139dF7f7D768b4D581FD82bd800609#code

@drecronye drecronye changed the title Added oracles for RZR/USD and lstRZR/USD to Added oracles for RZR/USD and lstRZR/USD Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant