FluidVaultT1Withdraw

Description

Withdraw assets from Fluid Vault T1 (1_col:1_debt)

Action ID

0xf304b35f

SDK Action

const fluidVaultT1WithdrawAction = new dfs.actions.fluid.FluidVaultT1WithdrawAction(
    vault,
    nftId,
    amount,
    to,
    wrapWithdrawnEth
);

Action Type

STANDARD_ACTION

Input Parameters

    /// @param vault The address of the Fluid Vault T1
    /// @param nftId ID of the NFT representing the position
    /// @param amount Amount to withdraw. Pass type(uint256).max to withdraw all.
    /// @param to Address to send the withdrawn assets to
    /// @param wrapWithdrawnEth Whether to wrap the withdrawn ETH into WETH if the withdrawn asset is ETH.
    struct Params {
        address vault;
        uint256 nftId;
        uint256 amount;
        address to;
        bool wrapWithdrawnEth;
    }

Return Value

return bytes32(amount);

Events and Logs

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

Last updated

Was this helpful?