core
├─ DNft — "A dNFT gives you the right to mint DYAD"
├─ Dyad — "Stablecoin backed by ETH"
├─ VaultManager - "Manage Vaults for DNfts"
├─ VaultManagerV2 - "VaultManager with flash loan protection"
├─ Vault - "Holds different collateral types"
├─ Licenser - "License VaultManagers or Vaults"
├─ KerosineManager - "Add/Remove Vaults to the Kerosene Calculation"
staking
├─ Kerosine - "Kerosene ERC20"
├─ KerosineDenominator
├─ Staking - "Simple staking contract"
periphery
├─ Payments
You will need a copy of Foundry installed before proceeding. See the installation guide for details.
To build the contracts:
git clone https://github.com/DyadStablecoin/contracts-v3.git
cd contracts-v3
forge install
In order to run unit tests, run:
forge test