Skip to content

YusufsDesigns/Decentralized-Stablecoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foundry Stablecoin

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.

Features

  • 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.

Setup & Usage

Requirements:

Install:

Clone the repository:

git clone https://github.com/YusufsDesigns/foundry-stablecoin.git
cd foundry-stablecoin

Install dependencies:

forge install

Build & Test:

To build the contract:

forge build

To test the contract:

forge test

Deploy:

To deploy to a network:

forge script script/YourScript.s.sol:YourScript --rpc-url <rpc_url> --private-key <your_private_key>

Interact with Contracts:

Use the cast tool to send transactions and interact with the deployed contract.

Documentation

For more on Foundry tools like Forge, Anvil, and Cast, check the official Foundry Documentation.

Contribution

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published