Repository navigation
docs: add an Oracle page covering multi-source pricing and the internal price - #309
Merged
Merged
Conversation
…al price Adds an Oracle page under Markets, right after Order Book. It explains how a perp market's oracle price is chosen: stale observations are dropped against the batch deadline, the fresh ones are combined by median, and when none are fresh the market falls back to a book-derived internal price bounded by a margin-derived corridor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0xA11CE's address now carries an EIP-7702 delegation on mainnet, so USDC routes the permit through ERC-1271 and rejects it. Etch the code away so the test exercises the plain EOA permit path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GeorgeTsimos
approved these changes
Oct 16, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
doc/protocol/oracle.md, listed under Markets right after Order Book. It explains how a perp market's oracle price is picked on each batch, written for readers outside the team.Based on ADR 0038, checked against the current engine code where the ADR contradicts itself. Oracle providers are deliberately not named. Solver and wire-format details (
submitSolutionsV2, source IDs, the V2 activation deadline) are left out.Also: CI fix.
test_Fork_BatchDeposit_WithUSDCPermitwas failing on every branch. The test signs a USDC permit with key0xA11CE, whose mainnet address now carries an EIP-7702 delegation. USDC therefore verifies the signature via ERC-1271, which reverts. The test now clears that code withvm.etchbefore signing (protocol/test/Bridge.fork.sol).Test plan
{% hint %}blocks and tables display correctlyperpetuals.md,margin.mdandorderbook.md#solverresolveforge test --mc BridgeForkTestpasses against mainnet (9/9)🤖 Generated with Claude Code