DonationHandlercontract relays public donations during a match-funding round- to the respective projects and records the details of this contribution i.e the amount, the token used and the contributor address- in the
donateentrypoint of the contract is responsible for relaying the donations- either in tez or FA1.2 compliant tokens to the project's address and thereafter- call the
contributeentrypoint of the currently active round contract. A call to
donateterminates with an error if no round is currently active.
donatetakes in a
token_identifieras parameter. The token identifier could represent either of these-
Michelson PACKof the string
Michelson PACKof the address of the FA1.2 token being contributed to a project.
bytestype and using it makes it convenient to put both tez and token contributions under a single entrypoint.
donatemakes a call to the
verify_whitelistedentrypoint of the
Whitelistregistry contract to confirm that the contributor is whitelisted. This is done to prevent an uncontrolled number of pseudonymous identities from showing up on Kickflow. Therefore, if a non-whitelisted address tries to make a contribution, the operation simple fails with an error message.
contribution_endtimestamps of the
MatchingRoundcontract. Contributions made outside of this time period would fail.
token_identifiermust be present in the
token_setof the round contract. Attempts to contribute in any other token would result in a failure.
entry_addressprovided, must belong to one of the entries in the