DeFi Saver
Search…
YearnSupply
Action that supplies tokens to a yearn yVault and receives matching yTokens in return
User needs to approve DSProxy to pull tokens to supply them to yVault

Parameters:

  • address token - The contract address of the token you're supplying
  • uint256 amount - The desired amount of token to be supplied
  • address from- The account address where to pull tokens from
  • address to - Address where incoming yTokens will go to
Use uint256.max for amount supplies your whole balance
Last modified 6mo ago
Copy link