Skip to content

Conversation

@gabririgo
Copy link

@gabririgo gabririgo commented Sep 16, 2025

Change Summary

What does this PR change?

Support the Uniswap V4 BackGeoOracle hook. It is implemented in the same way as the UniswapV4LikeOracle, thus reading from the slot0 instead of using the oracle's observe method for simplicity. The oracle has a maximum tick delta within a single block, so it is safer from manipulation compared to other Uniswap pools.

Related Issue/Ticket:

Testing & Verification

How was this tested?

  • Unit tests
  • Integration tests
  • Manual testing (describe steps)
  • Verified on staging

Risk Assessment

Risk Level:

  • Low - Minor changes, no operational impact
  • Medium - Moderate changes, limited impact, standard rollback available
  • High - Significant changes, potential operational impact, complex rollback

Risks & Impact

Risk: slot0 can be manipulated within certain tick deltas (max ≃15% price movement tolerance within a single block). An improved approach would be to use a 1-minute twap via the hook's observe method (still gas efficient).

Implemented in the same way as the UniswapV4LikeOracle, but using the BackGeoOracle Uniswap V4 oracle hook
@zZoMROT
Copy link
Contributor

zZoMROT commented Sep 18, 2025

Related to #226 (comment)

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.

2 participants