I have added a function to donate different tokens to a list of recipients.
I have made one major change for this:
The fee in the donation is no longer given in %, instead it is given as the exact amount.
This saves a lot of arithmetic operations when iterating over the donation list.
Example:
The user wants to donate 100 dollars and give 10% as a fee to the protocol.
BEFORE:
donate(recipient, $100, 10%)
AFTER:
donate(recipient, $90, $10)
(The values are symbolic for a simple understanding)
Issue: 747
I have added a function to donate different tokens to a list of recipients.
I have made one major change for this: The fee in the donation is no longer given in %, instead it is given as the exact amount. This saves a lot of arithmetic operations when iterating over the donation list.
Example:
The user wants to donate 100 dollars and give 10% as a fee to the protocol.
BEFORE: donate(recipient, $100, 10%)
AFTER: donate(recipient, $90, $10)
(The values are symbolic for a simple understanding)
The minimum fee is still in percent.