Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Donations #13

Open
csmuller opened this issue Jan 27, 2022 · 0 comments
Open

Donations #13

csmuller opened this issue Jan 27, 2022 · 0 comments
Labels
idea Ideas that we could implement in the future, but are not high priority.

Comments

@csmuller
Copy link
Contributor

The GrantShares dApp currently intends that only funding sent to the treasury can be spent on project proposals and only whitelisted funders can send tokens to the treasury. @steven1227 brought up the idea to extend this with donations that can made by anyone.

Here's two ways in which such a feature can implemented:

  1. Add a donation feature only to the GrantShares web page. This feature would allow users to choose a project proposal from the list and click a donate button. The web page extracts the receiver address from the proposal's intents and lets the user choose a donation amount. From all this info it constructs a transaction and manages signing and sending it through a wallet (e.g., NeoLine).
    This works only for project proposals. Only they have a receiver address in their intents to which the donation can be sent. Instead of sending donation to the receiver mentioned in a proposal's intents, they could also be sent to the proposer directly (that information is connected to the proposal).

  2. Integrate the donation feature into the GrantShares contracts. In this scenario each proposal has a donations balance. Users can choose a proposal and donate tokens to it, but, the donations collected by a proposal are not released to the proposer until the proposal is successfully executed. Thus, the donations are conceptualised as a part of the funding released by a project proposal. The most effortful part of this solution is, the bookkeeping that the contracts have to do on the donations. If a proposal is not accepted, the donations on it have to be sent back to their respective owners. A much easier solution would be to only allow donations on already accepted/executed proposals (no bookkeeping necessary).

@csmuller csmuller added idea Ideas that we could implement in the future, but are not high priority. and removed discuss labels Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Ideas that we could implement in the future, but are not high priority.
Projects
None yet
Development

No branches or pull requests

1 participant