DeFi Saver
Search…
MStableDeposit
Action that deposits an entry asset and withdraws an exit asset from mStable.
User needs to approve the DSProxy to pull entry asset.
If the exit asset is imAssetVault only the recipient will be able to withdraw it from the vault.
Parameters:
  • address bAsset - base asset address
  • address mAsset - the corresponding meta asset
  • address saveAddress - save contract address for the mAsset (imAsset address)
  • address vaultAddress - vault contract address for the imAsset (imAssetVault address)
  • address from - address from where to pull the entry asset
  • address to - address that will receive the exit asset
  • uint256 amount - amount of entry asset to deposit
  • uint256 minOut - minimum amount of mAsset to accept (if entry asset is base asset)
  • AssetPair assetPair - exit and entry asset pair enum
Copy link