A decentralized, exogenous collateralized algorithmic stablecoin system, similar to DAI but simplified.
- Collateral: Users deposit ETH or BTC (wrapped).
- Minting: Users can mint stablecoins against their collateral.
- Stability: The system uses Chainlink Oracles to maintain the price peg ($1).
- Liquidation: If collateral value drops below a threshold, the system triggers liquidation to remain solvent.
- Solidity (Smart Contracts)
- Foundry / Hardhat (Development Framework)
- Chainlink (Price Oracles)
- DSCEngine.sol: The core logic for minting/burning and collateral management.
- StableCoin.sol: The ERC20 token contract.
- Clone:
git clone [Your-Repo-Link] - Install:
forge installornpm install - Test:
forge test