This project is a stablecoin implementation utilizing Foundry, a fast Ethereum application toolkit written in Rust. The stablecoin's goal is to maintain a peg to $1.00 using an algorithmic stability mechanism and collateralized with crypto assets like wETH and wBTC.
- Relative Stability: Pegged at $1.00 with Chainlink price feeds.
- Stability Mechanism: Algorithmic (Decentralized) with minting restricted to collateral-backed funds.
- Collateral: Uses wETH and wBTC as the underlying collateral for minting stablecoins.
Clone the repository:
git clone https://github.com/YusufsDesigns/foundry-stablecoin.git
cd foundry-stablecoinInstall dependencies:
forge installTo build the contract:
forge buildTo test the contract:
forge testTo deploy to a network:
forge script script/YourScript.s.sol:YourScript --rpc-url <rpc_url> --private-key <your_private_key>Use the cast tool to send transactions and interact with the deployed contract.
For more on Foundry tools like Forge, Anvil, and Cast, check the official Foundry Documentation.
Contributions are welcome! Please fork this repo and submit a pull request with your changes.
This README introduces the stablecoin system, mentions setup and usage instructions, and encourages contributions while providing relevant documentation and commands.