Skip to content

AztecWarlord/foundry-defi-stablecoin-f23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foundry DeFi Stablecoin

This is considered an Exogenous, Decentralized, Anchored (pegged), Crypto Collateralized low volitility coin.

About

  1. Relative Stability: Amnchored or Pegged -> $1.00

    1. Utilizes the Chainlink Price feed.
    2. Sets a function to exchange ETH & BTC -> $$$
  2. Stability Mechanism (Minting): Algorithmic (Decentralized)

    1. People can only mint the stablecoin with enough collateral. (coded)
  3. Collateral: Exogenous (Crypto)

    1. wETH
    2. wBTC
  4. Calculates health factor in a function

    • set health factor if debt is 0
    • added a bunch of view functions

Testing

What are our invariants/properties?

  1. Some proper oracle use
  2. Uint tests and invariant tests
  3. Smart Contract Audit Preparation

Thank You

Michael Vargas Linkedin Michael Vargas Twitter

About

DefiStableCoin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published