const fluidVaultT1OpenAction = new dfs.actions.fluid.FluidVaultT1OpenAction(
vault,
collAmount,
debtAmount,
from,
to,
wrapBorrowedEth,
collToken
);
Action Type
STANDARD_ACTION
Input Parameters
/// @param vault The address of the Fluid Vault T1
/// @param collAmount Amount of collateral to deposit.
/// @param debtAmount Amount of debt to borrow. Can be 0 if only depositing collateral.
/// @param from Address to pull the collateral from.
/// @param to Address to send the borrowed assets to.
/// @param wrapBorrowedEth Whether to wrap the borrowed ETH into WETH if the borrowed asset is ETH.
struct Params {
address vault;
uint256 collAmount;
uint256 debtAmount;
address from;
address to;
bool wrapBorrowedEth;
}