Action that pays back debt in a Compound market. This is a standard DFS action.

User needs to approve the DSProxyto pull the tokens ( base asset of the market in question)

If amount is uint256.max it will try to pull enough tokens to repay whole debt

If the onBehalf address is 0x0, they default to the address of the DSProxy which called the action.


  • address market - main Comet proxy contract that is different for each compound market

  • amount256 amount - amount of tokens to payback

  • address from - the address from which we will pull markets base asset from

  • address onBehalf - address of the positions owner which debt we are paying back


  • amount of tokens paid back

Last updated