executeWithMinAmounts
function must be used to perform a Routines operation. This function is public as it can be called by the host or anyone else with an interest in doing so, and requires that the linked Extension is active:earnByAmounts
parameter, which is a boolean value representing if the executor's reward is calculated and transferred before (true
) or after (false
) a swap operation. In the first case, the reward is expressed as input token;
in the second, as output token
.minAmounts[]
that can be used to set the slippage of the Operations. To each position in minAmounts[]
corresponds an Operation.execute
function requests from the Extension the tokens needed to perform the operation(s) by calling, internally, the _ensureExecute
function:receiveTokens
function is used (see the Routines Extension section for more details).deactivationByFailure
function on the Extension contract. This means that if the Extension is not subsequently reactivated by the host, no more operations can be performed in the contract.lastBlock
is updated (set as the execution block) and performs the operation.execute
function can be used to perform a Routines operation without setting the slippage for the transaction. earnByAmounts
parameter.