Transaction fees configured using algorithm and mathematic are able to control transactional behavior. Specifically in this concept, algorithm and mathematic are used to discourage whale transaction. One way to discourage whale transaction is to use exponential transaction fee:

Determine a cut off percentage fee for example in this case above 10% of total transaction is labeled as expensive and will be the cut off.

Determine a cut off of the transaction amount for example in this case above 100 coins is labeled as whale transaction.

Determine an exponential value that meets the above criteria where in this case is 1.0232.

Fee = (transaction amount)^{1.0232} % of transaction amount.

If this is satisfying then the configuration ends here. If not then more algorithm can be added. For example, we want to end the exponential punishment when the fee reaches 50%. We can stop it by putting a maximum fee of 50% or lighten punishment by changing the fee equation to linear or even lighter logarithmic when reaching 50%.

Time Accumulation Fee

Algorithmic and mathematical fee is not enough to prevent whale transaction because whales can just perform multiple small transaction. The only way to prevent this now is accumulation. The equation for this is Fee = equation(current transaction amount + all previous transaction amount) - previous fee or any better equation where the total fee should equal to the fee when all transactions are treated as single transaction.

If this rule is applied forever then it is the same as limiting the amount of transaction forever. Therefore, a time limit must be agreed upon. For example, the accumulation resets after one day. The longer the time, the more resilient to whale transaction but also the more the restriction. Calling all mathematician once again.

What to do with the fee?

The fees can either be:

distribute to all the holders

distribute to certain holders only

burned or deflated

If distribution is chosed, the amount and method of distribution are also open for many possibilities.