Stablecoin design:
- Relative Stability: Anchored or pegged to 1.00 dollars 1.1 Chain link price feed 1.2 Set a function to exchange ETH & BTC
- Stability Mechanism (Minting): Algorithmic (Decentralized) 2.1 People can only mint stablecoin with enough collateral (coded)
- Collateral: Exogenous (Crypto) 3.1 wETH 3.2 wBTC
- Calculate health factor function
- Set health factor if debt is 0
- Added a bunch of view function
-
What are our invariants/properties?
-
Some proper oracle use.
-
Write more tests
-
Smartcontract audit preparation