📖
Docs
  • Protocol
    • 🤟What is Phase?
    • ⚠️Acknowledgments
    • 📜License
  • Vaults
    • 🏦Yield on Collateral
    • 💳Credit Accounts
  • CASH Stablecoin
    • 🪙$CASH
    • 🔁PSM
    • 🏗️Vault Structure
  • Liquidation
    • 📠Math behind Liquidations
    • 🤩Become a Liquidator
  • Proxies
    • 💡Overview
    • 👮Admin Upgradeable Proxy
    • 📦Storage Upgradeable Proxy
    • 💎Diamonds
  • 🔗Socials
  • 📖Devdocs
Powered by GitBook
On this page
  1. Proxies

Diamonds

PreviousStorage Upgradeable ProxyNextSocials

Last updated 1 year ago

Diamonds follow the spec. A lot of the Diamond code is taken from Mudgen's repo, though some code style and clarity modifications have been made. We appreciate Mudgen providing a base to build our diamonds on. Even though the Phase source code is licensed under BSL-1.1, we are giving full access to reproduce, copy and fork the diamond code inside the folder linked below. All of the facets created for diamonds can be found :

  • Access Control

  • Clock

  • Clone

  • ERC20

  • Loupe (required for the spec)

  • Multicall

  • Ownable

💎
EIP-2535
diamond-3-hardhat
here