mstable/mStable-contracts

SAVE Connector for depositing collateral on Creams Iron Bank

alsco77 opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
The mAssets in mStable SAVE contracts (SavingsContract.sol) are deposited to produce imAssets. This collateral can be recycled to produce additional yield by adding an IConnector to the contract. Currently there is no active IConnector on mUSD SAVE.

Currently there exists a market on Cream Finance's Iron Bank (https://creamdotfinance.medium.com/introducing-the-iron-bank-bab9417c9a) that could act as a lending market for mUSD. In addition, there is an active proposal for mUSD to be listed on Aave as a market.

Describe the solution you'd like

The solution:

  • A contract implementing IConnector interface for mUSD that deposits the collateral to Creams Iron Bank (https://v1.yearn.finance/lending) and tracks the interest generated
  • Test cases for this contract

Additional context
There are a number of properties that must be fulfilled here. See the IConnector interface for more details, or the _poke function in SavingsContract.sol, or take a look at some of the example connectors in z_mocks/savings.

Closing this, not gonna do that anymore.