DeFi Saver
Mcd Payback
Action that pays back the debt for a specified MakerDAO Vault. This is a standard DFS action.
User needs to approve the DSProxy to pull the Dai tokens used for payback.
If amount is uint256.max the whole vault debt will be set in the amount.


  • uint256 vaultId - ID of the Vault.
  • uint256 amount - Amount of Dai being paid back.
  • address from - Address from which the Dai is being pulled from.
  • bool mcdManager - The manager address being used (e.g. MCD or B.Protocol).
Copy link