Skip to content

Repository files navigation

DeFi Stablecoin

A stablecoin DeFi protocol that powers a stablecoin pegged to the US Dollar.

The stablecoin is an ERC20 token pegged to the US dollar that can be used for micropayments such as with in-game currency or content paywalls.

How this is achieved

  • Relative stability: Pegged to the US Dollar
    • Chainlink Pricefeed for near real time USD price
    • DSC minted against collateral USD value
  • Stability Mechanism: Algorithmic decentralized minting/burning
    • Users may only mint stable coin with enough collateral
    • Actors incentivized to keep the protocol solvent by maintaining the required levels of collateral for minted coins
  • Exogenous Collateral: The protocol is backed by assets outside of it whose prices determined independently by the market
    • Wrapped ETH (wETH)
    • Wrapped BTC (wBTC)

Read about how it works.

Development

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ make deploy ARGS="--network <network name>"

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

About

Decentralized Stable Coin

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages