Smart contracts for the ResearchDAO.
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
// how to help
// readme
ResearchDAO Contracts
Contents
DisintermediatedGrants lets ResearchDAO direct donations to grant recipients without ever holding the funds. Tokens move straight from the donor to the recipient.
- The multisig whitelists a donor.
- The donor approves the contract to spend an ERC20 token, then calls
donatewith a commitment amount and a grace period (in seconds, up to the contractβs maximum). Nothing is transferred yet. - The multisig proposes grants against the donation: a recipient and an amount.
- Once the donationβs grace period has passed since the proposal, anyone can call
disburseGrant, which transfers the amount from the donor to the recipient. Nothing pays out until someone makes that call.
During the grace period, a donor can stop payment by reducing or revoking their allowance, or by moving the tokens. That transaction must be confirmed before the grace period ends: once a grant is payable, anyone who sees the donorβs pending transaction can get disburseGrant in ahead of it. The multisig can call retire to stop the contract for good.