Skip to main content

Multicall (V2)

Source reference for public revision e3b9d12. For deployed configuration, select the pool's engine on the parameter page.

Git Source

Title: Multicall

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 payable returns (bytes[] memory results);

Parameters

NameTypeDescription
databytes[]The calldata for each call

Returns

NameTypeDescription
resultsbytes[]The data returned by each call