You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
security: H-03 sequencer uptime check + H-04 bad debt resolution
Fixes two confirmed HIGH findings from internal pre-audit security review
prior to LOTIQUE LAB submission.
H-03 (OracleModule): Add Chainlink L2 sequencer uptime check to getPrice().
When sequencerFeed is configured, reverts if the Arbitrum sequencer is down
or within the 3600-second post-restart grace period (SEQ_GRACE_PERIOD).
Optional: address(0) disables the check for non-Arbitrum networks. Wired
to Arbitrum One sequencer feed (0xFdB631F5EE196F0ed6FAa767959853A9F217697D)
in .env.mainnet.example and both deploy scripts via SEQUENCER_FEED env var.
OracleModule constructor gains a fourth parameter: address sequencerFeed_.
H-04 (VaultManager): Add resolveBadDebt() GUARDIAN-gated emergency function
for irrecoverably underwater positions where seize > collateral prevents
normal liquidation. Clears vault state, seizes remaining collateral to
caller, tracks uncovered debt in totalBadDebt, emits BadDebtResolved event.
Operable while paused for incident response. Normal liquidation unaffected.
Tests: +22 new tests (OracleModuleSequencer.t.sol, VaultBadDebt.t.sol).
183/183 tests pass. All existing test suites updated for new constructor sig.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments