andromedaprotocol / andromeda-core

Operating System and ADO Smart Contracts
https://andromedaprotocol.io/
36 stars 21 forks source link

[EPIC] Crowdfund Restructure #424

Open crnbarr93 opened 1 month ago

crnbarr93 commented 1 month ago

Description

Our current crowdfund contract is outdated. The flow of the contract from beginning to end is confusing and there are a lot of improvements to be made. The best approach may be to completely restructure the crowdfund contract and the entire flow.

Implementation

Discovery and Planning

Implementation

QA & Testing

Acceptance Criteria

cowboy0015 commented 1 month ago

The new Crowdfund ADO will serve two purposes: Fundraising and Donation.

Outline for Fundraising

  1. The owner initiates a campaign for their project, providing project details and configuring options such as:
    Token price
    Token amount
    Start time
    End time
    Soft cap
    Hard cap
    Withdrawal address
    ...
  2. Users invest by purchasing tokens (the purchased tokens are not transferred to the user until the campaign expires).
  3. After the campaign's expiration (meeting the end time), users can claim the purchased tokens:
    • If the total number of tokens purchased exceeds the soft cap, users receive the tokens they bought, and all invested coins are sent to the withdrawal address.
    • If the total number of tokens purchased is less than the soft cap, tokens are burned, and users receive a refund of their investment.

Outline for Donation

  1. The owner creates a campaign for their project, providing project details and configuring options such as:
    Minimum contribution amount
    Target amount
    Withdrawal address
  2. People donate or contribute by depositing money.
  3. The owner submits a withdrawal request to receive the donated funds to the specified withdrawal address.