DeFi Saver
Search…
CompWithdraw
Action that withdraws a token from a Compound market. This is a standard DFS action.
If the user is withdrawing ETH, the action will send back WETH.
If amount is uint256.max the whole collateral supply will be set for the amount.

Parameters:

  • address cTokenAddr - Address of the cToken being withdrawn from.
  • uint256 amount - Amount of tokens being withdrawn.
  • address to - Address where to send the tokens to (can be left to proxy).
Last modified 8mo ago
Copy link