Skip to main content

Multicall

Git Source

Inherits: IMulticall

Author: Uniswap

Adopted from https://github.com/Uniswap/v3-periphery/blob/1d69caf0d6c8cfeae9acd1f34ead30018d6e6400/contracts/base/Multicall.sol

Enables calling multiple methods in a single call to the contract

Functions

multicall

Call multiple functions in the current contract and return the data from all of them if they all succeed

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

Parameters

NameTypeDescription
databytes[]The encoded function data for each of the calls to make to this contract

Returns

NameTypeDescription
resultsbytes[]The results from each of the calls passed in via data