Skip to main content

Multicall

Git Source

Author: Axicon Labs Limited

Enables calling multiple methods in a single call to the contract.

Helpful for performing batch operations such as an "emergency exit", or simply creating advanced positions.

Functions

multicall

Performs multiple calls on the inheritor in a single transaction, and returns the data from each call.

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

Parameters

NameTypeDescription
databytes[]The calldata for each call

Returns

NameTypeDescription
resultsbytes[]The data returned by each call