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:
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%.
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.
The fees can either be:
If distribution is chosed, the amount and method of distribution are also open for many possibilities.