const compV3WithdrawAction = new dfs.actions.compoundV3.CompoundV3WithdrawAction(
market,
to,
asset,
amount,
);
Contract
This is a DFS STANDARD_ACTION.
Send type(uint).max withdraws the whole balance from Comet
Input:
/// @param market Main Comet proxy contract that is different for each compound market
/// @param to The recipient address
/// @param asset Token address of the asset to withdraw
/// @param amount The quantity to withdraw
struct Params {
address market;
address to;
address asset;
uint256 amount;
}