This project aims to create a stablecoin where users can deposit Wrapped Ether (WETH) and Wrapped Bitcoin (WBTC) in exchange for a token pegged to the USD.
Used : Solidity , Foundry, Openzeppelin, Chainlink vrf, Chainlink automation
To get started with Foundry, run the following commands:
curl -L https://foundry.paradigm.xyz | bash
foundryup
git clone https://github.com/HemaDeviU/StableCoin-Defi-Protocol
cd StableCoin-Defi-Protocol
forge build
- Start a local node
make anvil
- Deploy
make deploy
- Setup environment variables You'll want to set your SEPOLIA_RPC_URL and PRIVATE_KEY as environment variables. You can add them to a .env file.
- PRIVATE_KEY: The private key of your account (like from metamask) which has testnet ETH.
- SEPOLIA_RPC_URL: This is url of the sepolia testnet node you're working with. You can get setup with one for free from Alchemy.
- ETHERSCAN_API_KEY: To verify the contract,get the api key from etherscan account.
- Deploy make deploy ARGS="--network sepolia"