The purpose of this repository is to create an overcollateralized stablecoin with the following properties:
- (Relative Stability) Anchored or Pegged to USD
- Chainlink Price Feed
- Set a function to exchange ETH & BTC for whatever that USD equivalent is
- Stability Mechanism (Minting): Algorithmic (Decentralized)
- People can only mint the stablecoin with enough collateral (coded)
- Collateral: Exogenous (Crypto)
- wETH
- wBTC
- git
- You'll know you did it right if you can run
git --version
and you see a response likegit version x.x.x
- You'll know you did it right if you can run
- foundry
- You'll know you did it right if you can run
forge --version
and you see a response likeforge 0.2.0 (8c11482 2023-11-16T00:32:37.968294000Z)
- You'll know you did it right if you can run
- Code ERC20 contract (
DecentralizedStableCoin.sol
) - Code Decentralized Stablecoin Engine (
DSCEngine.sol
).- deposit collateral function
- mint function
- deposit collateral & mint function
- redeem collateral function
- redeem collateral for DSC function
- burn DSC function
- liquidate function
- Deploy Script
- HelperConfig Script
- Testing