MorphoAaveV2Withdraw

Description

Withdraw a token from Morpho

Action ID

0x914eb1c7

SDK Action

const morphoAaveV2WithdrawAction = new dfs.actions.morpho.MorphoAaveV2WithdrawAction(
    tokenAddr,
    amount,
    to
);

Action Type

STANDARD_ACTION

Input Parameters

    /// @param tokenAddr The address of the token to be withdrawn
    /// @param amount Amount of tokens to be withdrawn
    /// @param to Where the withdrawn tokens will be sent
    struct Params {
        address tokenAddr;
        uint256 amount;
        address to;
    }

Return Value

return bytes32(amount);

Events and Logs

emit ActionEvent("MorphoAaveV2Withdraw", logData);
logger.logActionDirectEvent("MorphoAaveV2Withdraw", logData);
bytes memory logData = abi.encode(params);

Last updated

Was this helpful?