💿CompV3Supply
Action that supplies a token to a Compound market. This is a standard DFS action.
User needs to approve the DSProxy
to pull the tokens (tokenAddr)
If amount
is uint256.max
the whole proxy balance will be used.
Parameters:
address market
- main Comet proxy contract that is different for each compound marketaddress tokenAddr
- address of the token we are supplyingamount256 amount
- amount to supplyaddress from
- address where we are pulling the tokens from
Return:
amount of tokens supplied
Last updated