Skip to content

Patch V3Oracle truncations#131

Open
gonzaotc wants to merge 1 commit into
masterfrom
patch-oracle-truncation
Open

Patch V3Oracle truncations#131
gonzaotc wants to merge 1 commit into
masterfrom
patch-oracle-truncation

Conversation

@gonzaotc

Copy link
Copy Markdown
Collaborator

No description provided.

@netlify

netlify Bot commented May 21, 2026

Copy link
Copy Markdown

Deploy Preview for uniswap-hooks-docs ready!

Name Link
🔨 Latest commit 4844426
🔍 Latest deploy log https://app.netlify.com/projects/uniswap-hooks-docs/deploys/6a0f6be48aa9df0008682feb
😎 Deploy Preview https://deploy-preview-131--uniswap-hooks-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented May 21, 2026

Copy link
Copy Markdown

Deploy Preview for uniswap-hooks ready!

Name Link
🔨 Latest commit 4844426
🔍 Latest deploy log https://app.netlify.com/projects/uniswap-hooks/deploys/6a0f6be45600b1000863698c
😎 Deploy Preview https://deploy-preview-131--uniswap-hooks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gonzaotc
gonzaotc requested a review from luiz-lvj May 21, 2026 20:43

@ernestognw ernestognw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The errors should have a different name, otherwise we risk getting an "already-declared identifier" error if both contracts are combined (may not make sense, though)

using StateLibrary for IPoolManager;

/// @notice Thrown when `observations(uint256)` is called with an index that does not fit in `uint16`.
error IndexOutOfRange();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
error IndexOutOfRange();
error V3OracleAdapterIndexOutOfRange();

using StateLibrary for IPoolManager;

/// @notice Thrown when `observations(uint256)` is called with an index that does not fit in `uint16`.
error IndexOutOfRange();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
error IndexOutOfRange();
error V3TruncatedOracleAdapterIndexOutOfRange();

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