Skip to content

Conversation

@0xKurt
Copy link
Member

@0xKurt 0xKurt commented Nov 1, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants