💿CompV3Payback
Action that pays back debt in a Compound market. This is a standard DFS action.
User needs to approve the DSProxy
to 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.
Parameters:
address market
- main Comet proxy contract that is different for each compound marketamount256 amount
- amount of tokens to paybackaddress from
- the address from which we will pull markets base asset fromaddress onBehalf
- address of the positions owner which debt we are paying back
Return:
amount of tokens paid back
Last updated