Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions script/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,13 @@ the authoritative success evidence. A `false` result and `ProposalCallFailed` me
execution attempt did not complete successfully; they do not prove the proposal itself is invalid.
In particular, empty failure metadata is ambiguous between an empty revert and out-of-gas.

OpenZeppelin `multicall(bytes[])` remains available and atomic for compatibility. `tryMulticall`
does not change worker behavior; worker integration must be performed separately.
OpenZeppelin `multicall(bytes[])` remains available and atomic for compatibility. It deliberately accepts any caller
and selector: self-delegatecall preserves the original caller, and each called function enforces its own permissions.
It has no batch-level reentrancy guard; individual functions must apply any required protection. Future externally
reachable functions must retain their own authorization because `multicall` does not impose the delegated-proposer,
`propose`-only, or nesting restrictions of `tryMulticall`.

`tryMulticall` does not change worker behavior; worker integration must be performed separately.

### Verification

Expand Down
6 changes: 6 additions & 0 deletions src/optimistic-oracle-v2/implementation/SignedProposer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ import {TryMulticall} from "../../common/implementation/TryMulticall.sol";
* The contract is permissioned:
* - `DELEGATED_PROPOSER_ROLE` — may call `propose` and `tryMulticall`.
* - `WHITELIST_ADMIN_ROLE` — may directly add/remove entries on whitelists owned by this contract.
*
* @dev Inherited `multicall` deliberately accepts any caller and selector and executes atomically. Self-delegatecall
* preserves `msg.sender`, so every externally reachable function must enforce its own authorization, including functions
* added in future versions. The batching entry point does not provide a reentrancy guard; functions that need one must
* apply their own. `tryMulticall` instead restricts the caller to delegated proposers, accepts only `propose`, and rejects
* nested partial-success batches. These restrictions do not apply to the atomic `multicall` entry point.
*/
contract SignedProposer is AccessControl, Multicall, ReentrancyGuard, TryMulticall {
using SafeERC20 for IERC20;
Expand Down
Loading