const aaveWithdrawAction = new dfs.actions.aaveV3.AaveV3WithdrawAction(
assetId, useDefaultMarket, amount, to, market
);
Contract
This is a DFS STANDARD_ACTION.
If amount is uint.max withdraws whole amount
Input:
/// @param assetId The id of the token to be withdrawn
/// @param useDefaultMarket If true the action will inject aave default market
/// @param amount Amount of tokens to be withdrawn
/// @param to Where the withdrawn tokens will be sent
/// @param market Address provider for specific market
struct Params {
uint16 assetId;
bool useDefaultMarket;
uint256 amount;
address to;
address market;
}