DreamFi

DreamFi

Collateralized Debt Position of Market Index Funds

Created on 1st March 2025

DreamFi

DreamFi

Collateralized Debt Position of Market Index Funds

The problem DreamFi solves

CDPs were traditionally implemented as stablecoins; whereas, you are setup to go long (swap from stables to ETH/BTC for example) or yield farm in the DAI savings rate pool. However, given that our CDP is "risk on" (follows a correlated basket of goods), users can decide to short the index or yields farm with it. This gives users greater options to diversify and hedge long positions in their portfolios. Moreover, this gives us great flexibility to release numerous indices according to the risk profiles of our users.

User Interaction and Data Flow

The lifecycle of the protocol begins with depositing assets into the pool via the deposit method. If the pool is composed of ETH and BTC for example, you may deposit one or both of these assets. Next, the user may take on debt and call the borrow method to transfer units of the CDP to the borrower. In the happy case, the user will be able to pay back their loans without issue using the repay method (which includes interest). However, if they fall below the risk management parameters, they will be liquidated instead. Lastly, if the user's position is healthy or paid back and their collateral can support their borrows, they will be able to transfer assets out from the protocol using the withdraw method.

The project architecture and development process

Our protocol consists of a factory contract, the individual asset pools for each CDP index, and the tokens being used for both collateral and the CDP itself. We make use of the Aave interest rate model in order to ensure that users are incentivized to pay back their loans due to high utilization on the curve or borrowers are incentivized once the utilization rates are low (cheap loan)

Product Integrations

Chainlink - Price Feeds for assets in the CDP

Key differentiators and uniqueness of the project

The only form of CDP that currently exists are stablecoins; whereas, we went the opposite direction of Maker and Reflexer and embraced correlated, risk-on assets as the basis for a CDP.

Trade-offs and shortcuts while building

We only had time to implement the core features of the CDP. Thus we currently do not have the equivalent of the DSR pool. Limited number of assets can be supported in any pool (currently set to 10) because there are protocol interactions that require multiple calls to transfer(), so to prevent any issues with gas limits, we capped the number of assets in a given pool.

Tracks Applied (9)

Best Consumer App Deployed on ZKsync

DeFi the largest category of consumer facing applications in blockchain today

zkSync ∎

Build a mass consumer dApp fully on-chain

DeFi the largest category of consumer facing applications in blockchain today

Somnia network

Best Regenerative Finance (ReFi)

DreamFi fits in the ReFi track since it can be used effectively by retail traders to diversify their positions and hedge...Read More

Flow

Hedera EVM Builder

DreamFi fits the Hedera EVM Bounty track perfectly since the smart contracts work perfectly with the Hedera ledger since...Read More

Hedera

Build the best app that combines the worlds of SocialFi, GambleFi, and/or DeFi

DreamFi combines a great concept from DeFi, CDPs, while allowing for truly degenerate vault collateral combinations -- t...Read More

ink

Cross-& Multi-Chain Development with Polkadot

DreamFi is compatible with any parachain using the EVM pallet such as Moonbeam. From any parachain, users can deposit co...Read More

Polkadot

Connect the World with Chainlink

DreamFi makes great use of Chainlink's price oracles to track the value of the underlying collateral in vaults and to id...Read More

Chainlink

DEFI, NFTS + GAMING

Our project fits squarely in the DeFi category since we created a CDP protocol for borrowing market indices that track t...Read More

DeFi Innovation on Unichain

We built a pretty cool DeFi project based on the innovations of Maker DAO and Reflexer with our own interesting twist --...Read More

Uniswap

Technologies used

Discussion

Builders also viewed

See more projects on Devfolio