DeFi Saver
Mcd Withdraw
Action that withdraws collateral from a MakerDAO Vault. This is a standard DFS action.
The action will fail if too much collateral is being withdrawn, which would push the Vault below the liquidation ratio.
If amount is uint256.max the whole vault collateral will be used.


  • uint256 vaultId - ID of the Vault.
  • uint256 amount - Amount of tokens being withdrawn.
  • address joinAddr - Join address of the specific Maker collateral.
  • address to - Address where to send the collateral withdrawn to.
  • bool mcdManager - The manager address being used (e.g. MCD or B.Protocol).
Copy link