DeFi Saver
Search…
AaveSupply
Action that supplies a token to the specified Aave V2 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 won't try and enable it again
If amount is uint256.max the whole balance proxy balance will be used
If the onBehalf address is 0x0, they default to the address of the DSProxy who called the action.

Parameters:

  • address market - Address provider for specific market.
  • address tokenAddr - The address of the token being deposited.
  • uint256 amount - Amount of tokens being deposited.
  • address from - Address from which the tokens for supplying are being pulled from.
  • address onBehalf - Address for which the tokens are supplied, defaults to proxy.
  • bool enableAsColl - If the supplied asset should be enabled as collateral.
Last modified 8mo ago
Copy link