Skip to content

feat(monitors): batch ManagedOOv2 settlements via multicall#4934

Merged
mrice32 merged 2 commits intomasterfrom
mrice32/batch-settle
Feb 24, 2026
Merged

feat(monitors): batch ManagedOOv2 settlements via multicall#4934
mrice32 merged 2 commits intomasterfrom
mrice32/batch-settle

Conversation

@mrice32
Copy link
Copy Markdown
Member

@mrice32 mrice32 commented Feb 24, 2026

Summary

  • Adds SETTLE_BATCH_SIZE env var to batch multiple settle() calls into a single multicall transaction for ManagedOptimisticOracleV2 contracts (which inherit MultiCaller)
  • Default batch size is 1, preserving existing one-by-one settlement behavior for regular OOv2 deployments
  • On batch failure (MultiCaller reverts entire batch if any call fails), automatically falls back to one-by-one settlement for that batch

Test plan

  • Existing 3 OOv2 settler tests pass (no regression with settleBatchSize: 1 default)
  • New test deploys OptimisticOracleV2Multicaller (OOv2 + MultiCaller), creates 3 proposals, settles all in a single multicall tx, verifies each is logged individually with the same tx hash
  • Manual verification: set SETTLE_BATCH_SIZE=100 and run against a ManagedOOV2 on a testnet/fork

🤖 Generated with Claude Code

Add SETTLE_BATCH_SIZE env var to batch multiple settle calls into a
single multicall transaction for ManagedOptimisticOracleV2 contracts.
When set to 1 (default), existing one-by-one behavior is preserved.
On batch failure, falls back to one-by-one for that batch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chrismaree
chrismaree previously approved these changes Feb 24, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mrice32 mrice32 merged commit c718f64 into master Feb 24, 2026
7 of 20 checks passed
@mrice32 mrice32 deleted the mrice32/batch-settle branch February 24, 2026 20:47
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