DeFi Saver
Search…
CompPayback
Action that paybacks borrowed tokens 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 borrow amount of the proxy will be payed back.

Parameters:

  • address cTokenAddr - Address of the cToken being paid back.
  • uint256 amount - Amount of tokens being paid back.
  • address from - Address from which the tokens are being pulled for payback.
  • address onBehalf - Address for which to payback the debt
Last modified 2mo ago
Copy link