New AMM and Controller implementations for crvUSD and LlamaLend

Summary:

As audit of the changes for new AMM and Controller with ChainSecurity has been concluded, the implementations are proposed to be used by crvUSD and LlamaLend factories. Change of implementation only affects future markets, not previous ones.

Deployed code:

Notable features:

  • Leverage using aggregators is possible with mint markets (right now it is not);
  • Users can allow other contracts to manage their position;
  • Users can optionally specify extra health offset they start soft liquidation with (requested by users of very high leverage);
  • Support for LP tokens with gauge as collateral (e.g. collateral which earns CRV emissions).
5 Likes

Vote outcome is a sound yes and this upgrade has been enacted on 12/4/2024:

https://dao.curve.fi/#/ethereum/proposals/903-OWNERSHIP