Skip to content

dahlia-labs/dahlia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

601f7f0 Â· Mar 14, 2025

History

80 Commits
Mar 13, 2024
Feb 20, 2023
Mar 15, 2024
Jan 12, 2025
Jan 12, 2025
Jan 12, 2025
Dec 20, 2022
Dec 20, 2022
Mar 17, 2024
Dec 20, 2022
Feb 28, 2023
Dec 20, 2022
Dec 20, 2022
Jan 3, 2023
Mar 20, 2024
Jan 3, 2023
Dec 20, 2022
Mar 13, 2024
Mar 14, 2025
May 15, 2024
Mar 13, 2024
Mar 15, 2024
Jan 12, 2025
Feb 20, 2023
Mar 17, 2024

Repository files navigation

🌼 Dahlia, "numoen"

Oracle-free lending markets

Smart contracts suite of Dahlia, a lending market for automated market maker shares to eliminate the oracle dependency of traditional lending markets. Thus, Dahlia enables lending and borrowing on any ERC-20s for leverage or yield.

Installation

forge install dahlia-labs/dahlia

Local development

This project uses Foundry as the development framework.

Dependencies

forge install

@openzeppelin/contracts-upgrade
@transmissions11/solmate

CREATE2

The factory.sol deploys squared.sol to a predetermined address using .create2deploy()

Compilation

forge build

Test

forge test

Local setup

In order to test third party integrations such as interfaces, it is possible to set up a forked mainnet with several positions open

sh anvil.sh

then, in a separate terminal,

sh setup.sh