Multicall
Calls multiple ABI-encoded functions in a single atomic transaction
The main use case for Multicall is executing multiple swaps in an atomic transaction, specifically when executing a swap route across multiple virtual and native pools.
function multicall
Calls multiple ABI-encoded functions in a single transaction. The exexution can be partial or full. If fPartial is true, the method will continue executing all supplied calls even if one of them fails. If fPartial is false, the contract will revert the entire transaction and return an error message when any function call in the multicall fails.
Parameters:
Name
Type
Description
data
bytes[]
byte array of ABI-encoded vRouter function calls
fPartial
bool
Determines wheter execution is full or partial.
Last updated