Skip to content
Lattice

IMulticall

Git Source

Title: IMulticall

Author: Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Multicall.sol)

Interface for the Multicall module, enabling batched calls in a single transaction.

Functions

multicall

Batch multiple calls to this contract in a single transaction.

Each call is executed via delegatecall so it runs in the context of the calling contract. If any call reverts, the entire batch reverts with the same revert data.

function multicall(bytes[] calldata data) external returns (bytes[] memory results);

Parameters

NameTypeDescription
databytes[]An array of calldata payloads to execute.

Returns

NameTypeDescription
resultsbytes[]An array of return data from each call, in the same order as data.