diff --git a/script/README.md b/script/README.md index ca5c3e3..ca95486 100644 --- a/script/README.md +++ b/script/README.md @@ -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 diff --git a/src/optimistic-oracle-v2/implementation/SignedProposer.sol b/src/optimistic-oracle-v2/implementation/SignedProposer.sol index 7920288..ff8a518 100644 --- a/src/optimistic-oracle-v2/implementation/SignedProposer.sol +++ b/src/optimistic-oracle-v2/implementation/SignedProposer.sol @@ -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;