This contract is a multi-functional smart contract which allows for multiple contract calls in a single transaction.
error MulticallFailed()
function multicall(bytes[] data) external payable returns (bytes[] results)
Performs multiple delegate calls and returns the results of all calls as an array
This function requires that the contract has sufficient balance for the delegate calls. If any of the calls fail, the function will revert with the failure message.
Name | Type | Description |
---|---|---|
data | bytes[] | An array of encoded function calls |
Name | Type | Description |
---|---|---|
results | bytes[] | An bytes array with the return data of each function call |