Giveth / GIVfi

GNU General Public License v3.0
1 stars 2 forks source link

Feat/donate many #12

Open 0xKurt opened 1 year ago

0xKurt commented 1 year ago

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.