aMulticall docs

AMulticall

As per https://github.com/Uniswap/swap-router-contracts/blob/main/contracts/base/MulticallExtended.sol

checkDeadline

modifier checkDeadline(uint256 deadline)

checkPreviousBlockhash

modifier checkPreviousBlockhash(bytes32 previousBlockhash)

multicall

function multicall(bytes[] data) public returns (bytes[] results)

Enables calling multiple methods in a single call to the contract

Parameters

NameTypeDescription

data

bytes[]

Array of encoded calls.

Return Values

NameTypeDescription

results

bytes[]

Array of call responses.

multicall

function multicall(uint256 deadline, bytes[] data) external payable returns (bytes[])

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

The msg.value should not be trusted for any method callable from multicall.

Parameters

NameTypeDescription

deadline

uint256

The time by which this function must be called before failing

data

bytes[]

The encoded function data for each of the calls to make to this contract

Return Values

NameTypeDescription

[0]

bytes[]

multicall

function multicall(bytes32 previousBlockhash, bytes[] data) external payable returns (bytes[])

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

The msg.value should not be trusted for any method callable from multicall.

Parameters

NameTypeDescription

previousBlockhash

bytes32

The expected parent blockHash

data

bytes[]

The encoded function data for each of the calls to make to this contract

Return Values

NameTypeDescription

[0]

bytes[]

_blockTimestamp

function _blockTimestamp() internal view virtual returns (uint256)

Method that exists purely to be overridden for tests

Return Values

NameTypeDescription

[0]

uint256

The current block timestamp

Last updated