Mark Price Oracle Guard

Propose a mark price and watch the on-chain guard decide. The oracle price is the reference; the tolerance band is how far the mark is allowed to stray from it. Play the honest bot, then play an attacker with a stolen price key — and see why the worst they can do is bounded.

Scenario
Drag the proposed mark and press Submit. The guard accepts the mark only if the oracle is fresh and the mark is within the tolerance band of the oracle price.
Proposed mark price$102.00
Tolerance band5%
set by tolerance-admin · cap 20%
Oracle
On-chain state
Spot oracle price$100.00
Accept band$95.00 – $105.00
Proposed mark$102.00
Deviation from oracle+2.00%
Live mark (last accepted)$100.00
Oracle fresh
Within tolerance
Would be acceptedsetMark
$95 $105 reject · mark ↓ reject · mark ↑ oracle $100 live $100 proposed $102
Submission log
No submissions yet.
Press Submit to try a mark.
What a stolen price key still can't do
Forge the oraclethe reference is a signed Chainlink report — the key relays it, it can't pick the value
Widen the bandneeds the tolerance-admin key, and it's capped at 20%
Turn the oracle off, or haltneeds the owner multisig