Skip to content

registry: decide on architecture for grant creation + flow of donation funds #613

Description

@mds1

These are coupled, so putting them into the same issue

There are two ways donations can be handled:

  1. Donations are sent to a grant owner's address as part of the donation transaction
  2. Donations are sent to a FundManager type of contract, which is single contract that holds all funds and provides a claim() method for grant owners to claim their donations

There are three main ideas we currently have on what grant creation could look like. All can be combined with both donation flows above:

  1. An incrementing grant ID that maps to a struct containing a payout address (this is the current approach used by POC, and it has the downside of being very inefficient and costly, since you need a storage read for every payout address)
  2. Deploy a proxy wallet (see Discuss: Use a grant's `payee` address as it's ID #54), where the proxy wallet address is the grant ID. This is nice because the grant ID is the payout address, but has the downside of making it costlier to enumerate all grants on-chain
  3. Deploy an NFT, where the holder is the grant owner

I currently lean towards the combination of donation flow 2 + grant creation 3, because:

However, a bit more research/thinking on the tradeoffs is needed before making a decision

Metadata

Metadata

Assignees

No one assigned

    Labels

    protocolRelated to finalizing a protocol specification

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions