DeFi Saver
Action that supplies a token to a Compound market. This is a standard DFS action.
If enableAsColl is set as false it will not disable the asset as collateral if it was already enabled, it just will not try and enable it again.
If amount is uint256.max the whole proxy balance will be used.


  • address cTokenAddr - Address of the cToken that will be received when supplying.
  • uint256 amount - Amount of tokens being deposited.
  • address from - Address from which the tokens for supplying are being pulled from.
  • bool enableAsColl - If the supplied asset should be enabled as collateral.
Last modified 8mo ago
Copy link