πŸ’ΏCompV3Claim

Action that claims reward token for a given market on behalf of someone. This is a standard DFS action.

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 market

  • address onBehalf - The owner to claim for, defaults to proxy

  • address to - address where to send the claimed tokens to

  • bool shouldAccrue - if claim action should calculate latest rewards for the block when the transaction is sent (suggestion : always set to true)

Return:

  • amount of tokens claimed

Last updated