project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5

EarnFlow

EarnFlow is your new go-to for safer project investments! Split your ETH, support projects, and earn passive income via Uniswap V4. Enjoy dividends and anti-rug pull features. Let’s innovate and secure your investments together! #DeFi #Crypto #InvestSmart

EarnFlow

Created At

ETHGlobal Brussels

Project Description

EarnFlow

EarnFlow is an innovative investment and fundraising platform designed to provide a safer and more profitable investment environment for individuals and organizations. The platform addresses the common pitfalls in project investments, such as the risk of complete financial loss, lack of passive income, and vulnerability to economic attacks like rug pulls. EarnFlow leverages advanced DeFi technologies, specifically Uniswap V4's EarnFlowHook and a future DAO (Decentralized Autonomous Organization) governance system, to ensure continuous yield generation and enhanced security.

The Problem

Traditional investment methods in projects often lead to high risks and potential complete financial loss when projects fail. Common reasons for project failure include:

  1. Lack of Product-Market Fit: Many startups fail because they create products that do not meet market needs, often due to inadequate market research or misjudging demand.
  2. Insufficient Capital: Inadequate funding hampers the ability to sustain operations, innovate, or scale effectively, leading to premature failure.
  3. Poor Management and Planning: Ineffective project management, unclear goals, and poor communication can derail projects, resulting in inefficient resource management and missed objectives.
  4. Market and Competitive Dynamics: Unexpected changes in market conditions and intense competition can negatively impact startups, making it difficult to maintain a competitive edge.
  5. Technological and Timing Issues: Launching products at the wrong time or with immature technology can lead to missed opportunities and inadequate adoption.

The Solution:

EarnFlow mitigates these risks by ensuring continuous income streams and providing robust anti-rug pull mechanisms through a dual-faceted approach:

  1. Investment Flow: Investors select projects and invest their ETH via the EarnFlowHook. The EarnFlowHook splits the ETH into two parts:

    • Investment Fund: A portion of the ETH is sent to a DAO, which manages and monitors the funds before allocating them to the project beneficiary. For testing purposes, this amount is currently sent directly to the beneficiary.
    • Reserve Fund: The remaining ETH is added to a Uniswap V4 pool to generate yield.

    This dual allocation ensures that part of the investment directly supports the project while the other part generates continuous income for investors.

  2. EarnFlowHook Mechanics:

    • ETH Split: The invested ETH is algorithmically split between the Investment Fund and the Reserve Fund.
    • Yield Generation: The Reserve Fund generates yield through LP fees on Uniswap, ensuring a continuous income stream for investors.
    • Anti-Rug Pull Feature: Initial phase selling is disabled to prevent sell pressure and economic vulnerabilities, protecting early investors and ensuring a stable launch period.
  3. Bonded Tokens and Dividends:

    • Bonded Tokens: Investors receive bonded tokens in exchange for their investment. These tokens are used to create a pool with ETH and represent a stake in the project.
    • Dividends: Bonded tokens entitle investors to dividends from the project's revenue. Dividends are shared with both investors and project owners when the project is successful, aligning incentives and ensuring fair profit distribution.
  4. Future DAO System:

    • Governance: The future DAO will oversee fund allocation, project monitoring, and revenue distribution, ensuring transparency and accountability.
    • Transparency: Governance decisions, including revenue distribution to investors, will be based on investor-set percentages or community governance, fostering trust and engagement among stakeholders.
  5. Bonding Curve:

    • Flexible Curves: The bonding curve can be exponential, square, 1-1, or more. In the future, this can be replaced with a V3 pool or V4 hook with a single side entry point, providing greater flexibility and efficiency.

Workflows

Buy Flow

  1. Investor Action: An investor selects a project and invests ETH via the EarnFlowHook.
  2. ETH Split: The EarnFlowHook splits the ETH into the Investment Fund and the Reserve Fund.
  3. Investment Fund Allocation: A portion of the ETH is sent to the DAO (currently directly to the beneficiary for testing).
  4. Reserve Fund Allocation: The remaining ETH is added to a Uniswap V4 pool to generate yield.

Sell Flow

  1. Investor Action: An investor decides to sell their bonded tokens.
  2. Token Burn: The bonded tokens are burned by the EarnFlowHook.
  3. ETH Payout: The investor receives ETH from the Reserve Fund based on the current token price.

Payment Flow

  1. Revenue Generation: The project generates revenue and sends it to the EarnFlowHook.
  2. Revenue Split: The revenue is split between direct income to the beneficiary treasury and dividends for bonded token holders.
  3. Dividend Distribution: Bonded token holders receive their share of the dividends, ensuring a continuous income stream.

Implementation

Our initial EarnFlow implementation supports:

  • Flexible Bonding Curves: Supporting various curve types (exponential, square, 1-1, etc.), which can be replaced with a V3 pool or V4 hook in the future.
  • Dividend Distributions: Providing bonded token holders with a share of project revenues.
  • Anti-Rug Pull Features: Disabling selling in the initial phase to protect early investors.

Future Plans

  1. Hatching: This is already implemented but a more advanced version could be developed, integrating an oracle to enhance accuracy and responsiveness to market conditions.
  2. Vesting: Implementing vesting periods for minted tokens to prevent pump-and-dump schemes. This feature aligns incentives and ensures long-term commitment from investors.
  3. Taxes: Adding selling fees to encourage secondary market trading. This mechanism helps stabilize the market and generate additional revenue for the project.
  4. Governance via Bonded Tokens: Granting voting power to token holders, giving them a say in project governance and fund allocation. This democratic approach enhances community engagement and decision-making.

How it's Made

EarnFlow was built using a combination of cutting-edge blockchain technologies and smart contract frameworks to ensure a secure, efficient, and user-friendly platform.

  1. Solidity: The smart contracts for EarnFlow were written in Solidity, the programming language for Ethereum smart contracts. Solidity was chosen for its robustness and compatibility with the Ethereum blockchain.

  2. Uniswap V4: EarnFlow leverages Uniswap V4 for its liquidity pools and yield generation. The Uniswap V4 hooks allow for advanced features such as custom fee structures and flexible liquidity management.

  3. Ethereum: The platform operates on the Ethereum blockchain, taking advantage of its extensive ecosystem, security, and smart contract capabilities.

Integration and Benefits

  • Uniswap Integration: By integrating with Uniswap, EarnFlow benefits from the platform's liquidity and decentralized trading capabilities. This integration allows for the efficient generation of yield through LP fees, enhancing the passive income potential for investors.

  • Smart Contract Architecture: The architecture includes multiple contracts for the EarnFlowHook, bonding curves, and future DAO work.

Notable Hacky Solutions

  • Anti-Rug Pull Mechanism: Implementing a feature to disable selling during the initial phase was a creative solution to prevent early sell-offs and protect investors from rug pulls. This was achieved through custom logic in the EarnFlowHook contract.

  • Yield Generation with Uniswap V4: Utilizing Uniswap V4 hooks allowed us to create a custom yield generation mechanism that splits ETH between the investment fund and a liquidity pool. This dual-purpose allocation enhances the platform's ability to provide steady returns to investors.

background image mobile

Join the mailing list

Get the latest news and updates